Public Member Functions | Private Attributes | List of all members
tss::Hit2D Class Reference

#include <TssHit2D.h>

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 25 of file TssHit2D.h.

Constructor & Destructor Documentation

tss::Hit2D::Hit2D ( detinfo::DetectorPropertiesData const &  detProp,
const art::Ptr< recob::Hit > &  src 
)

Definition at line 12 of file TssHit2D.cxx.

13  : fHit(src)
14 {
15  fPlane = src->WireID().Plane;
16  fWire = src->WireID().Wire;
17 
19  detProp, fWire, src->PeakTime(), fPlane, src->WireID().TPC, src->WireID().Cryostat);
20 }
geo::WireID WireID() const
Definition: Hit.h:233
CryostatID_t Cryostat
Index of cryostat.
Definition: geo_types.h:212
TVector2 WireDriftToCm(detinfo::DetectorPropertiesData const &detProp, unsigned int wire, float drift, unsigned int plane, unsigned int tpc, unsigned int cryo)
Definition: Utilities.cxx:294
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:89
WireID_t Wire
Index of the wire within its plane.
Definition: geo_types.h:580
PlaneID_t Plane
Index of the plane within its TPC.
Definition: geo_types.h:493
float PeakTime() const
Time of the signal peak, in tick units.
Definition: Hit.h:218
TVector2 fPoint2D
Definition: TssHit2D.h:93
unsigned int fPlane
Definition: TssHit2D.h:91
TPCID_t TPC
Index of the TPC within its cryostat.
Definition: geo_types.h:406
unsigned int fWire
Definition: TssHit2D.h:91

Member Function Documentation

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

Definition at line 42 of file TssHit2D.h.

43  {
44  return fHit->WireID().Cryostat;
45  }
geo::WireID WireID() const
Definition: Hit.h:233
CryostatID_t Cryostat
Index of cryostat.
Definition: geo_types.h:212
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:89
int tss::Hit2D::EndTick ( ) const
inline

Definition at line 72 of file TssHit2D.h.

73  {
74  return fHit->EndTick();
75  }
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:89
raw::TDCtick_t EndTick() const
Final tdc tick for hit.
Definition: Hit.h:217
float tss::Hit2D::GetAmplitude ( ) const
inline

Definition at line 83 of file TssHit2D.h.

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

Definition at line 30 of file TssHit2D.h.

31  {
32  return fHit;
33  }
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:89
float tss::Hit2D::PeakTime ( ) const
inline

Definition at line 62 of file TssHit2D.h.

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

Definition at line 36 of file TssHit2D.h.

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

Definition at line 67 of file TssHit2D.h.

68  {
69  return fHit->StartTick();
70  }
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:89
raw::TDCtick_t StartTick() const
Initial tdc tick for hit.
Definition: Hit.h:216
float tss::Hit2D::SummedADC ( ) const
inline

Definition at line 78 of file TssHit2D.h.

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

Definition at line 47 of file TssHit2D.h.

48  {
49  return fHit->WireID().TPC;
50  }
geo::WireID WireID() const
Definition: Hit.h:233
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:89
TPCID_t TPC
Index of the TPC within its cryostat.
Definition: geo_types.h:406
unsigned int tss::Hit2D::View ( ) const
inline

Definition at line 52 of file TssHit2D.h.

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

Definition at line 57 of file TssHit2D.h.

58  {
59  return fWire;
60  }
unsigned int fWire
Definition: TssHit2D.h:91

Member Data Documentation

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

Definition at line 89 of file TssHit2D.h.

unsigned int tss::Hit2D::fPlane
private

Definition at line 91 of file TssHit2D.h.

TVector2 tss::Hit2D::fPoint2D
private

Definition at line 93 of file TssHit2D.h.

unsigned int tss::Hit2D::fWire
private

Definition at line 91 of file TssHit2D.h.


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