PandaRoot
PndOtHit Class Reference

#include <PndOtHit.h>

Inheritance diagram for PndOtHit:

Public Member Functions

 PndOtHit ()
 
 PndOtHit (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 ~PndOtHit ()
 
virtual void Print (const Option_t *opt=nullptr) const
 
void ClearHit ()
 
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)
 
virtual bool operator< (const PndOtHit &myDigi) const
 

Protected Member Functions

 ClassDef (PndOtHit, 1)
 

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, PndOtHit &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 PndOtHit.h.

Constructor & Destructor Documentation

◆ PndOtHit() [1/2]

PndOtHit::PndOtHit ( )

Default constructor

◆ PndOtHit() [2/2]

PndOtHit::PndOtHit ( 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)

◆ ~PndOtHit()

virtual PndOtHit::~PndOtHit ( )
virtual

Destructor

Member Function Documentation

◆ ClassDef()

PndOtHit::ClassDef ( PndOtHit  ,
 
)
protected

◆ ClearHit()

void PndOtHit::ClearHit ( )

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

Referenced by Print().

◆ equal()

virtual bool PndOtHit::equal ( FairTimeStamp *  data)
inlinevirtual

Definition at line 88 of file PndOtHit.h.

References fTubeID, and GetTubeID().

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

◆ GetChamberID()

Int_t PndOtHit::GetChamberID ( ) const
inline

Definition at line 83 of file PndOtHit.h.

References fChamberID.

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

◆ GetDepCharge()

Double_t PndOtHit::GetDepCharge ( ) const
inline

Definition at line 71 of file PndOtHit.h.

References fDepCharge.

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

◆ GetEnergyLoss()

Double_t PndOtHit::GetEnergyLoss ( ) const
inline

Definition at line 72 of file PndOtHit.h.

References fDepCharge.

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

◆ GetIsochrone()

Double_t PndOtHit::GetIsochrone ( ) const
inline

Accessors

Definition at line 68 of file PndOtHit.h.

References fIsochrone.

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

◆ GetIsochroneError()

Double_t PndOtHit::GetIsochroneError ( ) const
inline

Definition at line 69 of file PndOtHit.h.

References fIsochroneError.

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

◆ GetLayerID()

Int_t PndOtHit::GetLayerID ( ) const
inline

Definition at line 85 of file PndOtHit.h.

References fLayerID.

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

◆ GetPulse()

Double_t PndOtHit::GetPulse ( ) const
inline

Definition at line 70 of file PndOtHit.h.

References fPulse.

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

◆ GetSkewed()

Int_t PndOtHit::GetSkewed ( ) const
inline

Definition at line 86 of file PndOtHit.h.

References fSkewed.

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

◆ GetTubeID()

Int_t PndOtHit::GetTubeID ( ) const
inline

Definition at line 81 of file PndOtHit.h.

References fTubeID.

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

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

◆ operator<()

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

Definition at line 98 of file PndOtHit.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: PndOtHit.h:81
Int_t fTubeID
Definition: PndOtHit.h:126

◆ Print()

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

Output to screen (not yet implemented)

Definition at line 56 of file PndOtHit.h.

References ClearHit().

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

◆ SetChamberID()

void PndOtHit::SetChamberID ( Int_t  chamberid)
inline

Definition at line 82 of file PndOtHit.h.

References fChamberID.

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

◆ SetDepCharge()

void PndOtHit::SetDepCharge ( Double_t  depcharge)
inline

Definition at line 77 of file PndOtHit.h.

References fDepCharge.

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

◆ SetIsochrone()

void PndOtHit::SetIsochrone ( Double_t  isochrone)
inline

Modifiers

Definition at line 75 of file PndOtHit.h.

References fIsochrone.

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

◆ SetIsochroneError()

void PndOtHit::SetIsochroneError ( Double_t  isochroneError)
inline

Definition at line 76 of file PndOtHit.h.

References fIsochroneError.

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

◆ SetLayerID()

void PndOtHit::SetLayerID ( Int_t  layerid)
inline

Definition at line 84 of file PndOtHit.h.

References fLayerID.

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

◆ SetTubeID()

void PndOtHit::SetTubeID ( Int_t  tubeid)
inline

Definition at line 80 of file PndOtHit.h.

References fTubeID.

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

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 106 of file PndOtHit.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  }
Double_t GetIsochrone() const
Definition: PndOtHit.h:68
Int_t GetTubeID() const
Definition: PndOtHit.h:81
Double_t GetIsochroneError() const
Definition: PndOtHit.h:69
Double_t GetPulse() const
Definition: PndOtHit.h:70
Double_t GetDepCharge() const
Definition: PndOtHit.h:71

Member Data Documentation

◆ fChamberID

Int_t PndOtHit::fChamberID
protected

Definition at line 127 of file PndOtHit.h.

Referenced by GetChamberID(), and SetChamberID().

◆ fDepCharge

Double_t PndOtHit::fDepCharge
protected

deposit charge (arbitrary units)

Definition at line 123 of file PndOtHit.h.

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

◆ fIsochrone

Double_t PndOtHit::fIsochrone
protected

This variable contains the radial distance to the wire

Definition at line 115 of file PndOtHit.h.

Referenced by GetIsochrone(), and SetIsochrone().

◆ fIsochroneError

Double_t PndOtHit::fIsochroneError
protected

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

Definition at line 117 of file PndOtHit.h.

Referenced by GetIsochroneError(), and SetIsochroneError().

◆ fLayerID

Int_t PndOtHit::fLayerID
protected

Definition at line 128 of file PndOtHit.h.

Referenced by GetLayerID(), and SetLayerID().

◆ fPulse

Double_t PndOtHit::fPulse
protected

time pulse

Definition at line 120 of file PndOtHit.h.

Referenced by GetPulse().

◆ fSkewed

Int_t PndOtHit::fSkewed
protected

Definition at line 129 of file PndOtHit.h.

Referenced by GetSkewed().

◆ fTubeID

Int_t PndOtHit::fTubeID
protected

tube id

Definition at line 126 of file PndOtHit.h.

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


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