PandaRoot
PndGemHit Class Reference

#include <PndGemHit.h>

Inheritance diagram for PndGemHit:

Public Member Functions

 PndGemHit ()
 
 PndGemHit (Int_t detID, TVector3 &pos, TVector3 &dpos, Int_t index, Double_t charge, Int_t NDigiHits, TString fromStr="GEMPoint")
 
 PndGemHit (Int_t detID, TVector3 &pos, TVector3 &dpos, Int_t digi1, Int_t digi2, Double_t dr, Double_t dp, Int_t index, TString fromStr="GEMCluster")
 
 PndGemHit (Int_t detID, TVector3 &pos, TVector3 &dpos, Double_t charge, Double_t time, Int_t digi1, Int_t digi2, Double_t dr, Double_t dp, Int_t index, TString fromStr="GEMCluster")
 
virtual ~PndGemHit ()
 
void SetCharge (Double_t charge)
 
void SetNDigiHits (Int_t pixel)
 
void SetBotIndex (Int_t id)
 
void SetErrors (Double_t dr, Double_t dp)
 
void SetDigiNr (Int_t digi1, Int_t digi2)
 
Double_t GetCharge () const
 
Int_t GetNDigiHits () const
 
TVector3 GetPosition () const
 
Int_t GetBotIndex () const
 
Double_t GetEloss () const
 
Double_t GetDr () const
 
Double_t GetDp () const
 
Int_t GetDigiNr (Int_t iside) const
 
Int_t GetSystemId () const
 
Int_t GetStationNr () const
 
Int_t GetSensorNr () const
 
virtual void Print (const Option_t *opt=nullptr) const
 

Friends

std::ostream & operator<< (std::ostream &out, const PndGemHit &hit)
 

Detailed Description

PndGemHit.h

Author
T.Stockmanns t.sto.nosp@m.ckma.nosp@m.nns@f.nosp@m.z-ju.nosp@m.elich.nosp@m..de

A hit in a silicon sensor. In addition to the base class FairHit, it holds the number of digis & charge entry. There is also a bottom index for double sided strip sensors. All coordinates are in the LAB frame.

Definition at line 25 of file PndGemHit.h.

Constructor & Destructor Documentation

◆ PndGemHit() [1/4]

PndGemHit::PndGemHit ( )

Default constructor (not for use)

◆ PndGemHit() [2/4]

PndGemHit::PndGemHit ( Int_t  detID,
TVector3 &  pos,
TVector3 &  dpos,
Int_t  index,
Double_t  charge,
Int_t  NDigiHits,
TString  fromStr = "GEMPoint" 
)

Standard constructor with all paramneters

Parameters
detIDDetector ID
detNameDetector Name
posPosition vector [cm]
dposPosition error vector [cm]
indexArray index of ClusterCand
chargeCharge measured in hit
NDigiHitsNumber of pixels fired for this event

◆ PndGemHit() [3/4]

PndGemHit::PndGemHit ( Int_t  detID,
TVector3 &  pos,
TVector3 &  dpos,
Int_t  digi1,
Int_t  digi2,
Double_t  dr,
Double_t  dp,
Int_t  index,
TString  fromStr = "GEMCluster" 
)

◆ PndGemHit() [4/4]

PndGemHit::PndGemHit ( Int_t  detID,
TVector3 &  pos,
TVector3 &  dpos,
Double_t  charge,
Double_t  time,
Int_t  digi1,
Int_t  digi2,
Double_t  dr,
Double_t  dp,
Int_t  index,
TString  fromStr = "GEMCluster" 
)

◆ ~PndGemHit()

virtual PndGemHit::~PndGemHit ( )
virtual

Destructor

Member Function Documentation

◆ GetBotIndex()

Int_t PndGemHit::GetBotIndex ( ) const
inline

Definition at line 76 of file PndGemHit.h.

76 { return fBotIndex; }

◆ GetCharge()

Double_t PndGemHit::GetCharge ( ) const
inline

Definition at line 73 of file PndGemHit.h.

73 { return fCharge; }

◆ GetDigiNr()

Int_t PndGemHit::GetDigiNr ( Int_t  iside) const
inline

Definition at line 81 of file PndGemHit.h.

82  {
83  if (iside * (iside - 1) == 0)
84  return fDigiNr[iside];
85  return -1;
86  };

◆ GetDp()

Double_t PndGemHit::GetDp ( ) const
inline

Definition at line 80 of file PndGemHit.h.

80 { return fDp; };

◆ GetDr()

Double_t PndGemHit::GetDr ( ) const
inline

Definition at line 79 of file PndGemHit.h.

79 { return fDr; };

◆ GetEloss()

Double_t PndGemHit::GetEloss ( ) const
inline

Definition at line 77 of file PndGemHit.h.

77 { return (fCharge * 3.61e-9); } // 3.6 eV/Electron in Silicon

◆ GetNDigiHits()

Int_t PndGemHit::GetNDigiHits ( ) const
inline

Definition at line 74 of file PndGemHit.h.

74 { return fNDigiHits; }

◆ GetPosition()

TVector3 PndGemHit::GetPosition ( ) const
inline

Definition at line 75 of file PndGemHit.h.

75 { return TVector3(fX, fY, fZ); }

◆ GetSensorNr()

Int_t PndGemHit::GetSensorNr ( ) const
inline

Definition at line 90 of file PndGemHit.h.

References Print().

91  { // sensor number within station
92  return ((fDetectorID & (3 << 6)) >> 6);
93  }

◆ GetStationNr()

Int_t PndGemHit::GetStationNr ( ) const
inline

Definition at line 89 of file PndGemHit.h.

89 { return ((fDetectorID & (8191 << 8)) >> 8); }

◆ GetSystemId()

Int_t PndGemHit::GetSystemId ( ) const
inline

Definition at line 88 of file PndGemHit.h.

88 { return ((fDetectorID & (31 << 27)) >> 27); }

◆ Print()

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

overloaded accessors Screen output

Referenced by GetSensorNr().

◆ SetBotIndex()

void PndGemHit::SetBotIndex ( Int_t  id)
inline

Definition at line 61 of file PndGemHit.h.

61 { fBotIndex = id; }

◆ SetCharge()

void PndGemHit::SetCharge ( Double_t  charge)
inline

Accessors

Definition at line 59 of file PndGemHit.h.

59 { fCharge = charge; }

◆ SetDigiNr()

void PndGemHit::SetDigiNr ( Int_t  digi1,
Int_t  digi2 
)
inline

Definition at line 67 of file PndGemHit.h.

68  {
69  fDigiNr[0] = digi1;
70  fDigiNr[1] = digi2;
71  };

◆ SetErrors()

void PndGemHit::SetErrors ( Double_t  dr,
Double_t  dp 
)
inline

Definition at line 62 of file PndGemHit.h.

63  {
64  fDr = dr;
65  fDp = dp;
66  };

◆ SetNDigiHits()

void PndGemHit::SetNDigiHits ( Int_t  pixel)
inline

Definition at line 60 of file PndGemHit.h.

60 { fNDigiHits = pixel; }

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const PndGemHit hit 
)
friend

Definition at line 26 of file PndGemHit.h.

27  {
28  out << "Gem hit" /*in detector " << hit.GetDetName()*/ << " at (" << hit.GetX() << ", " << hit.GetY() << ", " << hit.GetZ() << ") cm "
29  << " with " << hit.GetCharge() << " e"
30  << ", Cluster No. " << hit.GetRefIndex() << std::endl;
31 
32  return out;
33  }
Double_t GetCharge() const
Definition: PndGemHit.h:73

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