Public Member Functions | Public Attributes | List of all members
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 300 of file Cluster3D.h.

Constructor & Destructor Documentation

reco::RecobClusterParameters::RecobClusterParameters ( )
inline

Definition at line 303 of file Cluster3D.h.

303  : m_startTime(999999.),
304  m_sigmaStartTime(1.),
305  m_endTime(0.),
306  m_sigmaEndTime(1.),
307  m_totalCharge(0.),
308  m_startWire(9999999),
309  m_endWire(0),
312  {
313  m_hitVector.clear();
314  }
Unknown view.
Definition: geo_types.h:136
The data type to uniquely identify a Plane.
Definition: geo_types.h:472
ClusterHit2DVec m_hitVector
Definition: Cluster3D.h:327

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 361 of file Cluster3D.cxx.

362 {
363  /**
364  * @brief a utility routine for building 3D clusters to keep basic info up to date
365  * (a candidate for a better way to do this)
366  */
367  const recob::Hit* hit = clusterHit->getHit();
368 
369  // Need to keep track of stuff so we can form cluster
370  if (clusterHit->WireID().Wire < m_startWire)
371  {
372  m_startWire = clusterHit->WireID().Wire;
373  m_startTime = hit->PeakTimeMinusRMS();
375  }
376 
377  if (clusterHit->WireID().Wire > m_endWire)
378  {
379  m_endWire = clusterHit->WireID().Wire;
380  m_endTime = hit->PeakTimePlusRMS();
381  m_sigmaEndTime = hit->SigmaPeakTime();
382  }
383 
384  m_totalCharge += hit->Integral();
385  m_plane = clusterHit->WireID().planeID();
386  m_view = hit->View();
387 
388  m_hitVector.push_back(clusterHit);
389 
390  return;
391 }
float Integral() const
Integral under the calibrated signal waveform of the hit, in tick x ADC units.
Definition: Hit.h:224
geo::View_t View() const
View for the plane of the hit.
Definition: Hit.h:232
const recob::Hit * getHit() const
Definition: Cluster3D.h:78
float PeakTimeMinusRMS(float sigmas=+1.) const
Definition: Hit.h:239
float SigmaPeakTime() const
Uncertainty for the signal peak, in tick units.
Definition: Hit.h:219
ClusterHit2DVec m_hitVector
Definition: Cluster3D.h:327
2D representation of charge deposited in the TDC/wire plane
Definition: Hit.h:48
float PeakTimePlusRMS(float sigmas=+1.) const
Returns a time sigmas RMS away from the peak time.
Definition: Hit.h:236

Member Data Documentation

float reco::RecobClusterParameters::m_endTime

Definition at line 320 of file Cluster3D.h.

unsigned int reco::RecobClusterParameters::m_endWire

Definition at line 324 of file Cluster3D.h.

ClusterHit2DVec reco::RecobClusterParameters::m_hitVector

Definition at line 327 of file Cluster3D.h.

geo::PlaneID reco::RecobClusterParameters::m_plane

Definition at line 325 of file Cluster3D.h.

float reco::RecobClusterParameters::m_sigmaEndTime

Definition at line 321 of file Cluster3D.h.

float reco::RecobClusterParameters::m_sigmaStartTime

Definition at line 319 of file Cluster3D.h.

float reco::RecobClusterParameters::m_startTime

Definition at line 318 of file Cluster3D.h.

unsigned int reco::RecobClusterParameters::m_startWire

Definition at line 323 of file Cluster3D.h.

float reco::RecobClusterParameters::m_totalCharge

Definition at line 322 of file Cluster3D.h.

geo::View_t reco::RecobClusterParameters::m_view

Definition at line 326 of file Cluster3D.h.


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