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 42 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 95 of file PndHypHit.h.

95 { return fBotIndex; }

◆ GetCharge()

Double_t PndHypHit::GetCharge ( ) const
inline

Definition at line 92 of file PndHypHit.h.

92 { return fCharge; };

◆ GetDetName()

TString PndHypHit::GetDetName ( ) const
inline

Definition at line 90 of file PndHypHit.h.

90 { return fDetName; }

◆ GetEloss()

Double_t PndHypHit::GetEloss ( ) const
inline

Definition at line 96 of file PndHypHit.h.

References Print().

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

◆ GetNDigiHits()

Int_t PndHypHit::GetNDigiHits ( ) const
inline

Definition at line 93 of file PndHypHit.h.

93 { return fNDigiHits; }

◆ GetPosition()

TVector3 PndHypHit::GetPosition ( ) const
inline

Definition at line 94 of file PndHypHit.h.

94 { 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 88 of file PndHypHit.h.

88 { fBotIndex = id; }

◆ SetCharge()

void PndHypHit::SetCharge ( Double_t  charge)
inline

Definition at line 86 of file PndHypHit.h.

86 { fCharge = charge; };

◆ SetDetName()

void PndHypHit::SetDetName ( TString  name)
inline

Accessors

Definition at line 85 of file PndHypHit.h.

85 { fDetName = name; };

◆ SetNDigiHits()

void PndHypHit::SetNDigiHits ( Int_t  pixel)
inline

Definition at line 87 of file PndHypHit.h.

87 { fNDigiHits = pixel; };

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 43 of file PndHypHit.h.

44  {
45 
46  out << "Hyp hit in " << hit.GetDetName() << " at" << std::endl;
47  out << "(" << hit.GetX() << ", " << hit.GetY() << ", " << hit.GetZ() << ") cm "
48  << " with " << hit.GetCharge() << " e"
49  << ", Cluster No. " << hit.GetRefIndex();
50  if (hit.GetBotIndex() > -1)
51  out << " " << hit.GetBotIndex();
52  out << std::endl;
53 
54  return out;
55  }
Double_t GetCharge() const
Definition: PndHypHit.h:92
TString GetDetName() const
Definition: PndHypHit.h:90
Int_t GetBotIndex() const
Definition: PndHypHit.h:95

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