LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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
 
unsigned int m_plane
 
geo::View_t m_view
 
ClusterHit2DVec m_hitVector
 

Detailed Description

A utility class used in construction of 3D clusters.

Definition at line 282 of file Cluster3D.h.

Constructor & Destructor Documentation

reco::RecobClusterParameters::RecobClusterParameters ( )
inline

Definition at line 285 of file Cluster3D.h.

285  : m_startTime(999999.),
286  m_sigmaStartTime(1.),
287  m_endTime(0.),
288  m_sigmaEndTime(1.),
289  m_totalCharge(0.),
290  m_startWire(9999999),
291  m_endWire(0),
292  m_plane(100),
294  {
295  m_hitVector.clear();
296  }
Unknown view.
Definition: geo_types.h:83
ClusterHit2DVec m_hitVector
Definition: Cluster3D.h:309

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

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

351 {
356  const recob::Hit& hit = clusterHit->getHit();
357 
358  // Need to keep track of stuff so we can form cluster
359  if (hit.WireID().Wire < m_startWire)
360  {
361  m_startWire = hit.WireID().Wire;
364  }
365 
366  if (hit.WireID().Wire > m_endWire)
367  {
368  m_endWire = hit.WireID().Wire;
369  m_endTime = hit.PeakTimePlusRMS();
371  }
372 
373  m_totalCharge += hit.Integral();
374  m_plane = hit.WireID().Plane;
375  m_view = hit.View();
376 
377  m_hitVector.push_back(clusterHit);
378 
379  return;
380 }
geo::WireID WireID() const
Initial tdc tick for hit.
Definition: Hit.h:234
float Integral() const
Integral under the calibrated signal waveform of the hit, in tick x ADC units.
Definition: Hit.h:225
geo::View_t View() const
View for the plane of the hit.
Definition: Hit.h:233
WireID_t Wire
Index of the wire within its plane.
Definition: geo_types.h:313
const recob::Hit & getHit() const
Definition: Cluster3D.h:73
PlaneID_t Plane
Index of the plane within its TPC.
Definition: geo_types.h:258
float PeakTimeMinusRMS(float sigmas=+1.) const
Returns a time sigmas RMS away from the peak time.
Definition: Hit.h:240
float SigmaPeakTime() const
Uncertainty for the signal peak, in tick units.
Definition: Hit.h:220
ClusterHit2DVec m_hitVector
Definition: Cluster3D.h:309
2D representation of charge deposited in the TDC/wire plane
Definition: Hit.h:49
float PeakTimePlusRMS(float sigmas=+1.) const
Returns a time sigmas RMS away from the peak time.
Definition: Hit.h:237

Member Data Documentation

float reco::RecobClusterParameters::m_endTime

Definition at line 302 of file Cluster3D.h.

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

unsigned int reco::RecobClusterParameters::m_endWire

Definition at line 306 of file Cluster3D.h.

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

ClusterHit2DVec reco::RecobClusterParameters::m_hitVector

Definition at line 309 of file Cluster3D.h.

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

unsigned int reco::RecobClusterParameters::m_plane

Definition at line 307 of file Cluster3D.h.

float reco::RecobClusterParameters::m_sigmaEndTime

Definition at line 303 of file Cluster3D.h.

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

float reco::RecobClusterParameters::m_sigmaStartTime

Definition at line 301 of file Cluster3D.h.

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

float reco::RecobClusterParameters::m_startTime

Definition at line 300 of file Cluster3D.h.

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

unsigned int reco::RecobClusterParameters::m_startWire

Definition at line 305 of file Cluster3D.h.

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

float reco::RecobClusterParameters::m_totalCharge

Definition at line 304 of file Cluster3D.h.

geo::View_t reco::RecobClusterParameters::m_view

Definition at line 308 of file Cluster3D.h.

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


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