PandaRoot
PndSdsMergedHit Class Reference

#include <PndSdsMergedHit.h>

Inheritance diagram for PndSdsMergedHit:
PndSdsHit

Public Member Functions

 PndSdsMergedHit ()
 
 PndSdsMergedHit (Int_t detID, Int_t sensorID, TVector3 &pos, TVector3 &dpos, Int_t clindex, Double_t charge, Int_t NDigiHits, Int_t mcindex, Int_t secMC)
 
 PndSdsMergedHit (PndSdsHit &c, Int_t secMC)
 
virtual ~PndSdsMergedHit ()
 
void SetSecondMCHit (Int_t secMChit)
 
Int_t GetSecondMCHit () const
 
void SetIsMerged (bool fflag)
 
bool GetIsMerged () const
 
- Public Member Functions inherited from PndSdsHit
 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
 

Friends

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

Detailed Description

Definition at line 21 of file PndSdsMergedHit.h.

Constructor & Destructor Documentation

◆ PndSdsMergedHit() [1/3]

PndSdsMergedHit::PndSdsMergedHit ( )

Default constructor (not for use)

◆ PndSdsMergedHit() [2/3]

PndSdsMergedHit::PndSdsMergedHit ( Int_t  detID,
Int_t  sensorID,
TVector3 &  pos,
TVector3 &  dpos,
Int_t  clindex,
Double_t  charge,
Int_t  NDigiHits,
Int_t  mcindex,
Int_t  secMC 
)

Standard constructor with all paramneters

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

◆ PndSdsMergedHit() [3/3]

PndSdsMergedHit::PndSdsMergedHit ( PndSdsHit c,
Int_t  secMC 
)

◆ ~PndSdsMergedHit()

virtual PndSdsMergedHit::~PndSdsMergedHit ( )
virtual

Destructor

Member Function Documentation

◆ GetIsMerged()

bool PndSdsMergedHit::GetIsMerged ( ) const
inline

Definition at line 76 of file PndSdsMergedHit.h.

76 { return fisMerged; }

◆ GetSecondMCHit()

Int_t PndSdsMergedHit::GetSecondMCHit ( ) const
inline

Definition at line 73 of file PndSdsMergedHit.h.

73 { return fsecMC; }

◆ SetIsMerged()

void PndSdsMergedHit::SetIsMerged ( bool  fflag)
inline

Definition at line 75 of file PndSdsMergedHit.h.

75 { fisMerged = fflag; }

◆ SetSecondMCHit()

void PndSdsMergedHit::SetSecondMCHit ( Int_t  secMChit)
inline

Accessors

Definition at line 71 of file PndSdsMergedHit.h.

71 { fsecMC = secMChit; }

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 22 of file PndSdsMergedHit.h.

23  {
24  out << "PndSdsMergedHit in " << hit.GetSensorID() << " at" << std::endl;
25  out << "(" << hit.GetX() << ", " << hit.GetY() << ", " << hit.GetZ() << ") cm "
26  << " with " << hit.GetCharge() << " e"
27  << " at Time: " << hit.GetTimeStamp() << " +/- " << hit.GetTimeStampError() << " , Cluster No. " << hit.GetClusterIndex();
28  if (hit.GetBotIndex() > -1)
29  out << " and bottom " << hit.GetBotIndex();
30  if (hit.GetRefIndex() > -1)
31  out << ", mc point id = " << hit.GetRefIndex();
32  if (hit.GetSecondMCHit() > -1)
33  out << ", mc point 2 id = " << hit.GetSecondMCHit();
34  else
35  out << ", noise hit without mc poit";
36  out << std::endl;
37 
38  out << "hit.GetClusterIndex() " << hit.GetClusterIndex() << std::endl;
39  out << "hit.GetBotIndex() " << hit.GetBotIndex() << std::endl;
40  out << "hit.GetRefIndex() " << hit.GetRefIndex() << std::endl;
41  out << "hit.GetNDigiHits() " << hit.GetNDigiHits() << std::endl;
42  out << "hit.GetCharge() " << hit.GetCharge() << "(" << hit.GetEloss() << " GeV)" << std::endl;
43  out << "hit.GetSensorID() " << hit.GetSensorID() << std::endl;
44  out << "Error values in FairHit part: (dx,dy,dz) = (" << hit.GetDx() << "," << hit.GetDy() << "," << hit.GetDz() << ")" << std::endl;
45  return out;
46  }
Int_t GetSensorID() const
Definition: PndSdsHit.h:91
Int_t GetNDigiHits() const
Definition: PndSdsHit.h:93
Int_t GetClusterIndex() const
Definition: PndSdsHit.h:95
Int_t GetSecondMCHit() const
Int_t GetBotIndex() const
Definition: PndSdsHit.h:97
Double_t GetEloss() const
Definition: PndSdsHit.h:98
Double_t GetCharge() const
Definition: PndSdsHit.h:92

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