LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
reco::RecobClusterParameters Class Reference

A utility class used in construction of 3D clusters. More...

#include "Cluster3D.h"

Public Member Functions

 RecobClusterParameters ()
 
void UpdateParameters (const reco::ClusterHit2D *hit)
 

Public Attributes

float m_startTime
 
float m_sigmaStartTime
 
float m_endTime
 
float m_sigmaEndTime
 
float m_totalCharge
 
unsigned int m_startWire
 
unsigned int m_endWire
 
geo::PlaneID m_plane
 
geo::View_t m_view
 
ClusterHit2DVec m_hitVector
 

Detailed Description

A utility class used in construction of 3D clusters.

Definition at line 292 of file Cluster3D.h.

Constructor & Destructor Documentation

reco::RecobClusterParameters::RecobClusterParameters ( )
inline

Definition at line 294 of file Cluster3D.h.

295  : m_startTime(999999.)
296  , m_sigmaStartTime(1.)
297  , m_endTime(0.)
298  , m_sigmaEndTime(1.)
299  , m_totalCharge(0.)
300  , m_startWire(9999999)
301  , m_endWire(0)
302  , m_plane(geo::PlaneID())
304  {
305  m_hitVector.clear();
306  }
Unknown view.
Definition: geo_types.h:142
The data type to uniquely identify a Plane.
Definition: geo_types.h:463
ClusterHit2DVec m_hitVector
Definition: Cluster3D.h:319

Member Function Documentation

void reco::RecobClusterParameters::UpdateParameters ( const reco::ClusterHit2D hit)

a utility routine for building 3D clusters to keep basic info up to date (a candidate for a better way to do this)

Definition at line 387 of file Cluster3D.cxx.

References reco::ClusterHit2D::getHit(), recob::Hit::Integral(), reco::Cluster3D::m_totalCharge, recob::Hit::PeakTimeMinusRMS(), recob::Hit::PeakTimePlusRMS(), geo::WireID::planeID(), recob::Hit::SigmaPeakTime(), recob::Hit::View(), geo::WireID::Wire, and reco::ClusterHit2D::WireID().

388  {
393  const recob::Hit* hit = clusterHit->getHit();
394 
395  // Need to keep track of stuff so we can form cluster
396  if (clusterHit->WireID().Wire < m_startWire) {
397  m_startWire = clusterHit->WireID().Wire;
398  m_startTime = hit->PeakTimeMinusRMS();
400  }
401 
402  if (clusterHit->WireID().Wire > m_endWire) {
403  m_endWire = clusterHit->WireID().Wire;
404  m_endTime = hit->PeakTimePlusRMS();
405  m_sigmaEndTime = hit->SigmaPeakTime();
406  }
407 
408  m_totalCharge += hit->Integral();
409  m_plane = clusterHit->WireID().planeID();
410  m_view = hit->View();
411 
412  m_hitVector.push_back(clusterHit);
413 
414  return;
415  }
float Integral() const
Integral under the calibrated signal waveform of the hit, in tick x ADC units.
Definition: Hit.h:244
geo::View_t View() const
View for the plane of the hit.
Definition: Hit.h:276
const recob::Hit * getHit() const
Definition: Cluster3D.h:77
float PeakTimeMinusRMS(float sigmas=+1.) const
Returns a time sigmas RMS away from the peak time.
Definition: Hit.h:290
float SigmaPeakTime() const
Uncertainty for the signal peak, in tick units.
Definition: Hit.h:224
ClusterHit2DVec m_hitVector
Definition: Cluster3D.h:319
2D representation of charge deposited in the TDC/wire plane
Definition: Hit.h:46
float PeakTimePlusRMS(float sigmas=+1.) const
Returns a time sigmas RMS away from the peak time.
Definition: Hit.h:285

Member Data Documentation

float reco::RecobClusterParameters::m_endTime

Definition at line 312 of file Cluster3D.h.

Referenced by lar_cluster3d::Cluster3D::ConvertToArtOutput().

unsigned int reco::RecobClusterParameters::m_endWire

Definition at line 316 of file Cluster3D.h.

Referenced by lar_cluster3d::Cluster3D::ConvertToArtOutput().

ClusterHit2DVec reco::RecobClusterParameters::m_hitVector

Definition at line 319 of file Cluster3D.h.

Referenced by lar_cluster3d::Cluster3D::ConvertToArtOutput().

geo::PlaneID reco::RecobClusterParameters::m_plane

Definition at line 317 of file Cluster3D.h.

Referenced by lar_cluster3d::Cluster3D::ConvertToArtOutput().

float reco::RecobClusterParameters::m_sigmaEndTime

Definition at line 313 of file Cluster3D.h.

Referenced by lar_cluster3d::Cluster3D::ConvertToArtOutput().

float reco::RecobClusterParameters::m_sigmaStartTime

Definition at line 311 of file Cluster3D.h.

Referenced by lar_cluster3d::Cluster3D::ConvertToArtOutput().

float reco::RecobClusterParameters::m_startTime

Definition at line 310 of file Cluster3D.h.

Referenced by lar_cluster3d::Cluster3D::ConvertToArtOutput().

unsigned int reco::RecobClusterParameters::m_startWire

Definition at line 315 of file Cluster3D.h.

Referenced by lar_cluster3d::Cluster3D::ConvertToArtOutput().

float reco::RecobClusterParameters::m_totalCharge

Definition at line 314 of file Cluster3D.h.

geo::View_t reco::RecobClusterParameters::m_view

Definition at line 318 of file Cluster3D.h.

Referenced by lar_cluster3d::Cluster3D::ConvertToArtOutput().


The documentation for this class was generated from the following files: