LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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:95
pma::Track3D * fParent
Definition: PmaHit3D.h:109
TVector2 fProjection2D
Definition: PmaHit3D.h:100
float fArea
Definition: PmaHit3D.h:96
float fSegFraction
Definition: PmaHit3D.h:101
TVector3 fPoint3D
Definition: PmaHit3D.h:98
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
float fSigmaFactor
Definition: PmaHit3D.h:102
bool fEnabled
Definition: PmaHit3D.h:106
TVector2 fPoint2D
Definition: PmaHit3D.h:99
unsigned int fWire
Definition: PmaHit3D.h:95
pma::Hit3D::Hit3D ( detinfo::DetectorPropertiesData const &  detProp,
art::Ptr< recob::Hit src 
)

Definition at line 35 of file PmaHit3D.cxx.

References geo::CryostatID::Cryostat, fAmpl, fArea, fCryo, fPeakTime, fPlane, fPoint2D, fTPC, fWire, recob::Hit::PeakAmplitude(), recob::Hit::PeakTime(), geo::PlaneID::Plane, recob::Hit::SummedADC(), geo::TPCID::TPC, geo::WireID::Wire, pma::WireDriftToCm(), and recob::Hit::WireID().

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:95
pma::Track3D * fParent
Definition: PmaHit3D.h:109
TVector2 fProjection2D
Definition: PmaHit3D.h:100
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
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
PlaneID_t Plane
Index of the plane within its TPC.
Definition: geo_types.h:481
art::Ptr< recob::Hit > fHit
Definition: PmaHit3D.h:93
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
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.

References fAmpl, fArea, fCryo, fPeakTime, fPlane, fPoint2D, fTPC, fWire, and pma::WireDriftToCm().

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:95
pma::Track3D * fParent
Definition: PmaHit3D.h:109
TVector2 fProjection2D
Definition: PmaHit3D.h:100
float fArea
Definition: PmaHit3D.h:96
float fSegFraction
Definition: PmaHit3D.h:101
TVector2 WireDriftToCm(detinfo::DetectorPropertiesData const &detProp, unsigned int wire, float drift, unsigned int plane, unsigned int tpc, unsigned int cryo)
Definition: Utilities.cxx:286
TVector3 fPoint3D
Definition: PmaHit3D.h:98
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
float fSigmaFactor
Definition: PmaHit3D.h:102
bool fEnabled
Definition: PmaHit3D.h:106
TVector2 fPoint2D
Definition: PmaHit3D.h:99
unsigned int fWire
Definition: PmaHit3D.h:95
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:95
pma::Track3D * fParent
Definition: PmaHit3D.h:109
TVector2 fProjection2D
Definition: PmaHit3D.h:100
float fArea
Definition: PmaHit3D.h:96
float fSegFraction
Definition: PmaHit3D.h:101
TVector3 fPoint3D
Definition: PmaHit3D.h:98
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
art::Ptr< recob::Hit > fHit
Definition: PmaHit3D.h:93
float fSigmaFactor
Definition: PmaHit3D.h:102
bool fEnabled
Definition: PmaHit3D.h:106
TVector2 fPoint2D
Definition: PmaHit3D.h:99
unsigned int fWire
Definition: PmaHit3D.h:95

Member Function Documentation

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

Definition at line 69 of file PmaHit3D.h.

Referenced by trkf::PMAlgTrajFitter::produce(), and trkf::PMAlgTrackMaker::produce().

69 { return fDx; }
double fDx
Definition: PmaHit3D.h:104
float pma::Hit3D::GetAmplitude ( ) const
inlinenoexcept

Definition at line 65 of file PmaHit3D.h.

65 { return fAmpl; }
float fAmpl
Definition: PmaHit3D.h:96
double pma::Hit3D::GetDist2ToProj ( ) const

Definition at line 109 of file PmaHit3D.cxx.

References pma::Dist2(), fPoint2D, and fProjection2D.

Referenced by pma::bTrajectory3DDistLess::operator()().

110 {
112 }
TVector2 fProjection2D
Definition: PmaHit3D.h:100
double Dist2(const TVector2 &v1, const TVector2 &v2)
Definition: Utilities.cxx:39
TVector2 fPoint2D
Definition: PmaHit3D.h:99
double pma::Hit3D::GetDistToProj ( ) const
inline

Definition at line 71 of file PmaHit3D.h.

Referenced by pma::Track3D::ReassignHitsInTree(), and pma::ProjectionMatchingAlg::selectInitialHits().

71 { return sqrt(GetDist2ToProj()); }
double GetDist2ToProj() const
Definition: PmaHit3D.cxx:109
float pma::Hit3D::GetSegFraction ( ) const
inlinenoexcept

Definition at line 74 of file PmaHit3D.h.

Referenced by pma::ProjectionMatchingAlg::selectInitialHits().

74 { return fSegFraction; }
float fSegFraction
Definition: PmaHit3D.h:101
float pma::Hit3D::GetSigmaFactor ( ) const
inlinenoexcept

Definition at line 66 of file PmaHit3D.h.

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

Definition at line 48 of file PmaHit3D.h.

Referenced by ems::EMShower3D::Make3DSeg(), ems::EMShower3D::produce(), trkf::PMAlgTrajFitter::produce(), and trkf::PMAlgTrackMaker::produce().

48 { return fHit; }
art::Ptr< recob::Hit > fHit
Definition: PmaHit3D.h:93
bool pma::Hit3D::IsOutlier ( ) const
inlinenoexcept

Definition at line 89 of file PmaHit3D.h.

89 { return fOutlier; }
bool fOutlier
Definition: PmaHit3D.h:107
float pma::Hit3D::PeakTime ( ) const
inlinenoexcept
TVector2 const& pma::Hit3D::Point2D ( ) const
inlinenoexcept
TVector2 const& pma::Hit3D::Projection2D ( ) const
inlinenoexcept

Definition at line 56 of file PmaHit3D.h.

56 { return fProjection2D; }
TVector2 fProjection2D
Definition: PmaHit3D.h:100
void pma::Hit3D::SetEnabled ( bool  state)
inlinenoexcept

Definition at line 87 of file PmaHit3D.h.

Referenced by pma::Track3D::DisableSingleViewEnds().

87 { fEnabled = state; }
bool fEnabled
Definition: PmaHit3D.h:106
void pma::Hit3D::SetPoint3D ( const TVector3 &  p3d)
inline

Definition at line 52 of file PmaHit3D.h.

Referenced by pma::Segment3D::SetProjection(), and pma::Node3D::SetProjection().

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

Definition at line 53 of file PmaHit3D.h.

53 { fPoint3D.SetXYZ(x, y, z); }
Float_t x
Definition: compare.C:6
Float_t y
Definition: compare.C:6
Double_t z
Definition: plot.C:276
TVector3 fPoint3D
Definition: PmaHit3D.h:98
void pma::Hit3D::SetProjection ( const TVector2 &  p,
float  b 
)
inline

Definition at line 75 of file PmaHit3D.h.

Referenced by pma::Segment3D::SetProjection(), and pma::Node3D::SetProjection().

76  {
77  fProjection2D.Set(p);
78  fSegFraction = b;
79  }
TVector2 fProjection2D
Definition: PmaHit3D.h:100
float fSegFraction
Definition: PmaHit3D.h:101
void pma::Hit3D::SetProjection ( double  x,
double  y,
float  b 
)
inline

Definition at line 80 of file PmaHit3D.h.

81  {
82  fProjection2D.Set(x, y);
83  fSegFraction = b;
84  }
Float_t x
Definition: compare.C:6
TVector2 fProjection2D
Definition: PmaHit3D.h:100
Float_t y
Definition: compare.C:6
float fSegFraction
Definition: PmaHit3D.h:101
void pma::Hit3D::SetSigmaFactor ( float  value)
inlinenoexcept

Definition at line 67 of file PmaHit3D.h.

References value.

67 { fSigmaFactor = value; }
double value
Definition: spectrum.C:18
float fSigmaFactor
Definition: PmaHit3D.h:102
float pma::Hit3D::SummedADC ( ) const
inlinenoexcept

Definition at line 64 of file PmaHit3D.h.

Referenced by pma::Track3D::GetRawdEdxSequence(), and pma::ProjectionMatchingAlg::selectInitialHits().

64 { return fArea; }
float fArea
Definition: PmaHit3D.h:96
void pma::Hit3D::TagOutlier ( bool  state)
inlinenoexcept

Definition at line 90 of file PmaHit3D.h.

Referenced by pma::ProjectionMatchingAlg::selectInitialHits().

90 { fOutlier = state; }
bool fOutlier
Definition: PmaHit3D.h:107
unsigned int pma::Hit3D::TPC ( void  ) const
inlinenoexcept
unsigned int pma::Hit3D::Wire ( ) const
inlinenoexcept

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 96 of file PmaHit3D.h.

Referenced by Hit3D().

float pma::Hit3D::fArea
private

Definition at line 96 of file PmaHit3D.h.

Referenced by Hit3D().

unsigned int pma::Hit3D::fCryo
private

Definition at line 95 of file PmaHit3D.h.

Referenced by Hit3D().

double pma::Hit3D::fDx
private

Definition at line 104 of file PmaHit3D.h.

bool pma::Hit3D::fEnabled
private

Definition at line 106 of file PmaHit3D.h.

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

Definition at line 93 of file PmaHit3D.h.

bool pma::Hit3D::fOutlier
private

Definition at line 107 of file PmaHit3D.h.

pma::Track3D* pma::Hit3D::fParent
private
float pma::Hit3D::fPeakTime
private

Definition at line 96 of file PmaHit3D.h.

Referenced by Hit3D().

unsigned int pma::Hit3D::fPlane
private

Definition at line 95 of file PmaHit3D.h.

Referenced by Hit3D().

TVector2 pma::Hit3D::fPoint2D
private

Definition at line 99 of file PmaHit3D.h.

Referenced by GetDist2ToProj(), and Hit3D().

TVector3 pma::Hit3D::fPoint3D
private

Definition at line 98 of file PmaHit3D.h.

TVector2 pma::Hit3D::fProjection2D
private

Definition at line 100 of file PmaHit3D.h.

Referenced by GetDist2ToProj().

float pma::Hit3D::fSegFraction
private

Definition at line 101 of file PmaHit3D.h.

Referenced by pma::bTrajectory3DOrderLess::operator()().

float pma::Hit3D::fSigmaFactor
private

Definition at line 102 of file PmaHit3D.h.

unsigned int pma::Hit3D::fTPC
private

Definition at line 95 of file PmaHit3D.h.

Referenced by Hit3D().

unsigned int pma::Hit3D::fWire
private

Definition at line 95 of file PmaHit3D.h.

Referenced by Hit3D().


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