LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
PmaHit3D.cxx
Go to the documentation of this file.
1 
15 
17  : fCryo(0)
18  , fTPC(0)
19  , fPlane(0)
20  , fWire(0)
21  , fPeakTime(0)
22  , fAmpl(0)
23  , fArea(0)
24  , fPoint3D(0, 0, 0)
25  , fPoint2D(0, 0)
26  , fProjection2D(0, 0)
27  , fSegFraction(0)
28  , fSigmaFactor(1)
29  , fDx(0)
30  , fEnabled(true)
31  , fOutlier(false)
32  , fParent(0)
33 {}
34 
36  : fHit(src)
37  , fPoint3D(0, 0, 0)
38  , fProjection2D(0, 0)
39  , fSegFraction(0)
40  , fSigmaFactor(1)
41  , fDx(0)
42  , fEnabled(true)
43  , fOutlier(false)
44  , fParent(0) // set only when pushed to track
45 {
46  fCryo = src->WireID().Cryostat;
47  fTPC = src->WireID().TPC;
48  fPlane = src->WireID().Plane;
49  fWire = src->WireID().Wire;
50 
51  fPeakTime = src->PeakTime();
52 
53  fAmpl = src->PeakAmplitude();
54  fArea = src->SummedADC();
55 
57 }
58 
60  unsigned int wire,
61  unsigned int view,
62  unsigned int tpc,
63  unsigned int cryo,
64  float peaktime,
65  float ampl,
66  float area)
67  : fPoint3D(0, 0, 0)
68  , fProjection2D(0, 0)
69  , fSegFraction(0)
70  , fSigmaFactor(1)
71  , fDx(0)
72  , fEnabled(false)
73  , fOutlier(false)
74  , fParent(0) // set only when pushed to track
75 {
76  fCryo = cryo;
77  fTPC = tpc;
78  fPlane = view;
79  fWire = wire;
80 
81  fPeakTime = peaktime;
82 
83  fAmpl = ampl;
84  fArea = area;
85 
87 }
88 
90  : fHit(src.fHit)
91  , fCryo(src.fCryo)
92  , fTPC(src.fTPC)
93  , fPlane(src.fPlane)
94  , fWire(src.fWire)
95  , fPeakTime(src.fPeakTime)
96  , fAmpl(src.fAmpl)
97  , fArea(src.fArea)
98  , fPoint3D(src.fPoint3D)
99  , fPoint2D(src.fPoint2D)
103  , fDx(src.fDx)
104  , fEnabled(src.fEnabled)
105  , fOutlier(src.fOutlier)
106  , fParent(0) // set only when pushed to track
107 {}
108 
110 {
112 }
unsigned int fCryo
Definition: PmaHit3D.h:95
pma::Track3D * fParent
Definition: PmaHit3D.h:109
TVector2 fProjection2D
Definition: PmaHit3D.h:100
double Dist2(const TVector2 &v1, const TVector2 &v2)
Definition: Utilities.cxx:39
float fArea
Definition: PmaHit3D.h:96
float fSegFraction
Definition: PmaHit3D.h:101
CryostatID_t Cryostat
Index of cryostat.
Definition: geo_types.h:211
TVector2 WireDriftToCm(detinfo::DetectorPropertiesData const &detProp, unsigned int wire, float drift, unsigned int plane, unsigned int tpc, unsigned int cryo)
Definition: Utilities.cxx:286
WireID_t Wire
Index of the wire within its plane.
Definition: geo_types.h:563
geo::WireID const & WireID() const
Initial tdc tick for hit.
Definition: Hit.h:280
TVector3 fPoint3D
Definition: PmaHit3D.h:98
double GetDist2ToProj() const
Definition: PmaHit3D.cxx:109
float PeakAmplitude() const
The estimated amplitude of the hit at its peak, in ADC units.
Definition: Hit.h:232
unsigned int fTPC
Definition: PmaHit3D.h:95
double fDx
Definition: PmaHit3D.h:104
bool fOutlier
Definition: PmaHit3D.h:107
unsigned int fPlane
Definition: PmaHit3D.h:95
float fAmpl
Definition: PmaHit3D.h:96
float fPeakTime
Definition: PmaHit3D.h:96
Implementation of the Projection Matching Algorithm.
PlaneID_t Plane
Index of the plane within its TPC.
Definition: geo_types.h:481
Definition of data types for geometry description.
art::Ptr< recob::Hit > fHit
Definition: PmaHit3D.h:93
Implementation of the Projection Matching Algorithm.
float PeakTime() const
Time of the signal peak, in tick units.
Definition: Hit.h:220
float fSigmaFactor
Definition: PmaHit3D.h:102
float SummedADC() const
The sum of calibrated ADC counts of the hit (0. by default)
Definition: Hit.h:240
bool fEnabled
Definition: PmaHit3D.h:106
TPCID_t TPC
Index of the TPC within its cryostat.
Definition: geo_types.h:399
TVector2 fPoint2D
Definition: PmaHit3D.h:99
unsigned int fWire
Definition: PmaHit3D.h:95