LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
TssHit2D.h
Go to the documentation of this file.
1 
9 #ifndef TssHit2D_h
10 #define TssHit2D_h
11 
13 
15 
16 #include <functional>
17 
18 #include "TVector2.h"
19 
20 namespace tss
21 {
22  class Hit2D;
23  //struct bTrajectory3DOrderLess;
24 }
25 
27 {
28  //friend struct bTrajectory3DOrderLess;
29 
30 public:
31  Hit2D(void);
32  Hit2D(const art::Ptr< recob::Hit > & src);
33  Hit2D(const tss::Hit2D & src);
34 
35  art::Ptr< recob::Hit > Hit2DPtr(void) const { return fHit; }
36 
37  TVector2 const & Point2D(void) const { return fPoint2D; }
38 
39  unsigned int Cryo(void) const { return fHit->WireID().Cryostat; }
40  unsigned int TPC(void) const { return fHit->WireID().TPC; }
41  unsigned int View(void) const { return fPlane; }
42  unsigned int Wire(void) const { return fWire; }
43  float PeakTime(void) const { return fHit->PeakTime(); }
44  int StartTick(void) const { return fHit->StartTick(); }
45  int EndTick(void) const { return fHit->EndTick(); }
46 
47  float SummedADC(void) const { return fHit->SummedADC(); }
48  float GetAmplitude(void) const { return fHit->PeakAmplitude(); }
49 
50 private:
51 
52  art::Ptr< recob::Hit > fHit; // source 2D hit
53 
54  unsigned int fPlane, fWire;
55 
56  TVector2 fPoint2D; // hit position in 2D wire view, scaled to [cm]
57 
58 };
59 
60 #endif
61 
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:52
Hit2D(void)
Definition: TssHit2D.cxx:17
TVector2 const & Point2D(void) const
Definition: TssHit2D.h:37
geo::WireID WireID() const
Initial tdc tick for hit.
Definition: Hit.h:234
unsigned int Wire(void) const
Definition: TssHit2D.h:42
Declaration of signal hit object.
float PeakTime(void) const
Definition: TssHit2D.h:43
unsigned int Cryo(void) const
Definition: TssHit2D.h:39
CryostatID_t Cryostat
Index of cryostat.
Definition: geo_types.h:130
float GetAmplitude(void) const
Definition: TssHit2D.h:48
unsigned int TPC(void) const
Definition: TssHit2D.h:40
float PeakAmplitude() const
The estimated amplitude of the hit at its peak, in ADC units.
Definition: Hit.h:222
float SummedADC(void) const
Definition: TssHit2D.h:47
raw::TDCtick_t StartTick() const
Initial tdc tick for hit.
Definition: Hit.h:217
raw::TDCtick_t EndTick() const
Final tdc tick for hit.
Definition: Hit.h:218
unsigned int View(void) const
Definition: TssHit2D.h:41
float PeakTime() const
Time of the signal peak, in tick units.
Definition: Hit.h:219
art::Ptr< recob::Hit > Hit2DPtr(void) const
Definition: TssHit2D.h:35
TVector2 fPoint2D
Definition: TssHit2D.h:56
float SummedADC() const
The sum of calibrated ADC counts of the hit (0. by default)
Definition: Hit.h:224
unsigned int fPlane
Definition: TssHit2D.h:54
TPCID_t TPC
Index of the TPC within its cryostat.
Definition: geo_types.h:203
art framework interface to geometry description
int EndTick(void) const
Definition: TssHit2D.h:45
unsigned int fWire
Definition: TssHit2D.h:54
int StartTick(void) const
Definition: TssHit2D.h:44