TssHit2D.h
Go to the documentation of this file.
1 /**
2  * @file TssHit2D.h
3  *
4  * @author D.Stefan and R.Sulej
5  *
6  * @brief Hit pos in cm and original recob hit ptr.
7  */
8 
9 #ifndef TssHit2D_h
10 #define TssHit2D_h
11 
15 namespace detinfo {
16  class DetectorPropertiesData;
17 }
18 
19 #include "TVector2.h"
20 
21 namespace tss {
22  class Hit2D;
23 }
24 
25 class tss::Hit2D {
26 public:
28 
30  Hit2DPtr() const
31  {
32  return fHit;
33  }
34 
35  TVector2 const&
36  Point2D() const
37  {
38  return fPoint2D;
39  }
40 
41  unsigned int
42  Cryo() const
43  {
44  return fHit->WireID().Cryostat;
45  }
46  unsigned int
47  TPC() const
48  {
49  return fHit->WireID().TPC;
50  }
51  unsigned int
52  View() const
53  {
54  return fPlane;
55  }
56  unsigned int
57  Wire() const
58  {
59  return fWire;
60  }
61  float
62  PeakTime() const
63  {
64  return fHit->PeakTime();
65  }
66  int
67  StartTick() const
68  {
69  return fHit->StartTick();
70  }
71  int
72  EndTick() const
73  {
74  return fHit->EndTick();
75  }
76 
77  float
78  SummedADC() const
79  {
80  return fHit->SummedADC();
81  }
82  float
83  GetAmplitude() const
84  {
85  return fHit->PeakAmplitude();
86  }
87 
88 private:
89  art::Ptr<recob::Hit> fHit; // source 2D hit
90 
91  unsigned int fPlane, fWire;
92 
93  TVector2 fPoint2D; // hit position in 2D wire view, scaled to [cm]
94 };
95 
96 #endif
unsigned int View() const
Definition: TssHit2D.h:52
TVector2 const & Point2D() const
Definition: TssHit2D.h:36
float GetAmplitude() const
Definition: TssHit2D.h:83
unsigned int Wire() const
Definition: TssHit2D.h:57
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:89
float SummedADC() const
Definition: TssHit2D.h:78
int StartTick() const
Definition: TssHit2D.h:67
unsigned int Cryo() const
Definition: TssHit2D.h:42
art::Ptr< recob::Hit > Hit2DPtr() const
Definition: TssHit2D.h:30
General LArSoft Utilities.
float PeakTime() const
Definition: TssHit2D.h:62
Definition of data types for geometry description.
Declaration of signal hit object.
TVector2 fPoint2D
Definition: TssHit2D.h:93
int EndTick() const
Definition: TssHit2D.h:72
unsigned int TPC() const
Definition: TssHit2D.h:47
unsigned int fWire
Definition: TssHit2D.h:91