#include <PndSdsHit.h>
|
| PndSdsHit () |
|
| PndSdsHit (Int_t detID, Int_t sensorID, TVector3 &pos, TVector3 &dpos, Int_t clindex, Double_t charge, Int_t NDigiHits, Int_t mcindex) |
|
virtual | ~PndSdsHit () |
|
void | SetSensorID (Int_t sensorID) |
|
void | SetCharge (Double_t charge) |
|
void | SetNDigiHits (Int_t pixel) |
|
void | SetClusterIndex (Int_t datasource, Int_t id, Int_t fileId=-1, Int_t evtId=-1) |
|
void | SetBotIndex (Int_t id) |
|
void | SetCov (TMatrixD cov) |
|
Int_t | GetSensorID () const |
|
Double_t | GetCharge () const |
|
Int_t | GetNDigiHits () const |
|
TVector3 | GetPosition () const |
|
Int_t | GetClusterIndex () const |
|
Int_t | GetTopIndex () const |
|
Int_t | GetBotIndex () const |
|
Double_t | GetEloss () const |
|
TMatrixD | GetCov () const |
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int version) |
|
virtual void | Print (const Option_t *opt=nullptr) const |
|
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.
Definition at line 28 of file PndSdsHit.h.
◆ PndSdsHit() [1/2]
Default constructor (not for use)
◆ PndSdsHit() [2/2]
PndSdsHit::PndSdsHit |
( |
Int_t |
detID, |
|
|
Int_t |
sensorID, |
|
|
TVector3 & |
pos, |
|
|
TVector3 & |
dpos, |
|
|
Int_t |
clindex, |
|
|
Double_t |
charge, |
|
|
Int_t |
NDigiHits, |
|
|
Int_t |
mcindex |
|
) |
| |
Standard constructor with all paramneters
- Parameters
-
detID | Detector ID |
sensorID | Sensor ID |
pos | Position vector [cm] |
dpos | Position error vector [cm] |
index | Array index of ClusterCand |
charge | Charge measured in hit |
NDigiHits | Number of pixels fired for this event |
◆ ~PndSdsHit()
virtual PndSdsHit::~PndSdsHit |
( |
| ) |
|
|
virtual |
◆ GetBotIndex()
Int_t PndSdsHit::GetBotIndex |
( |
| ) |
const |
|
inline |
◆ GetCharge()
Double_t PndSdsHit::GetCharge |
( |
| ) |
const |
|
inline |
◆ GetClusterIndex()
Int_t PndSdsHit::GetClusterIndex |
( |
| ) |
const |
|
inline |
◆ GetCov()
◆ GetEloss()
Double_t PndSdsHit::GetEloss |
( |
| ) |
const |
|
inline |
Definition at line 93 of file PndSdsHit.h.
93 {
return (fCharge * 3.61e-9); }
◆ GetNDigiHits()
Int_t PndSdsHit::GetNDigiHits |
( |
| ) |
const |
|
inline |
Definition at line 88 of file PndSdsHit.h.
88 {
return fNDigiHits; }
◆ GetPosition()
TVector3 PndSdsHit::GetPosition |
( |
| ) |
const |
|
inline |
Definition at line 89 of file PndSdsHit.h.
89 {
return TVector3(fX, fY, fZ); }
◆ GetSensorID()
Int_t PndSdsHit::GetSensorID |
( |
| ) |
const |
|
inline |
◆ GetTopIndex()
Int_t PndSdsHit::GetTopIndex |
( |
| ) |
const |
|
inline |
◆ Print()
virtual void PndSdsHit::Print |
( |
const Option_t * |
opt = nullptr | ) |
const |
|
virtual |
◆ serialize()
template<class Archive >
void PndSdsHit::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
inline |
overloaded accessors
Definition at line 111 of file PndSdsHit.h.
References Print().
113 ar &boost::serialization::base_object<FairHit>(*this);
◆ SetBotIndex()
void PndSdsHit::SetBotIndex |
( |
Int_t |
id | ) |
|
|
inline |
◆ SetCharge()
void PndSdsHit::SetCharge |
( |
Double_t |
charge | ) |
|
|
inline |
◆ SetClusterIndex()
void PndSdsHit::SetClusterIndex |
( |
Int_t |
datasource, |
|
|
Int_t |
id, |
|
|
Int_t |
fileId = -1 , |
|
|
Int_t |
evtId = -1 |
|
) |
| |
|
inline |
Definition at line 77 of file PndSdsHit.h.
80 SetLink(FairLink(fileId, evtId, datasource,
id));
◆ SetCov()
◆ SetNDigiHits()
void PndSdsHit::SetNDigiHits |
( |
Int_t |
pixel | ) |
|
|
inline |
◆ SetSensorID()
void PndSdsHit::SetSensorID |
( |
Int_t |
sensorID | ) |
|
|
inline |
Accessors
Definition at line 74 of file PndSdsHit.h.
74 { fSensorID = sensorID; }
◆ boost::serialization::access
friend class boost::serialization::access |
|
friend |
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const PndSdsHit & |
hit |
|
) |
| |
|
friend |
Definition at line 29 of file PndSdsHit.h.
31 out <<
"PndSdsHit in " << hit.
GetSensorID() <<
" at" << std::endl;
32 out <<
"(" << hit.GetX() <<
", " << hit.GetY() <<
", " << hit.GetZ() <<
") cm " 34 <<
" at Time: " << hit.GetTimeStamp() <<
" +/- " << hit.GetTimeStampError() <<
" , Cluster No. " << hit.
GetClusterIndex();
37 if (hit.GetRefIndex() > -1)
38 out <<
", mc point id = " << hit.GetRefIndex();
40 out <<
", noise hit without mc poit";
44 out <<
"hit.GetBotIndex() " << hit.
GetBotIndex() << std::endl;
45 out <<
"hit.GetRefIndex() " << hit.GetRefIndex() << std::endl;
46 out <<
"hit.GetNDigiHits() " << hit.
GetNDigiHits() << std::endl;
47 out <<
"hit.GetCharge() " << hit.
GetCharge() <<
"(" << hit.
GetEloss() <<
" GeV)" << std::endl;
48 out <<
"hit.GetSensorID() " << hit.
GetSensorID() << std::endl;
49 out <<
"Error values in FairHit part: (dx,dy,dz) = (" << hit.GetDx() <<
"," << hit.GetDy() <<
"," << hit.GetDz() <<
")" << std::endl;
Int_t GetSensorID() const
Int_t GetNDigiHits() const
Int_t GetClusterIndex() const
Int_t GetBotIndex() const
Double_t GetEloss() const
Double_t GetCharge() const
The documentation for this class was generated from the following file: