LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
pma::Hit3D Class Reference

#include "PmaHit3D.h"

Public Member Functions

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

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

Constructor & Destructor Documentation

pma::Hit3D::Hit3D ( void  )

Definition at line 14 of file PmaHit3D.cxx.

14  :
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),
20  fDx(0),
21  fEnabled(true), fOutlier(false),
22  fParent(0)
23 {
24 }
unsigned int fCryo
Definition: PmaHit3D.h:92
pma::Track3D * fParent
Definition: PmaHit3D.h:106
TVector2 fProjection2D
Definition: PmaHit3D.h:97
float fArea
Definition: PmaHit3D.h:93
float fSegFraction
Definition: PmaHit3D.h:98
TVector3 fPoint3D
Definition: PmaHit3D.h:95
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
float fSigmaFactor
Definition: PmaHit3D.h:99
bool fEnabled
Definition: PmaHit3D.h:103
TVector2 fPoint2D
Definition: PmaHit3D.h:96
unsigned int fWire
Definition: PmaHit3D.h:92
pma::Hit3D::Hit3D ( art::Ptr< recob::Hit src)

Definition at line 26 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().

26  :
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 }
unsigned int fCryo
Definition: PmaHit3D.h:92
pma::Track3D * fParent
Definition: PmaHit3D.h:106
TVector2 fProjection2D
Definition: PmaHit3D.h:97
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
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
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
pma::Hit3D::Hit3D ( unsigned int  wire,
unsigned int  view,
unsigned int  tpc,
unsigned int  cryo,
float  peaktime,
float  ampl,
float  area 
)

Definition at line 48 of file PmaHit3D.cxx.

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

49  :
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 }
unsigned int fCryo
Definition: PmaHit3D.h:92
pma::Track3D * fParent
Definition: PmaHit3D.h:106
TVector2 fProjection2D
Definition: PmaHit3D.h:97
float fArea
Definition: PmaHit3D.h:93
float fSegFraction
Definition: PmaHit3D.h:98
TVector3 fPoint3D
Definition: PmaHit3D.h:95
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
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
bool fEnabled
Definition: PmaHit3D.h:103
TVector2 fPoint2D
Definition: PmaHit3D.h:96
unsigned int fWire
Definition: PmaHit3D.h:92
pma::Hit3D::Hit3D ( const pma::Hit3D src)

Definition at line 70 of file PmaHit3D.cxx.

70  :
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 }
unsigned int fCryo
Definition: PmaHit3D.h:92
pma::Track3D * fParent
Definition: PmaHit3D.h:106
TVector2 fProjection2D
Definition: PmaHit3D.h:97
float fArea
Definition: PmaHit3D.h:93
float fSegFraction
Definition: PmaHit3D.h:98
TVector3 fPoint3D
Definition: PmaHit3D.h:95
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
float fSigmaFactor
Definition: PmaHit3D.h:99
art::Ptr< recob::Hit > fHit
Definition: PmaHit3D.h:90
bool fEnabled
Definition: PmaHit3D.h:103
TVector2 fPoint2D
Definition: PmaHit3D.h:96
unsigned int fWire
Definition: PmaHit3D.h:92
virtual pma::Hit3D::~Hit3D ( void  )
inlinevirtual

Definition at line 44 of file PmaHit3D.h.

44 {}

Member Function Documentation

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

Definition at line 67 of file PmaHit3D.h.

References fDx.

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

67 { return fDx; }
double fDx
Definition: PmaHit3D.h:101
float pma::Hit3D::GetAmplitude ( void  ) const
inline

Definition at line 63 of file PmaHit3D.h.

References fAmpl.

63 { return fAmpl; }
float fAmpl
Definition: PmaHit3D.h:93
double pma::Hit3D::GetDist2ToProj ( void  ) const

Definition at line 83 of file PmaHit3D.cxx.

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

Referenced by GetDistToProj(), and pma::bTrajectory3DDistLess::operator()().

84 {
86 }
TVector2 fProjection2D
Definition: PmaHit3D.h:97
double Dist2(const TVector2 &v1, const TVector2 &v2)
Definition: Utilities.cxx:19
TVector2 fPoint2D
Definition: PmaHit3D.h:96
double pma::Hit3D::GetDistToProj ( void  ) const
inline

Definition at line 69 of file PmaHit3D.h.

References GetDist2ToProj().

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

69 { return sqrt(GetDist2ToProj()); }
double GetDist2ToProj(void) const
Definition: PmaHit3D.cxx:83
float pma::Hit3D::GetSegFraction ( ) const
inline

Definition at line 72 of file PmaHit3D.h.

References fSegFraction.

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

72 { return fSegFraction; }
float fSegFraction
Definition: PmaHit3D.h:98
float pma::Hit3D::GetSigmaFactor ( void  ) const
inline

Definition at line 64 of file PmaHit3D.h.

References fSigmaFactor.

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

Definition at line 46 of file PmaHit3D.h.

References fHit.

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

46 { return fHit; }
art::Ptr< recob::Hit > fHit
Definition: PmaHit3D.h:90
bool pma::Hit3D::IsOutlier ( void  ) const
inline

Definition at line 85 of file PmaHit3D.h.

References fOutlier.

85 { return fOutlier; }
bool fOutlier
Definition: PmaHit3D.h:104
float pma::Hit3D::PeakTime ( void  ) const
inline

Definition at line 60 of file PmaHit3D.h.

References fPeakTime.

Referenced by pma::Track3D::CompleteMissingWires(), pma::Track3D::GetRawdEdxSequence(), and pma::Track3D::InitFromHits().

60 { return fPeakTime; }
float fPeakTime
Definition: PmaHit3D.h:93
TVector2 const& pma::Hit3D::Point2D ( void  ) const
inline
TVector2 const& pma::Hit3D::Projection2D ( void  ) const
inline

Definition at line 54 of file PmaHit3D.h.

References fProjection2D.

54 { return fProjection2D; }
TVector2 fProjection2D
Definition: PmaHit3D.h:97
void pma::Hit3D::SetEnabled ( bool  state)
inline

Definition at line 83 of file PmaHit3D.h.

References fEnabled.

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

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

Definition at line 50 of file PmaHit3D.h.

References fPoint3D.

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

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

Definition at line 51 of file PmaHit3D.h.

References fPoint3D.

51 { 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:279
TVector3 fPoint3D
Definition: PmaHit3D.h:95
void pma::Hit3D::SetProjection ( const TVector2 &  p,
float  b 
)
inline

Definition at line 73 of file PmaHit3D.h.

References fProjection2D, and fSegFraction.

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

74  {
75  fProjection2D.Set(p); fSegFraction = b;
76  }
TVector2 fProjection2D
Definition: PmaHit3D.h:97
float fSegFraction
Definition: PmaHit3D.h:98
void pma::Hit3D::SetProjection ( double  x,
double  y,
float  b 
)
inline

Definition at line 77 of file PmaHit3D.h.

References fProjection2D, and fSegFraction.

78  {
79  fProjection2D.Set(x, y); fSegFraction = b;
80  }
Float_t x
Definition: compare.C:6
TVector2 fProjection2D
Definition: PmaHit3D.h:97
Float_t y
Definition: compare.C:6
float fSegFraction
Definition: PmaHit3D.h:98
void pma::Hit3D::SetSigmaFactor ( float  value)
inline

Definition at line 65 of file PmaHit3D.h.

References fSigmaFactor, and fhicl::detail::atom::value().

65 { fSigmaFactor = value; }
std::string value(boost::any const &)
float fSigmaFactor
Definition: PmaHit3D.h:99
float pma::Hit3D::SummedADC ( void  ) const
inline

Definition at line 62 of file PmaHit3D.h.

References fArea.

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

62 { return fArea; }
float fArea
Definition: PmaHit3D.h:93
virtual void pma::Hit3D::TagOutlier ( bool  state)
inlinevirtual

Definition at line 86 of file PmaHit3D.h.

References fOutlier.

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

86 { fOutlier = state; }
bool fOutlier
Definition: PmaHit3D.h:104
unsigned int pma::Hit3D::TPC ( void  ) const
inline
unsigned int pma::Hit3D::Wire ( void  ) const
inline

Friends And Related Function Documentation

friend struct bTrajectory3DOrderLess
friend

Definition at line 36 of file PmaHit3D.h.

friend class Track3D
friend

Definition at line 35 of file PmaHit3D.h.

Member Data Documentation

float pma::Hit3D::fAmpl
private

Definition at line 93 of file PmaHit3D.h.

Referenced by GetAmplitude(), and Hit3D().

float pma::Hit3D::fArea
private

Definition at line 93 of file PmaHit3D.h.

Referenced by Hit3D(), and SummedADC().

unsigned int pma::Hit3D::fCryo
private

Definition at line 92 of file PmaHit3D.h.

Referenced by Cryo(), and Hit3D().

double pma::Hit3D::fDx
private

Definition at line 101 of file PmaHit3D.h.

Referenced by Dx().

bool pma::Hit3D::fEnabled
private

Definition at line 103 of file PmaHit3D.h.

Referenced by IsEnabled(), and SetEnabled().

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

Definition at line 90 of file PmaHit3D.h.

Referenced by Hit2DPtr().

bool pma::Hit3D::fOutlier
private

Definition at line 104 of file PmaHit3D.h.

Referenced by IsEnabled(), IsOutlier(), and TagOutlier().

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

Definition at line 93 of file PmaHit3D.h.

Referenced by Hit3D(), and PeakTime().

unsigned int pma::Hit3D::fPlane
private

Definition at line 92 of file PmaHit3D.h.

Referenced by Hit3D(), and View2D().

TVector2 pma::Hit3D::fPoint2D
private

Definition at line 96 of file PmaHit3D.h.

Referenced by GetDist2ToProj(), Hit3D(), and Point2D().

TVector3 pma::Hit3D::fPoint3D
private

Definition at line 95 of file PmaHit3D.h.

Referenced by Point3D(), and SetPoint3D().

TVector2 pma::Hit3D::fProjection2D
private

Definition at line 97 of file PmaHit3D.h.

Referenced by GetDist2ToProj(), Projection2D(), and SetProjection().

float pma::Hit3D::fSegFraction
private
float pma::Hit3D::fSigmaFactor
private

Definition at line 99 of file PmaHit3D.h.

Referenced by GetSigmaFactor(), and SetSigmaFactor().

unsigned int pma::Hit3D::fTPC
private

Definition at line 92 of file PmaHit3D.h.

Referenced by Hit3D(), and TPC().

unsigned int pma::Hit3D::fWire
private

Definition at line 92 of file PmaHit3D.h.

Referenced by Hit3D(), and Wire().


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