28 fTrackID = pPoint->GetTrackID();
29 fDetectorID = pPoint->GetDetectorID();
33 LOG_IF(fatal, pPoint->GetTrackID() != fTrackID) <<
"Attempt to add point with inconsistent track ID";
34 LOG_IF(fatal, pPoint->GetDetectorID() != fDetectorID) <<
"Attempt to add point with inconsistent detector ID";
47 fELoss += pPoint->GetEnergyLoss();
76 LOG_IF(fatal, fTrackID != pPoint->GetTrackID() || fDetectorID != pPoint->GetDetectorID())
77 <<
"CbmTofInteraction: attempt to add point with inconsistent track or detector IDs: track " << fTrackID <<
" vs. "
78 << pPoint->GetTrackID() <<
", sensor " << fDetectorID <<
" vs. " << pPoint->GetDetectorID();
83 fTime = pPoint->GetTime();
84 fPx = pPoint->GetPx();
85 fPy = pPoint->GetPy();
86 fPz = pPoint->GetPz();
87 fLength = pPoint->GetLength();
88 fELoss = pPoint->GetEnergyLoss();
95 std::stringstream msg;
Representation of MC track interaction with a TOF module.
void AddPoint(const CbmTofPoint *pPoint)
Adds a point to the interaction New point updates the following properties of the interaction: positi...
void SetFromPoint(const CbmTofPoint *pPoint)
Sets parameters from a particular TOF MC-point.
int fNofPoints
Number of CbmTofPoint objects, from which the interaction is constructed.
std::vector< const CbmTofPoint * > fvpPoints
Vector of point pointer (TMP!!!!)
void Clear(Option_t *)
Clears the instance.
std::string ToString() const
Saves content of the class to string.
void UpdateAverage(const T &update, T &property)
Updates average of the property from original TOF MC-point.
CbmTofInteraction()
Default constructor.
Geometric intersection of a MC track with a TOFb detector.
virtual std::string ToString() const
String representation of the object. @value String representation of the object.