#include <PndHypHit.h>
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.
◆ PndHypHit() [1/2]
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
-
trackID | Track ID |
detID | Detector ID |
detName | Detector Name |
pos | Position vector [cm] |
dpos | Position error vector [cm] |
charge | Charge measured in hit |
index | Array index of ClusterCand |
NDigiHits | Number of digis fired for this event |
◆ ~PndHypHit()
virtual PndHypHit::~PndHypHit |
( |
| ) |
|
|
virtual |
◆ GetBotIndex()
Int_t PndHypHit::GetBotIndex |
( |
| ) |
const |
|
inline |
◆ GetCharge()
Double_t PndHypHit::GetCharge |
( |
| ) |
const |
|
inline |
◆ GetDetName()
TString PndHypHit::GetDetName |
( |
| ) |
const |
|
inline |
◆ GetEloss()
Double_t PndHypHit::GetEloss |
( |
| ) |
const |
|
inline |
◆ 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 |
◆ SetBotIndex()
void PndHypHit::SetBotIndex |
( |
Int_t |
id | ) |
|
|
inline |
◆ 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 |
◆ SetNDigiHits()
void PndHypHit::SetNDigiHits |
( |
Int_t |
pixel | ) |
|
|
inline |
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const PndHypHit & |
hit |
|
) |
| |
|
friend |
Definition at line 31 of file PndHypHit.h.
34 out <<
"Hyp hit in " << hit.
GetDetName() <<
" at" << std::endl;
35 out <<
"(" << hit.GetX() <<
", " << hit.GetY() <<
", " << hit.GetZ() <<
") cm " 37 <<
", Cluster No. " << hit.GetRefIndex();
Double_t GetCharge() const
TString GetDetName() const
Int_t GetBotIndex() const
The documentation for this class was generated from the following file: