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 16 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 76 of file PndFtsHit.h.

References fTubeID, and GetTubeID().

77  {
78  PndFtsHit *myDigi = dynamic_cast<PndFtsHit *>(data);
79  if (myDigi != nullptr) {
80  if (fTubeID == myDigi->GetTubeID())
81  return true;
82  }
83  return false;
84  }
Int_t GetTubeID() const
Definition: PndFtsHit.h:69
Int_t fTubeID
Definition: PndFtsHit.h:114

◆ GetChamberID()

Int_t PndFtsHit::GetChamberID ( ) const
inline

Definition at line 71 of file PndFtsHit.h.

References fChamberID.

71 { return fChamberID; }
Int_t fChamberID
Definition: PndFtsHit.h:115

◆ GetDepCharge()

Double_t PndFtsHit::GetDepCharge ( ) const
inline

Definition at line 59 of file PndFtsHit.h.

References fDepCharge.

59 { return fDepCharge; };
Double_t fDepCharge
Definition: PndFtsHit.h:111

◆ GetEnergyLoss()

Double_t PndFtsHit::GetEnergyLoss ( ) const
inline

Definition at line 60 of file PndFtsHit.h.

References fDepCharge.

60 { return fDepCharge / 1e6; };
Double_t fDepCharge
Definition: PndFtsHit.h:111

◆ GetIsochrone()

Double_t PndFtsHit::GetIsochrone ( ) const
inline

Accessors

Definition at line 56 of file PndFtsHit.h.

References fIsochrone.

56 { return fIsochrone; };
Double_t fIsochrone
Definition: PndFtsHit.h:103

◆ GetIsochroneError()

Double_t PndFtsHit::GetIsochroneError ( ) const
inline

Definition at line 57 of file PndFtsHit.h.

References fIsochroneError.

57 { return fIsochroneError; };
Double_t fIsochroneError
Definition: PndFtsHit.h:105

◆ GetLayerID()

Int_t PndFtsHit::GetLayerID ( ) const
inline

Definition at line 73 of file PndFtsHit.h.

References fLayerID.

73 { return fLayerID; }
Int_t fLayerID
Definition: PndFtsHit.h:116

◆ GetPulse()

Double_t PndFtsHit::GetPulse ( ) const
inline

Definition at line 58 of file PndFtsHit.h.

References fPulse.

58 { return fPulse; };
Double_t fPulse
Definition: PndFtsHit.h:108

◆ GetSkewed()

Int_t PndFtsHit::GetSkewed ( ) const
inline

Definition at line 74 of file PndFtsHit.h.

References fSkewed.

Referenced by PndFtsHoughSpace::Print().

74 { return fSkewed; }
Int_t fSkewed
Definition: PndFtsHit.h:117

◆ GetTubeID()

Int_t PndFtsHit::GetTubeID ( ) const
inline

Definition at line 69 of file PndFtsHit.h.

References fTubeID.

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

69 { return fTubeID; }
Int_t fTubeID
Definition: PndFtsHit.h:114

◆ operator<()

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

Definition at line 86 of file PndFtsHit.h.

References fTubeID, and GetTubeID().

87  {
88  if (fTubeID < myDigi.GetTubeID())
89  return true;
90  else
91  return false;
92  }
Int_t GetTubeID() const
Definition: PndFtsHit.h:69
Int_t fTubeID
Definition: PndFtsHit.h:114

◆ Print()

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

Output to screen (not yet implemented)

Definition at line 44 of file PndFtsHit.h.

References Clear().

45  {
46  std::cout << " opt = " << opt << std::endl;
47  return;
48  }

◆ SetChamberID()

void PndFtsHit::SetChamberID ( Int_t  chamberid)
inline

Definition at line 70 of file PndFtsHit.h.

References fChamberID.

70 { fChamberID = chamberid; }
Int_t fChamberID
Definition: PndFtsHit.h:115

◆ SetDepCharge()

void PndFtsHit::SetDepCharge ( Double_t  depcharge)
inline

Definition at line 65 of file PndFtsHit.h.

References fDepCharge.

65 { fDepCharge = depcharge; }
Double_t fDepCharge
Definition: PndFtsHit.h:111

◆ SetIsochrone()

void PndFtsHit::SetIsochrone ( Double_t  isochrone)
inline

Modifiers

Definition at line 63 of file PndFtsHit.h.

References fIsochrone.

63 { fIsochrone = isochrone; };
Double_t fIsochrone
Definition: PndFtsHit.h:103

◆ SetIsochroneError()

void PndFtsHit::SetIsochroneError ( Double_t  isochroneError)
inline

Definition at line 64 of file PndFtsHit.h.

References fIsochroneError.

64 { fIsochroneError = isochroneError; };
Double_t fIsochroneError
Definition: PndFtsHit.h:105

◆ SetLayerID()

void PndFtsHit::SetLayerID ( Int_t  layerid)
inline

Definition at line 72 of file PndFtsHit.h.

References fLayerID.

72 { fLayerID = layerid; }
Int_t fLayerID
Definition: PndFtsHit.h:116

◆ SetTubeID()

void PndFtsHit::SetTubeID ( Int_t  tubeid)
inline

Definition at line 68 of file PndFtsHit.h.

References fTubeID.

68 { fTubeID = tubeid; }
Int_t fTubeID
Definition: PndFtsHit.h:114

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 94 of file PndFtsHit.h.

95  {
96  out << "PndSttHit in Tube: " << digi.GetTubeID() << " Isochrone: " << digi.GetIsochrone() << " +/- " << digi.GetIsochroneError() << " Charge: " << digi.GetDepCharge()
97  << " Pulse: " << digi.GetPulse() << std::endl;
98  return out;
99  }
Int_t GetTubeID() const
Definition: PndFtsHit.h:69
Double_t GetDepCharge() const
Definition: PndFtsHit.h:59
Double_t GetPulse() const
Definition: PndFtsHit.h:58
Double_t GetIsochrone() const
Definition: PndFtsHit.h:56
Double_t GetIsochroneError() const
Definition: PndFtsHit.h:57

Member Data Documentation

◆ fChamberID

Int_t PndFtsHit::fChamberID
protected

Definition at line 115 of file PndFtsHit.h.

Referenced by GetChamberID(), and SetChamberID().

◆ fDepCharge

Double_t PndFtsHit::fDepCharge
protected

deposit charge (arbitrary units)

Definition at line 111 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 103 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 105 of file PndFtsHit.h.

Referenced by GetIsochroneError(), and SetIsochroneError().

◆ fLayerID

Int_t PndFtsHit::fLayerID
protected

Definition at line 116 of file PndFtsHit.h.

Referenced by GetLayerID(), and SetLayerID().

◆ fPulse

Double_t PndFtsHit::fPulse
protected

time pulse

Definition at line 108 of file PndFtsHit.h.

Referenced by GetPulse().

◆ fSkewed

Int_t PndFtsHit::fSkewed
protected

Definition at line 117 of file PndFtsHit.h.

Referenced by GetSkewed().

◆ fTubeID

Int_t PndFtsHit::fTubeID
protected

tube id

Definition at line 114 of file PndFtsHit.h.

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


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