LArSoft  v06_85_00
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 280 of file Cluster3D.h.

Constructor & Destructor Documentation

reco::RecobClusterParameters::RecobClusterParameters ( )
inline

Definition at line 283 of file Cluster3D.h.

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

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:307
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 300 of file Cluster3D.h.

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

unsigned int reco::RecobClusterParameters::m_endWire

Definition at line 304 of file Cluster3D.h.

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

ClusterHit2DVec reco::RecobClusterParameters::m_hitVector

Definition at line 307 of file Cluster3D.h.

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

unsigned int reco::RecobClusterParameters::m_plane

Definition at line 305 of file Cluster3D.h.

float reco::RecobClusterParameters::m_sigmaEndTime

Definition at line 301 of file Cluster3D.h.

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

float reco::RecobClusterParameters::m_sigmaStartTime

Definition at line 299 of file Cluster3D.h.

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

float reco::RecobClusterParameters::m_startTime

Definition at line 298 of file Cluster3D.h.

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

unsigned int reco::RecobClusterParameters::m_startWire

Definition at line 303 of file Cluster3D.h.

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

float reco::RecobClusterParameters::m_totalCharge

Definition at line 302 of file Cluster3D.h.

geo::View_t reco::RecobClusterParameters::m_view

Definition at line 306 of file Cluster3D.h.

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


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