PandaRoot
PndFtsHit Class Reference

#include <PndFtsHit.h>

Inheritance diagram for PndFtsHit:

Public Member Functions

 PndFtsHit ()
 
 PndFtsHit (Int_t detID, Int_t tubeID, Int_t chamberID, Int_t layerID, Int_t skew, Int_t mcindex, TVector3 &pos, TVector3 &dpos, Double_t p, Double_t isochrone, Double_t isochroneError, Double_t chDep)
 
virtual ~PndFtsHit ()
 
virtual void Print (const Option_t *opt=nullptr) const
 
void Clear ()
 
Double_t GetIsochrone () const
 
Double_t GetIsochroneError () const
 
Double_t GetPulse () const
 
Double_t GetDepCharge () const
 
Double_t GetEnergyLoss () const
 
void SetIsochrone (Double_t isochrone)
 
void SetIsochroneError (Double_t isochroneError)
 
void SetDepCharge (Double_t depcharge)
 
void SetTubeID (Int_t tubeid)
 
Int_t GetTubeID () const
 
void SetChamberID (Int_t chamberid)
 
Int_t GetChamberID () const
 
void SetLayerID (Int_t layerid)
 
Int_t GetLayerID () const
 
Int_t GetSkewed () const
 
virtual bool equal (FairTimeStamp *data) const
 
virtual bool operator< (const PndFtsHit &myDigi) const
 

Protected Member Functions

 ClassDef (PndFtsHit, 2)
 

Protected Attributes

Double_t fIsochrone
 
Double_t fIsochroneError
 
Double_t fPulse
 
Double_t fDepCharge
 
Int_t fTubeID
 
Int_t fChamberID
 
Int_t fLayerID
 
Int_t fSkewed
 

Friends

std::ostream & operator<< (std::ostream &out, PndFtsHit &digi)
 

Detailed Description

Meaning of RefIndex: Index of corresponding MCPoint -1 if fake or background hit

Meaning of Flag: 0 = Hit ok -1 : Hit lost due to detection inefficiency

Definition at line 28 of file PndFtsHit.h.

Constructor & Destructor Documentation

◆ PndFtsHit() [1/2]

PndFtsHit::PndFtsHit ( )

Default constructor

◆ PndFtsHit() [2/2]

PndFtsHit::PndFtsHit ( Int_t  detID,
Int_t  tubeID,
Int_t  chamberID,
Int_t  layerID,
Int_t  skew,
Int_t  mcindex,
TVector3 &  pos,
TVector3 &  dpos,
Double_t  p,
Double_t  isochrone,
Double_t  isochroneError,
Double_t  chDep 
)

Standard constructor

Parameters
detIDDetector unique volume ID
tubeIDUnique tube ID
chamberIDUnique chamber ID
layerIDUnique layer ID
skewflag for skewed tube
mcindexIndex of corresponding MCPoint
posPosition coordinates of the tube [cm]
dposErrors in position coordinates [cm]
isochroneThe radial measurement
isoerrorThe erroon on the radial measurement
chDepDeposited charge (arbitrary unit)

◆ ~PndFtsHit()

virtual PndFtsHit::~PndFtsHit ( )
virtual

Destructor

Member Function Documentation

◆ ClassDef()

PndFtsHit::ClassDef ( PndFtsHit  ,
 
)
protected

◆ Clear()

void PndFtsHit::Clear ( )

Public method Clear Resets the isochrone and it's error to 0

Referenced by Print().

◆ equal()

virtual bool PndFtsHit::equal ( FairTimeStamp *  data) const
inlinevirtual

Definition at line 88 of file PndFtsHit.h.

References fTubeID, and GetTubeID().

89  {
90  PndFtsHit *myDigi = dynamic_cast<PndFtsHit *>(data);
91  if (myDigi != nullptr) {
92  if (fTubeID == myDigi->GetTubeID())
93  return true;
94  }
95  return false;
96  }
Int_t GetTubeID() const
Definition: PndFtsHit.h:81
Int_t fTubeID
Definition: PndFtsHit.h:126

◆ GetChamberID()

Int_t PndFtsHit::GetChamberID ( ) const
inline

Definition at line 83 of file PndFtsHit.h.

References fChamberID.

83 { return fChamberID; }
Int_t fChamberID
Definition: PndFtsHit.h:127

◆ GetDepCharge()

Double_t PndFtsHit::GetDepCharge ( ) const
inline

Definition at line 71 of file PndFtsHit.h.

References fDepCharge.

71 { return fDepCharge; };
Double_t fDepCharge
Definition: PndFtsHit.h:123

◆ GetEnergyLoss()

Double_t PndFtsHit::GetEnergyLoss ( ) const
inline

Definition at line 72 of file PndFtsHit.h.

References fDepCharge.

72 { return fDepCharge / 1e6; };
Double_t fDepCharge
Definition: PndFtsHit.h:123

◆ GetIsochrone()

Double_t PndFtsHit::GetIsochrone ( ) const
inline

Accessors

Definition at line 68 of file PndFtsHit.h.

References fIsochrone.

68 { return fIsochrone; };
Double_t fIsochrone
Definition: PndFtsHit.h:115

◆ GetIsochroneError()

Double_t PndFtsHit::GetIsochroneError ( ) const
inline

Definition at line 69 of file PndFtsHit.h.

References fIsochroneError.

69 { return fIsochroneError; };
Double_t fIsochroneError
Definition: PndFtsHit.h:117

◆ GetLayerID()

Int_t PndFtsHit::GetLayerID ( ) const
inline

Definition at line 85 of file PndFtsHit.h.

References fLayerID.

85 { return fLayerID; }
Int_t fLayerID
Definition: PndFtsHit.h:128

◆ GetPulse()

Double_t PndFtsHit::GetPulse ( ) const
inline

Definition at line 70 of file PndFtsHit.h.

References fPulse.

70 { return fPulse; };
Double_t fPulse
Definition: PndFtsHit.h:120

◆ GetSkewed()

Int_t PndFtsHit::GetSkewed ( ) const
inline

Definition at line 86 of file PndFtsHit.h.

References fSkewed.

Referenced by PndFtsHoughSpace::Print().

86 { return fSkewed; }
Int_t fSkewed
Definition: PndFtsHit.h:129

◆ GetTubeID()

Int_t PndFtsHit::GetTubeID ( ) const
inline

Definition at line 81 of file PndFtsHit.h.

References fTubeID.

Referenced by PndFtsHoughTrackerTask::CheckForDuplicateFtsHits(), equal(), PndFtsHoughTrackerTask::GetFtsTube(), and operator<().

81 { return fTubeID; }
Int_t fTubeID
Definition: PndFtsHit.h:126

◆ operator<()

virtual bool PndFtsHit::operator< ( const PndFtsHit myDigi) const
inlinevirtual

Definition at line 98 of file PndFtsHit.h.

References fTubeID, and GetTubeID().

99  {
100  if (fTubeID < myDigi.GetTubeID())
101  return true;
102  else
103  return false;
104  }
Int_t GetTubeID() const
Definition: PndFtsHit.h:81
Int_t fTubeID
Definition: PndFtsHit.h:126

◆ Print()

virtual void PndFtsHit::Print ( const Option_t *  opt = nullptr) const
inlinevirtual

Output to screen (not yet implemented)

Definition at line 56 of file PndFtsHit.h.

References Clear().

57  {
58  std::cout << " opt = " << opt << std::endl;
59  return;
60  }

◆ SetChamberID()

void PndFtsHit::SetChamberID ( Int_t  chamberid)
inline

Definition at line 82 of file PndFtsHit.h.

References fChamberID.

82 { fChamberID = chamberid; }
Int_t fChamberID
Definition: PndFtsHit.h:127

◆ SetDepCharge()

void PndFtsHit::SetDepCharge ( Double_t  depcharge)
inline

Definition at line 77 of file PndFtsHit.h.

References fDepCharge.

77 { fDepCharge = depcharge; }
Double_t fDepCharge
Definition: PndFtsHit.h:123

◆ SetIsochrone()

void PndFtsHit::SetIsochrone ( Double_t  isochrone)
inline

Modifiers

Definition at line 75 of file PndFtsHit.h.

References fIsochrone.

75 { fIsochrone = isochrone; };
Double_t fIsochrone
Definition: PndFtsHit.h:115

◆ SetIsochroneError()

void PndFtsHit::SetIsochroneError ( Double_t  isochroneError)
inline

Definition at line 76 of file PndFtsHit.h.

References fIsochroneError.

76 { fIsochroneError = isochroneError; };
Double_t fIsochroneError
Definition: PndFtsHit.h:117

◆ SetLayerID()

void PndFtsHit::SetLayerID ( Int_t  layerid)
inline

Definition at line 84 of file PndFtsHit.h.

References fLayerID.

84 { fLayerID = layerid; }
Int_t fLayerID
Definition: PndFtsHit.h:128

◆ SetTubeID()

void PndFtsHit::SetTubeID ( Int_t  tubeid)
inline

Definition at line 80 of file PndFtsHit.h.

References fTubeID.

80 { fTubeID = tubeid; }
Int_t fTubeID
Definition: PndFtsHit.h:126

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
PndFtsHit digi 
)
friend

Definition at line 106 of file PndFtsHit.h.

107  {
108  out << "PndSttHit in Tube: " << digi.GetTubeID() << " Isochrone: " << digi.GetIsochrone() << " +/- " << digi.GetIsochroneError() << " Charge: " << digi.GetDepCharge()
109  << " Pulse: " << digi.GetPulse() << std::endl;
110  return out;
111  }
Int_t GetTubeID() const
Definition: PndFtsHit.h:81
Double_t GetDepCharge() const
Definition: PndFtsHit.h:71
Double_t GetPulse() const
Definition: PndFtsHit.h:70
Double_t GetIsochrone() const
Definition: PndFtsHit.h:68
Double_t GetIsochroneError() const
Definition: PndFtsHit.h:69

Member Data Documentation

◆ fChamberID

Int_t PndFtsHit::fChamberID
protected

Definition at line 127 of file PndFtsHit.h.

Referenced by GetChamberID(), and SetChamberID().

◆ fDepCharge

Double_t PndFtsHit::fDepCharge
protected

deposit charge (arbitrary units)

Definition at line 123 of file PndFtsHit.h.

Referenced by GetDepCharge(), GetEnergyLoss(), and SetDepCharge().

◆ fIsochrone

Double_t PndFtsHit::fIsochrone
protected

This variable contains the radial distance to the wire

Definition at line 115 of file PndFtsHit.h.

Referenced by GetIsochrone(), and SetIsochrone().

◆ fIsochroneError

Double_t PndFtsHit::fIsochroneError
protected

This variable contains the error on the radial distance to the wire

Definition at line 117 of file PndFtsHit.h.

Referenced by GetIsochroneError(), and SetIsochroneError().

◆ fLayerID

Int_t PndFtsHit::fLayerID
protected

Definition at line 128 of file PndFtsHit.h.

Referenced by GetLayerID(), and SetLayerID().

◆ fPulse

Double_t PndFtsHit::fPulse
protected

time pulse

Definition at line 120 of file PndFtsHit.h.

Referenced by GetPulse().

◆ fSkewed

Int_t PndFtsHit::fSkewed
protected

Definition at line 129 of file PndFtsHit.h.

Referenced by GetSkewed().

◆ fTubeID

Int_t PndFtsHit::fTubeID
protected

tube id

Definition at line 126 of file PndFtsHit.h.

Referenced by equal(), GetTubeID(), operator<(), and SetTubeID().


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