LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
TssHit2D.h
Go to the documentation of this file.
1 
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 
29  art::Ptr<recob::Hit> Hit2DPtr() const { return fHit; }
30 
31  TVector2 const& Point2D() const { return fPoint2D; }
32 
33  unsigned int Cryo() const { return fHit->WireID().Cryostat; }
34  unsigned int TPC() const { return fHit->WireID().TPC; }
35  unsigned int View() const { return fPlane; }
36  unsigned int Wire() const { return fWire; }
37  float PeakTime() const { return fHit->PeakTime(); }
38  int StartTick() const { return fHit->StartTick(); }
39  int EndTick() const { return fHit->EndTick(); }
40 
41  float SummedADC() const { return fHit->SummedADC(); }
42  float GetAmplitude() const { return fHit->PeakAmplitude(); }
43 
44 private:
45  art::Ptr<recob::Hit> fHit; // source 2D hit
46 
47  unsigned int fPlane, fWire;
48 
49  TVector2 fPoint2D; // hit position in 2D wire view, scaled to [cm]
50 };
51 
52 #endif
unsigned int View() const
Definition: TssHit2D.h:35
TVector2 const & Point2D() const
Definition: TssHit2D.h:31
float GetAmplitude() const
Definition: TssHit2D.h:42
unsigned int Wire() const
Definition: TssHit2D.h:36
Declaration of signal hit object.
art::Ptr< recob::Hit > fHit
Definition: TssHit2D.h:45
float SummedADC() const
Definition: TssHit2D.h:41
int StartTick() const
Definition: TssHit2D.h:38
unsigned int Cryo() const
Definition: TssHit2D.h:33
art::Ptr< recob::Hit > Hit2DPtr() const
Definition: TssHit2D.h:29
General LArSoft Utilities.
float PeakTime() const
Definition: TssHit2D.h:37
Definition of data types for geometry description.
TVector2 fPoint2D
Definition: TssHit2D.h:49
int EndTick() const
Definition: TssHit2D.h:39
unsigned int TPC() const
Definition: TssHit2D.h:34
unsigned int fWire
Definition: TssHit2D.h:47