LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
PmaHit3D.cxx
Go to the documentation of this file.
1 
13 
15  fCryo(0), fTPC(0), fPlane(0), fWire(0),
16  fPeakTime(0), fAmpl(0), fArea(0),
17  fPoint3D(0, 0, 0),
18  fPoint2D(0, 0), fProjection2D(0, 0),
19  fSegFraction(0), fSigmaFactor(1),
20  fDx(0),
21  fEnabled(true), fOutlier(false),
22  fParent(0)
23 {
24 }
25 
27  fHit(src),
28  fPoint3D(0, 0, 0),
29  fProjection2D(0, 0),
31  fDx(0),
32  fEnabled(true), fOutlier(false),
33  fParent(0) // set only when pushed to track
34 {
35  fCryo = src->WireID().Cryostat;
36  fTPC = src->WireID().TPC;
37  fPlane = src->WireID().Plane;
38  fWire = src->WireID().Wire;
39 
40  fPeakTime = src->PeakTime();
41 
42  fAmpl = src->PeakAmplitude();
43  fArea = src->SummedADC();
44 
46 }
47 
48 pma::Hit3D::Hit3D(unsigned int wire, unsigned int view, unsigned int tpc, unsigned int cryo,
49  float peaktime, float ampl, float area) :
50  fPoint3D(0, 0, 0),
51  fProjection2D(0, 0),
53  fDx(0),
54  fEnabled(false), fOutlier(false),
55  fParent(0) // set only when pushed to track
56 {
57  fCryo = cryo;
58  fTPC = tpc;
59  fPlane = view;
60  fWire = wire;
61 
62  fPeakTime = peaktime;
63 
64  fAmpl = ampl;
65  fArea = area;
66 
68 }
69 
71  fHit(src.fHit),
72  fCryo(src.fCryo), fTPC(src.fTPC), fPlane(src.fPlane), fWire(src.fWire),
73  fPeakTime(src.fPeakTime), fAmpl(src.fAmpl), fArea(src.fArea),
74  fPoint3D(src.fPoint3D),
77  fDx(src.fDx),
79  fParent(0) // set only when pushed to track
80 {
81 }
82 
83 double pma::Hit3D::GetDist2ToProj(void) const
84 {
86 }
87 
unsigned int fCryo
Definition: PmaHit3D.h:92
pma::Track3D * fParent
Definition: PmaHit3D.h:106
TVector2 fProjection2D
Definition: PmaHit3D.h:97
double Dist2(const TVector2 &v1, const TVector2 &v2)
Definition: Utilities.cxx:19
float fArea
Definition: PmaHit3D.h:93
geo::WireID WireID() const
Initial tdc tick for hit.
Definition: Hit.h:234
float fSegFraction
Definition: PmaHit3D.h:98
Hit3D(void)
Definition: PmaHit3D.cxx:14
CryostatID_t Cryostat
Index of cryostat.
Definition: geo_types.h:130
WireID_t Wire
Index of the wire within its plane.
Definition: geo_types.h:313
TVector3 fPoint3D
Definition: PmaHit3D.h:95
float PeakAmplitude() const
The estimated amplitude of the hit at its peak, in ADC units.
Definition: Hit.h:222
unsigned int fTPC
Definition: PmaHit3D.h:92
double fDx
Definition: PmaHit3D.h:101
bool fOutlier
Definition: PmaHit3D.h:104
unsigned int fPlane
Definition: PmaHit3D.h:92
float fAmpl
Definition: PmaHit3D.h:93
float fPeakTime
Definition: PmaHit3D.h:93
double GetDist2ToProj(void) const
Definition: PmaHit3D.cxx:83
Implementation of the Projection Matching Algorithm.
PlaneID_t Plane
Index of the plane within its TPC.
Definition: geo_types.h:258
float PeakTime() const
Time of the signal peak, in tick units.
Definition: Hit.h:219
float fSigmaFactor
Definition: PmaHit3D.h:99
TVector2 WireDriftToCm(unsigned int wire, float drift, unsigned int plane, unsigned int tpc, unsigned int cryo)
Definition: Utilities.cxx:296
float SummedADC() const
The sum of calibrated ADC counts of the hit (0. by default)
Definition: Hit.h:224
art::Ptr< recob::Hit > fHit
Definition: PmaHit3D.h:90
bool fEnabled
Definition: PmaHit3D.h:103
TPCID_t TPC
Index of the TPC within its cryostat.
Definition: geo_types.h:203
TVector2 fPoint2D
Definition: PmaHit3D.h:96
unsigned int fWire
Definition: PmaHit3D.h:92