28 #ifndef __CINT__ // for BOOST serialization 29 #include <boost/serialization/serialization.hpp> 30 #include <boost/serialization/vector.hpp> 36 out <<
"PndSdsHit in " << hit.
GetSensorID() <<
" at" << std::endl;
37 out <<
"(" << hit.GetX() <<
", " << hit.GetY() <<
", " << hit.GetZ() <<
") cm " 39 <<
" at Time: " << hit.GetTimeStamp() <<
" +/- " << hit.GetTimeStampError() <<
" , Cluster No. " << hit.
GetClusterIndex();
42 if (hit.GetRefIndex() > -1)
43 out <<
", mc point id = " << hit.GetRefIndex();
45 out <<
", noise hit without mc poit";
49 out <<
"hit.GetBotIndex() " << hit.
GetBotIndex() << std::endl;
50 out <<
"hit.GetRefIndex() " << hit.GetRefIndex() << std::endl;
51 out <<
"hit.GetNDigiHits() " << hit.
GetNDigiHits() << std::endl;
52 out <<
"hit.GetCharge() " << hit.
GetCharge() <<
"(" << hit.
GetEloss() <<
" GeV)" << std::endl;
53 out <<
"hit.GetSensorID() " << hit.
GetSensorID() << std::endl;
54 out <<
"Error values in FairHit part: (dx,dy,dz) = (" << hit.GetDx() <<
"," << hit.GetDy() <<
"," << hit.GetDz() <<
")" << std::endl;
71 PndSdsHit(Int_t detID, Int_t sensorID, TVector3 &pos, TVector3 &dpos, Int_t clindex, Double_t charge, Int_t NDigiHits, Int_t mcindex);
80 void SetCharge(Double_t charge) { fCharge = charge; }
82 void SetClusterIndex(Int_t datasource, Int_t
id, Int_t fileId = -1, Int_t evtId = -1)
85 SetLink(FairLink(fileId, evtId, datasource,
id));
98 Double_t
GetEloss()
const {
return (fCharge * 3.61e-9); }
114 #ifndef __CINT__ // for BOOST serialization 115 template <
class Archive>
118 ar &boost::serialization::base_object<FairHit>(*this);
126 #endif // for BOOST serialization 129 virtual void Print(
const Option_t *opt =
nullptr)
const;
133 #ifndef __CINT__ // for BOOST serialization 136 #endif // for BOOST serialization void SetCharge(Double_t charge)
virtual void Print(const Option_t *opt=nullptr) const
Int_t GetSensorID() const
Int_t GetNDigiHits() const
Int_t GetClusterIndex() const
void SetClusterIndex(Int_t datasource, Int_t id, Int_t fileId=-1, Int_t evtId=-1)
Int_t GetBotIndex() const
friend std::ostream & operator<<(std::ostream &out, const PndSdsHit &hit)
Double_t GetEloss() const
friend class boost::serialization::access
Int_t GetTopIndex() const
Double_t GetCharge() const
void SetNDigiHits(Int_t pixel)
void SetBotIndex(Int_t id)
void serialize(Archive &ar, const unsigned int version)
TVector3 GetPosition() const
void SetSensorID(Int_t sensorID)
void SetCov(TMatrixD cov)
TMatrixT< double > TMatrixD