Public Member Functions | Private Attributes | Friends | List of all members
pma::Hit3D Class Reference

#include <PmaHit3D.h>

Public Member Functions

 Hit3D ()
 
 Hit3D (detinfo::DetectorPropertiesData const &detProp, art::Ptr< recob::Hit > src)
 
 Hit3D (detinfo::DetectorPropertiesData const &detProp, unsigned int wire, unsigned int view, unsigned int tpc, unsigned int cryo, float peaktime, float ampl, float area)
 
 Hit3D (const pma::Hit3D &src)
 
art::Ptr< recob::Hit > const & Hit2DPtr () const
 
TVector3 const & Point3D () const
 
void SetPoint3D (const TVector3 &p3d)
 
void SetPoint3D (double x, double y, double z)
 
TVector2 const & Point2D () const noexcept
 
TVector2 const & Projection2D () const noexcept
 
unsigned int Cryo () const noexcept
 
unsigned int TPC () const noexcept
 
unsigned int View2D () const noexcept
 
unsigned int Wire () const noexcept
 
float PeakTime () const noexcept
 
float SummedADC () const noexcept
 
float GetAmplitude () const noexcept
 
float GetSigmaFactor () const noexcept
 
void SetSigmaFactor (float value) noexcept
 
double Dx () const noexcept
 
double GetDistToProj () const
 
double GetDist2ToProj () const
 
float GetSegFraction () const noexcept
 
void SetProjection (const TVector2 &p, float b)
 
void SetProjection (double x, double y, float b)
 
bool IsEnabled () const noexcept
 
void SetEnabled (bool state) noexcept
 
bool IsOutlier () const noexcept
 
void TagOutlier (bool state) noexcept
 

Private Attributes

art::Ptr< recob::HitfHit
 
unsigned int fCryo
 
unsigned int fTPC
 
unsigned int fPlane
 
unsigned int fWire
 
float fPeakTime
 
float fAmpl
 
float fArea
 
TVector3 fPoint3D
 
TVector2 fPoint2D
 
TVector2 fProjection2D
 
float fSegFraction
 
float fSigmaFactor
 
double fDx
 
bool fEnabled
 
bool fOutlier
 
pma::Track3DfParent
 

Friends

class Track3D
 
struct bTrajectory3DOrderLess
 

Detailed Description

Definition at line 31 of file PmaHit3D.h.

Constructor & Destructor Documentation

pma::Hit3D::Hit3D ( )

Definition at line 16 of file PmaHit3D.cxx.

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 {}
unsigned int fCryo
Definition: PmaHit3D.h:185
pma::Track3D * fParent
Definition: PmaHit3D.h:199
TVector2 fProjection2D
Definition: PmaHit3D.h:190
float fArea
Definition: PmaHit3D.h:186
float fSegFraction
Definition: PmaHit3D.h:191
TVector3 fPoint3D
Definition: PmaHit3D.h:188
unsigned int fTPC
Definition: PmaHit3D.h:185
double fDx
Definition: PmaHit3D.h:194
bool fOutlier
Definition: PmaHit3D.h:197
unsigned int fPlane
Definition: PmaHit3D.h:185
float fAmpl
Definition: PmaHit3D.h:186
float fPeakTime
Definition: PmaHit3D.h:186
float fSigmaFactor
Definition: PmaHit3D.h:192
bool fEnabled
Definition: PmaHit3D.h:196
TVector2 fPoint2D
Definition: PmaHit3D.h:189
unsigned int fWire
Definition: PmaHit3D.h:185
pma::Hit3D::Hit3D ( detinfo::DetectorPropertiesData const &  detProp,
art::Ptr< recob::Hit src 
)

Definition at line 35 of file PmaHit3D.cxx.

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 }
unsigned int fCryo
Definition: PmaHit3D.h:185
pma::Track3D * fParent
Definition: PmaHit3D.h:199
TVector2 fProjection2D
Definition: PmaHit3D.h:190
float fArea
Definition: PmaHit3D.h:186
geo::WireID WireID() const
Definition: Hit.h:233
float fSegFraction
Definition: PmaHit3D.h:191
CryostatID_t Cryostat
Index of cryostat.
Definition: geo_types.h:212
TVector2 WireDriftToCm(detinfo::DetectorPropertiesData const &detProp, unsigned int wire, float drift, unsigned int plane, unsigned int tpc, unsigned int cryo)
Definition: Utilities.cxx:294
WireID_t Wire
Index of the wire within its plane.
Definition: geo_types.h:580
TVector3 fPoint3D
Definition: PmaHit3D.h:188
float PeakAmplitude() const
The estimated amplitude of the hit at its peak, in ADC units.
Definition: Hit.h:221
unsigned int fTPC
Definition: PmaHit3D.h:185
double fDx
Definition: PmaHit3D.h:194
bool fOutlier
Definition: PmaHit3D.h:197
unsigned int fPlane
Definition: PmaHit3D.h:185
float fAmpl
Definition: PmaHit3D.h:186
float fPeakTime
Definition: PmaHit3D.h:186
PlaneID_t Plane
Index of the plane within its TPC.
Definition: geo_types.h:493
art::Ptr< recob::Hit > fHit
Definition: PmaHit3D.h:183
float PeakTime() const
Time of the signal peak, in tick units.
Definition: Hit.h:218
float fSigmaFactor
Definition: PmaHit3D.h:192
float SummedADC() const
The sum of calibrated ADC counts of the hit (0. by default)
Definition: Hit.h:223
bool fEnabled
Definition: PmaHit3D.h:196
TPCID_t TPC
Index of the TPC within its cryostat.
Definition: geo_types.h:406
TVector2 fPoint2D
Definition: PmaHit3D.h:189
unsigned int fWire
Definition: PmaHit3D.h:185
pma::Hit3D::Hit3D ( detinfo::DetectorPropertiesData const &  detProp,
unsigned int  wire,
unsigned int  view,
unsigned int  tpc,
unsigned int  cryo,
float  peaktime,
float  ampl,
float  area 
)

Definition at line 59 of file PmaHit3D.cxx.

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 }
unsigned int fCryo
Definition: PmaHit3D.h:185
pma::Track3D * fParent
Definition: PmaHit3D.h:199
TVector2 fProjection2D
Definition: PmaHit3D.h:190
float fArea
Definition: PmaHit3D.h:186
float fSegFraction
Definition: PmaHit3D.h:191
TVector2 WireDriftToCm(detinfo::DetectorPropertiesData const &detProp, unsigned int wire, float drift, unsigned int plane, unsigned int tpc, unsigned int cryo)
Definition: Utilities.cxx:294
TVector3 fPoint3D
Definition: PmaHit3D.h:188
unsigned int fTPC
Definition: PmaHit3D.h:185
double fDx
Definition: PmaHit3D.h:194
bool fOutlier
Definition: PmaHit3D.h:197
unsigned int fPlane
Definition: PmaHit3D.h:185
float fAmpl
Definition: PmaHit3D.h:186
float fPeakTime
Definition: PmaHit3D.h:186
float fSigmaFactor
Definition: PmaHit3D.h:192
bool fEnabled
Definition: PmaHit3D.h:196
TVector2 fPoint2D
Definition: PmaHit3D.h:189
unsigned int fWire
Definition: PmaHit3D.h:185
pma::Hit3D::Hit3D ( const pma::Hit3D src)

Definition at line 89 of file PmaHit3D.cxx.

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 {}
unsigned int fCryo
Definition: PmaHit3D.h:185
pma::Track3D * fParent
Definition: PmaHit3D.h:199
TVector2 fProjection2D
Definition: PmaHit3D.h:190
float fArea
Definition: PmaHit3D.h:186
float fSegFraction
Definition: PmaHit3D.h:191
TVector3 fPoint3D
Definition: PmaHit3D.h:188
unsigned int fTPC
Definition: PmaHit3D.h:185
double fDx
Definition: PmaHit3D.h:194
bool fOutlier
Definition: PmaHit3D.h:197
unsigned int fPlane
Definition: PmaHit3D.h:185
float fAmpl
Definition: PmaHit3D.h:186
float fPeakTime
Definition: PmaHit3D.h:186
art::Ptr< recob::Hit > fHit
Definition: PmaHit3D.h:183
float fSigmaFactor
Definition: PmaHit3D.h:192
bool fEnabled
Definition: PmaHit3D.h:196
TVector2 fPoint2D
Definition: PmaHit3D.h:189
unsigned int fWire
Definition: PmaHit3D.h:185

Member Function Documentation

unsigned int pma::Hit3D::Cryo ( void  ) const
inlinenoexcept

Definition at line 83 of file PmaHit3D.h.

84  {
85  return fCryo;
86  }
unsigned int fCryo
Definition: PmaHit3D.h:185
double pma::Hit3D::Dx ( void  ) const
inlinenoexcept

Definition at line 130 of file PmaHit3D.h.

131  {
132  return fDx;
133  }
double fDx
Definition: PmaHit3D.h:194
float pma::Hit3D::GetAmplitude ( ) const
inlinenoexcept

Definition at line 114 of file PmaHit3D.h.

115  {
116  return fAmpl;
117  }
float fAmpl
Definition: PmaHit3D.h:186
double pma::Hit3D::GetDist2ToProj ( ) const

Definition at line 110 of file PmaHit3D.cxx.

111 {
113 }
TVector2 fProjection2D
Definition: PmaHit3D.h:190
double Dist2(const TVector2 &v1, const TVector2 &v2)
Definition: Utilities.cxx:37
TVector2 fPoint2D
Definition: PmaHit3D.h:189
double pma::Hit3D::GetDistToProj ( ) const
inline

Definition at line 136 of file PmaHit3D.h.

137  {
138  return sqrt(GetDist2ToProj());
139  }
double GetDist2ToProj() const
Definition: PmaHit3D.cxx:110
float pma::Hit3D::GetSegFraction ( ) const
inlinenoexcept

Definition at line 143 of file PmaHit3D.h.

144  {
145  return fSegFraction;
146  }
float fSegFraction
Definition: PmaHit3D.h:191
float pma::Hit3D::GetSigmaFactor ( ) const
inlinenoexcept

Definition at line 119 of file PmaHit3D.h.

120  {
121  return fSigmaFactor;
122  }
float fSigmaFactor
Definition: PmaHit3D.h:192
art::Ptr<recob::Hit> const& pma::Hit3D::Hit2DPtr ( ) const
inline

Definition at line 49 of file PmaHit3D.h.

50  {
51  return fHit;
52  }
art::Ptr< recob::Hit > fHit
Definition: PmaHit3D.h:183
bool pma::Hit3D::IsEnabled ( ) const
inlinenoexcept

Definition at line 161 of file PmaHit3D.h.

162  {
163  return (fEnabled && !fOutlier);
164  }
bool fOutlier
Definition: PmaHit3D.h:197
bool fEnabled
Definition: PmaHit3D.h:196
bool pma::Hit3D::IsOutlier ( ) const
inlinenoexcept

Definition at line 172 of file PmaHit3D.h.

173  {
174  return fOutlier;
175  }
bool fOutlier
Definition: PmaHit3D.h:197
float pma::Hit3D::PeakTime ( ) const
inlinenoexcept

Definition at line 103 of file PmaHit3D.h.

104  {
105  return fPeakTime;
106  }
float fPeakTime
Definition: PmaHit3D.h:186
TVector2 const& pma::Hit3D::Point2D ( ) const
inlinenoexcept

Definition at line 72 of file PmaHit3D.h.

73  {
74  return fPoint2D;
75  }
TVector2 fPoint2D
Definition: PmaHit3D.h:189
TVector3 const& pma::Hit3D::Point3D ( ) const
inline

Definition at line 55 of file PmaHit3D.h.

56  {
57  return fPoint3D;
58  }
TVector3 fPoint3D
Definition: PmaHit3D.h:188
TVector2 const& pma::Hit3D::Projection2D ( ) const
inlinenoexcept

Definition at line 77 of file PmaHit3D.h.

78  {
79  return fProjection2D;
80  }
TVector2 fProjection2D
Definition: PmaHit3D.h:190
void pma::Hit3D::SetEnabled ( bool  state)
inlinenoexcept

Definition at line 166 of file PmaHit3D.h.

167  {
168  fEnabled = state;
169  }
bool fEnabled
Definition: PmaHit3D.h:196
void pma::Hit3D::SetPoint3D ( const TVector3 &  p3d)
inline

Definition at line 61 of file PmaHit3D.h.

62  {
63  fPoint3D = p3d;
64  }
TVector3 fPoint3D
Definition: PmaHit3D.h:188
void pma::Hit3D::SetPoint3D ( double  x,
double  y,
double  z 
)
inline

Definition at line 66 of file PmaHit3D.h.

67  {
68  fPoint3D.SetXYZ(x, y, z);
69  }
TVector3 fPoint3D
Definition: PmaHit3D.h:188
list x
Definition: train.py:276
void pma::Hit3D::SetProjection ( const TVector2 &  p,
float  b 
)
inline

Definition at line 148 of file PmaHit3D.h.

149  {
150  fProjection2D.Set(p);
151  fSegFraction = b;
152  }
TVector2 fProjection2D
Definition: PmaHit3D.h:190
float fSegFraction
Definition: PmaHit3D.h:191
p
Definition: test.py:223
static bool * b
Definition: config.cpp:1043
void pma::Hit3D::SetProjection ( double  x,
double  y,
float  b 
)
inline

Definition at line 154 of file PmaHit3D.h.

155  {
156  fProjection2D.Set(x, y);
157  fSegFraction = b;
158  }
TVector2 fProjection2D
Definition: PmaHit3D.h:190
float fSegFraction
Definition: PmaHit3D.h:191
static bool * b
Definition: config.cpp:1043
list x
Definition: train.py:276
void pma::Hit3D::SetSigmaFactor ( float  value)
inlinenoexcept

Definition at line 124 of file PmaHit3D.h.

125  {
127  }
float fSigmaFactor
Definition: PmaHit3D.h:192
float pma::Hit3D::SummedADC ( ) const
inlinenoexcept

Definition at line 109 of file PmaHit3D.h.

110  {
111  return fArea;
112  }
float fArea
Definition: PmaHit3D.h:186
void pma::Hit3D::TagOutlier ( bool  state)
inlinenoexcept

Definition at line 177 of file PmaHit3D.h.

178  {
179  fOutlier = state;
180  }
bool fOutlier
Definition: PmaHit3D.h:197
unsigned int pma::Hit3D::TPC ( void  ) const
inlinenoexcept

Definition at line 88 of file PmaHit3D.h.

89  {
90  return fTPC;
91  }
unsigned int fTPC
Definition: PmaHit3D.h:185
unsigned int pma::Hit3D::View2D ( ) const
inlinenoexcept

Definition at line 93 of file PmaHit3D.h.

94  {
95  return fPlane;
96  }
unsigned int fPlane
Definition: PmaHit3D.h:185
unsigned int pma::Hit3D::Wire ( ) const
inlinenoexcept

Definition at line 98 of file PmaHit3D.h.

99  {
100  return fWire;
101  }
unsigned int fWire
Definition: PmaHit3D.h:185

Friends And Related Function Documentation

friend struct bTrajectory3DOrderLess
friend

Definition at line 33 of file PmaHit3D.h.

friend class Track3D
friend

Definition at line 32 of file PmaHit3D.h.

Member Data Documentation

float pma::Hit3D::fAmpl
private

Definition at line 186 of file PmaHit3D.h.

float pma::Hit3D::fArea
private

Definition at line 186 of file PmaHit3D.h.

unsigned int pma::Hit3D::fCryo
private

Definition at line 185 of file PmaHit3D.h.

double pma::Hit3D::fDx
private

Definition at line 194 of file PmaHit3D.h.

bool pma::Hit3D::fEnabled
private

Definition at line 196 of file PmaHit3D.h.

art::Ptr<recob::Hit> pma::Hit3D::fHit
private

Definition at line 183 of file PmaHit3D.h.

bool pma::Hit3D::fOutlier
private

Definition at line 197 of file PmaHit3D.h.

pma::Track3D* pma::Hit3D::fParent
private

Definition at line 199 of file PmaHit3D.h.

float pma::Hit3D::fPeakTime
private

Definition at line 186 of file PmaHit3D.h.

unsigned int pma::Hit3D::fPlane
private

Definition at line 185 of file PmaHit3D.h.

TVector2 pma::Hit3D::fPoint2D
private

Definition at line 189 of file PmaHit3D.h.

TVector3 pma::Hit3D::fPoint3D
private

Definition at line 188 of file PmaHit3D.h.

TVector2 pma::Hit3D::fProjection2D
private

Definition at line 190 of file PmaHit3D.h.

float pma::Hit3D::fSegFraction
private

Definition at line 191 of file PmaHit3D.h.

float pma::Hit3D::fSigmaFactor
private

Definition at line 192 of file PmaHit3D.h.

unsigned int pma::Hit3D::fTPC
private

Definition at line 185 of file PmaHit3D.h.

unsigned int pma::Hit3D::fWire
private

Definition at line 185 of file PmaHit3D.h.


The documentation for this class was generated from the following files: