LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
tss::Hit2D Class Reference

#include "TssHit2D.h"

Public Member Functions

 Hit2D (void)
 
 Hit2D (const art::Ptr< recob::Hit > &src)
 
 Hit2D (const tss::Hit2D &src)
 
art::Ptr< recob::HitHit2DPtr (void) const
 
TVector2 const & Point2D (void) const
 
unsigned int Cryo (void) const
 
unsigned int TPC (void) const
 
unsigned int View (void) const
 
unsigned int Wire (void) const
 
float PeakTime (void) const
 
int StartTick (void) const
 
int EndTick (void) const
 
float SummedADC (void) const
 
float GetAmplitude (void) const
 

Private Attributes

art::Ptr< recob::HitfHit
 
unsigned int fPlane
 
unsigned int fWire
 
TVector2 fPoint2D
 

Detailed Description

Definition at line 26 of file TssHit2D.h.

Constructor & Destructor Documentation

tss::Hit2D::Hit2D ( void  )

Definition at line 17 of file TssHit2D.cxx.

17  :
18  fPlane(0), fWire(0),
19  fPoint2D(0, 0)
20 {
21 }
TVector2 fPoint2D
Definition: TssHit2D.h:56
unsigned int fPlane
Definition: TssHit2D.h:54
unsigned int fWire
Definition: TssHit2D.h:54
tss::Hit2D::Hit2D ( const art::Ptr< recob::Hit > &  src)

Definition at line 23 of file TssHit2D.cxx.

References geo::CryostatID::Cryostat, fPlane, fPoint2D, fWire, recob::Hit::PeakTime(), geo::PlaneID::Plane, geo::TPCID::TPC, geo::WireID::Wire, pma::WireDriftToCm(), and recob::Hit::WireID().

23  :
24  fHit(src)
25 {
26  fPlane = src->WireID().Plane;
27  fWire = src->WireID().Wire;
28 
30  fWire, src->PeakTime(), fPlane,
31  src->WireID().TPC, src->WireID().Cryostat);
32 }
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:52
geo::WireID WireID() const
Initial tdc tick for hit.
Definition: Hit.h:234
CryostatID_t Cryostat
Index of cryostat.
Definition: geo_types.h:130
WireID_t Wire
Index of the wire within its plane.
Definition: geo_types.h:313
PlaneID_t Plane
Index of the plane within its TPC.
Definition: geo_types.h:258
float PeakTime() const
Time of the signal peak, in tick units.
Definition: Hit.h:219
TVector2 WireDriftToCm(unsigned int wire, float drift, unsigned int plane, unsigned int tpc, unsigned int cryo)
Definition: Utilities.cxx:296
TVector2 fPoint2D
Definition: TssHit2D.h:56
unsigned int fPlane
Definition: TssHit2D.h:54
TPCID_t TPC
Index of the TPC within its cryostat.
Definition: geo_types.h:203
unsigned int fWire
Definition: TssHit2D.h:54
tss::Hit2D::Hit2D ( const tss::Hit2D src)

Definition at line 34 of file TssHit2D.cxx.

34  :
35  fHit(src.fHit),
36  fPlane(src.fPlane), fWire(src.fWire),
37  fPoint2D(src.fPoint2D)
38 {
39 }
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:52
TVector2 fPoint2D
Definition: TssHit2D.h:56
unsigned int fPlane
Definition: TssHit2D.h:54
unsigned int fWire
Definition: TssHit2D.h:54

Member Function Documentation

unsigned int tss::Hit2D::Cryo ( void  ) const
inline

Definition at line 39 of file TssHit2D.h.

References geo::CryostatID::Cryostat, fHit, and recob::Hit::WireID().

39 { return fHit->WireID().Cryostat; }
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:52
geo::WireID WireID() const
Initial tdc tick for hit.
Definition: Hit.h:234
CryostatID_t Cryostat
Index of cryostat.
Definition: geo_types.h:130
int tss::Hit2D::EndTick ( void  ) const
inline

Definition at line 45 of file TssHit2D.h.

References recob::Hit::EndTick(), and fHit.

Referenced by tss::SimpleClustering::hitsTouching().

45 { return fHit->EndTick(); }
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:52
raw::TDCtick_t EndTick() const
Final tdc tick for hit.
Definition: Hit.h:218
float tss::Hit2D::GetAmplitude ( void  ) const
inline

Definition at line 48 of file TssHit2D.h.

References fHit, and recob::Hit::PeakAmplitude().

48 { return fHit->PeakAmplitude(); }
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:52
float PeakAmplitude() const
The estimated amplitude of the hit at its peak, in ADC units.
Definition: Hit.h:222
art::Ptr< recob::Hit > tss::Hit2D::Hit2DPtr ( void  ) const
inline

Definition at line 35 of file TssHit2D.h.

References fHit.

35 { return fHit; }
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:52
float tss::Hit2D::PeakTime ( void  ) const
inline

Definition at line 43 of file TssHit2D.h.

References fHit, and recob::Hit::PeakTime().

Referenced by tss::SimpleClustering::hitsTouching().

43 { return fHit->PeakTime(); }
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:52
float PeakTime() const
Time of the signal peak, in tick units.
Definition: Hit.h:219
TVector2 const& tss::Hit2D::Point2D ( void  ) const
inline

Definition at line 37 of file TssHit2D.h.

References fPoint2D.

Referenced by tss::Cluster2D::closest(), tss::bDistToPointLess::operator()(), tss::Cluster2D::outermost(), and tss::Segmentation2D::run().

37 { return fPoint2D; }
TVector2 fPoint2D
Definition: TssHit2D.h:56
int tss::Hit2D::StartTick ( void  ) const
inline

Definition at line 44 of file TssHit2D.h.

References fHit, and recob::Hit::StartTick().

Referenced by tss::SimpleClustering::hitsTouching().

44 { return fHit->StartTick(); }
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:52
raw::TDCtick_t StartTick() const
Initial tdc tick for hit.
Definition: Hit.h:217
float tss::Hit2D::SummedADC ( void  ) const
inline

Definition at line 47 of file TssHit2D.h.

References fHit, and recob::Hit::SummedADC().

47 { return fHit->SummedADC(); }
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:52
float SummedADC() const
The sum of calibrated ADC counts of the hit (0. by default)
Definition: Hit.h:224
unsigned int tss::Hit2D::TPC ( void  ) const
inline

Definition at line 40 of file TssHit2D.h.

References fHit, geo::TPCID::TPC, and recob::Hit::WireID().

40 { return fHit->WireID().TPC; }
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:52
geo::WireID WireID() const
Initial tdc tick for hit.
Definition: Hit.h:234
TPCID_t TPC
Index of the TPC within its cryostat.
Definition: geo_types.h:203
unsigned int tss::Hit2D::View ( void  ) const
inline

Definition at line 41 of file TssHit2D.h.

References fPlane.

41 { return fPlane; }
unsigned int fPlane
Definition: TssHit2D.h:54
unsigned int tss::Hit2D::Wire ( void  ) const
inline

Definition at line 42 of file TssHit2D.h.

References fWire.

Referenced by tss::SimpleClustering::hitsTouching().

42 { return fWire; }
unsigned int fWire
Definition: TssHit2D.h:54

Member Data Documentation

art::Ptr< recob::Hit > tss::Hit2D::fHit
private

Definition at line 52 of file TssHit2D.h.

Referenced by Cryo(), EndTick(), GetAmplitude(), Hit2DPtr(), PeakTime(), StartTick(), SummedADC(), and TPC().

unsigned int tss::Hit2D::fPlane
private

Definition at line 54 of file TssHit2D.h.

Referenced by Hit2D(), and View().

TVector2 tss::Hit2D::fPoint2D
private

Definition at line 56 of file TssHit2D.h.

Referenced by Hit2D(), and Point2D().

unsigned int tss::Hit2D::fWire
private

Definition at line 54 of file TssHit2D.h.

Referenced by Hit2D(), and Wire().


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