PandaRoot
PndSttHit Class Reference

#include <PndSttHit.h>

Inheritance diagram for PndSttHit:

Public Member Functions

 PndSttHit ()
 
 PndSttHit (Int_t detID, Int_t tubeID, Int_t mcindex, TVector3 &pos, TVector3 &dpos, Double_t p, Double_t isochrone, Double_t isochroneError, Double_t chDep)
 
virtual ~PndSttHit ()
 
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
 
Double_t ComputedEdx (PndTrack *track, Double_t tuberadius)
 
virtual bool equal (FairTimeStamp *data)
 
virtual bool operator< (const PndSttHit &myDigi) const
 

Protected Member Functions

 ClassDef (PndSttHit, 1)
 

Protected Attributes

Int_t fTubeID
 
Double_t fPulse
 
Double_t fIsochrone
 
Double_t fIsochroneError
 
Double_t fDepCharge
 

Friends

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

Detailed Description

CbmStsMapsHit Class for MAPS detector hit

Author
Michael Deveaux m.dev.nosp@m.eaux.nosp@m.@gsi..nosp@m.de Acknowledgements to M. Al-Turany, D. Bertini, G. Gaycken Version beta 0.1 (02.02.2005) Slight modifications by V. Friese to match coding conventions

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 22 of file PndSttHit.h.

Constructor & Destructor Documentation

◆ PndSttHit() [1/2]

PndSttHit::PndSttHit ( )

Default constructor

◆ PndSttHit() [2/2]

PndSttHit::PndSttHit ( Int_t  detID,
Int_t  tubeID,
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
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)

◆ ~PndSttHit()

virtual PndSttHit::~PndSttHit ( )
virtual

Destructor

Member Function Documentation

◆ ClassDef()

PndSttHit::ClassDef ( PndSttHit  ,
 
)
protected

◆ Clear()

void PndSttHit::Clear ( )

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

Referenced by Print().

◆ ComputedEdx()

Double_t PndSttHit::ComputedEdx ( PndTrack track,
Double_t  tuberadius 
)

Referenced by GetTubeID().

◆ equal()

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

Definition at line 76 of file PndSttHit.h.

References fTubeID, and GetTubeID().

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

◆ GetDepCharge()

Double_t PndSttHit::GetDepCharge ( ) const
inline

Definition at line 61 of file PndSttHit.h.

References fDepCharge.

61 { return fDepCharge; };
Double_t fDepCharge
Definition: PndSttHit.h:111

◆ GetEnergyLoss()

Double_t PndSttHit::GetEnergyLoss ( ) const
inline

Definition at line 62 of file PndSttHit.h.

References fDepCharge.

62 { return fDepCharge / 1e6; };
Double_t fDepCharge
Definition: PndSttHit.h:111

◆ GetIsochrone()

Double_t PndSttHit::GetIsochrone ( ) const
inline

◆ GetIsochroneError()

Double_t PndSttHit::GetIsochroneError ( ) const
inline

Definition at line 59 of file PndSttHit.h.

References fIsochroneError.

59 { return fIsochroneError; };
Double_t fIsochroneError
Definition: PndSttHit.h:109

◆ GetPulse()

Double_t PndSttHit::GetPulse ( ) const
inline

Definition at line 60 of file PndSttHit.h.

References fPulse.

60 { return fPulse; };
Double_t fPulse
Definition: PndSttHit.h:105

◆ GetTubeID()

◆ operator<()

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

Definition at line 86 of file PndSttHit.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: PndSttHit.h:71
Int_t fTubeID
Definition: PndSttHit.h:103

◆ Print()

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

Output to screen (not yet implemented)

Definition at line 46 of file PndSttHit.h.

References Clear().

47  {
48  std::cout << " opt = " << opt << std::endl;
49  return;
50  }

◆ SetDepCharge()

void PndSttHit::SetDepCharge ( Double_t  depcharge)
inline

Definition at line 67 of file PndSttHit.h.

References fDepCharge.

67 { fDepCharge = depcharge; }
Double_t fDepCharge
Definition: PndSttHit.h:111

◆ SetIsochrone()

void PndSttHit::SetIsochrone ( Double_t  isochrone)
inline

Modifiers

Definition at line 65 of file PndSttHit.h.

References fIsochrone.

65 { fIsochrone = isochrone; };
Double_t fIsochrone
Definition: PndSttHit.h:107

◆ SetIsochroneError()

void PndSttHit::SetIsochroneError ( Double_t  isochroneError)
inline

Definition at line 66 of file PndSttHit.h.

References fIsochroneError.

66 { fIsochroneError = isochroneError; };
Double_t fIsochroneError
Definition: PndSttHit.h:109

◆ SetTubeID()

void PndSttHit::SetTubeID ( Int_t  tubeid)
inline

Definition at line 70 of file PndSttHit.h.

References fTubeID.

70 { fTubeID = tubeid; }
Int_t fTubeID
Definition: PndSttHit.h:103

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 94 of file PndSttHit.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: PndSttHit.h:71
Double_t GetPulse() const
Definition: PndSttHit.h:60
Double_t GetIsochrone() const
Definition: PndSttHit.h:58
Double_t GetIsochroneError() const
Definition: PndSttHit.h:59
Double_t GetDepCharge() const
Definition: PndSttHit.h:61

Member Data Documentation

◆ fDepCharge

Double_t PndSttHit::fDepCharge
protected

deposit charge (arbitrary units)

Definition at line 111 of file PndSttHit.h.

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

◆ fIsochrone

Double_t PndSttHit::fIsochrone
protected

This variable contains the radial distance to the wire

Definition at line 107 of file PndSttHit.h.

Referenced by GetIsochrone(), and SetIsochrone().

◆ fIsochroneError

Double_t PndSttHit::fIsochroneError
protected

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

Definition at line 109 of file PndSttHit.h.

Referenced by GetIsochroneError(), and SetIsochroneError().

◆ fPulse

Double_t PndSttHit::fPulse
protected

time pulse

Definition at line 105 of file PndSttHit.h.

Referenced by GetPulse().

◆ fTubeID

Int_t PndSttHit::fTubeID
protected

tube id

Definition at line 103 of file PndSttHit.h.

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


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