PandaRoot
PndHypHit Class Reference

#include <PndHypHit.h>

Inheritance diagram for PndHypHit:

Public Member Functions

 PndHypHit ()
 
 PndHypHit (Int_t detID, TString detName, TVector3 &pos, TVector3 &dpos, Int_t index, Double_t charge, Int_t NDigiHits)
 
virtual ~PndHypHit ()
 
void SetDetName (TString name)
 
void SetCharge (Double_t charge)
 
void SetNDigiHits (Int_t pixel)
 
void SetBotIndex (Int_t id)
 
TString GetDetName () const
 
Double_t GetCharge () const
 
Int_t GetNDigiHits () const
 
TVector3 GetPosition () const
 
Int_t GetBotIndex () const
 
Double_t GetEloss () const
 
virtual void Print (const Option_t *opt=nullptr) const
 

Friends

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

Detailed Description

PndSdsHit.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.

modified to PndHypHit by A. Sanchez a.san.nosp@m.chez.nosp@m.@gsi..nosp@m.de

Definition at line 30 of file PndHypHit.h.

Constructor & Destructor Documentation

◆ PndHypHit() [1/2]

PndHypHit::PndHypHit ( )

Default constructor (not for use)

◆ PndHypHit() [2/2]

PndHypHit::PndHypHit ( Int_t  detID,
TString  detName,
TVector3 &  pos,
TVector3 &  dpos,
Int_t  index,
Double_t  charge,
Int_t  NDigiHits 
)

Standard constructor with all paramneters

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

◆ ~PndHypHit()

virtual PndHypHit::~PndHypHit ( )
virtual

Destructor

Member Function Documentation

◆ GetBotIndex()

Int_t PndHypHit::GetBotIndex ( ) const
inline

Definition at line 83 of file PndHypHit.h.

83 { return fBotIndex; }

◆ GetCharge()

Double_t PndHypHit::GetCharge ( ) const
inline

Definition at line 80 of file PndHypHit.h.

80 { return fCharge; };

◆ GetDetName()

TString PndHypHit::GetDetName ( ) const
inline

Definition at line 78 of file PndHypHit.h.

78 { return fDetName; }

◆ GetEloss()

Double_t PndHypHit::GetEloss ( ) const
inline

Definition at line 84 of file PndHypHit.h.

References Print().

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

◆ GetNDigiHits()

Int_t PndHypHit::GetNDigiHits ( ) const
inline

Definition at line 81 of file PndHypHit.h.

81 { return fNDigiHits; }

◆ GetPosition()

TVector3 PndHypHit::GetPosition ( ) const
inline

Definition at line 82 of file PndHypHit.h.

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

◆ Print()

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

Screen output

Referenced by GetEloss().

◆ SetBotIndex()

void PndHypHit::SetBotIndex ( Int_t  id)
inline

Definition at line 76 of file PndHypHit.h.

76 { fBotIndex = id; }

◆ SetCharge()

void PndHypHit::SetCharge ( Double_t  charge)
inline

Definition at line 74 of file PndHypHit.h.

74 { fCharge = charge; };

◆ SetDetName()

void PndHypHit::SetDetName ( TString  name)
inline

Accessors

Definition at line 73 of file PndHypHit.h.

73 { fDetName = name; };

◆ SetNDigiHits()

void PndHypHit::SetNDigiHits ( Int_t  pixel)
inline

Definition at line 75 of file PndHypHit.h.

75 { fNDigiHits = pixel; };

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 31 of file PndHypHit.h.

32  {
33 
34  out << "Hyp hit in " << hit.GetDetName() << " at" << std::endl;
35  out << "(" << hit.GetX() << ", " << hit.GetY() << ", " << hit.GetZ() << ") cm "
36  << " with " << hit.GetCharge() << " e"
37  << ", Cluster No. " << hit.GetRefIndex();
38  if (hit.GetBotIndex() > -1)
39  out << " " << hit.GetBotIndex();
40  out << std::endl;
41 
42  return out;
43  }
Double_t GetCharge() const
Definition: PndHypHit.h:80
TString GetDetName() const
Definition: PndHypHit.h:78
Int_t GetBotIndex() const
Definition: PndHypHit.h:83

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