CbmRoot
|
Monte-Carlo track. More...
#include <CbmLitMCTrack.h>
Public Member Functions | |
CbmLitMCTrack () | |
Constructor. More... | |
virtual | ~CbmLitMCTrack () |
Destructor. More... | |
void | AddPoint (ECbmModuleId detId, const CbmLitMCPoint &point) |
Add point to track. More... | |
const vector< CbmLitMCPoint > & | GetPoints (ECbmModuleId detId) const |
Return vector of MC point for specified detector id. More... | |
const CbmLitMCPoint & | GetPoint (ECbmModuleId detId, Int_t index) const |
Return MC point for specified detector id and point index. More... | |
UInt_t | GetNofPoints (ECbmModuleId detId) const |
Return number of MC points for specified detector id. More... | |
UInt_t | GetNofPointsInDifferentStations (ECbmModuleId detId) const |
Return number of MC points in different stations for specified detector id. More... | |
Int_t | GetNofConsecutivePoints (ECbmModuleId detId) const |
Return number of consecutive MC points for specified detector id. Currently works only for STS. More... | |
void | CalculateNofConsecutivePoints () |
Calculates number of consecutive MC points for specified detector id. Currently works only for STS. More... | |
Int_t | GetNofRichHits () const |
Return number of RICH hits in ring. More... | |
void | SetNofRichHits (Int_t nofRichHits) |
SetNumber of RICH hits in ring. More... | |
Double_t | GetRingAaxis () const |
Return major semi-axis of the ellipse. More... | |
void | SetRingAaxis (Double_t a) |
Set major semi-axis of the ellipse. More... | |
Double_t | GetRingBaxis () const |
Return minor semi-axis of the ellipse. More... | |
void | SetRingBaxis (Double_t b) |
Set minor semi-axis of the ellipse. More... | |
Double_t | GetRingCenterX () const |
Return X coordinate of the ellipse center. More... | |
void | SetRingCenterX (Double_t xc) |
Set X coordinate of the ellipse center. More... | |
Double_t | GetRingCenterY () const |
Return Y coordinate of the ellipse center. More... | |
void | SetRingCenterY (Double_t yc) |
Set Y coordinate of the ellipse center. More... | |
const CbmLitMCPoint & | GetPointAtStation (ECbmModuleId detId, Int_t stationId, Int_t index) const |
Return MC point for specified detector id and point index. More... | |
UInt_t | GetNofPointsAtStation (ECbmModuleId detId, Int_t stationId) const |
Return number of MC points for specified detector ID and station ID. More... | |
virtual string | ToString () const |
Returns string representation of the class. More... | |
Private Member Functions | |
Int_t | MaxConsecutiveNumbers (const set< Int_t > &numbers) const |
string | PointsToString (ECbmModuleId detId, const string &detName) const |
Private Attributes | |
map< ECbmModuleId, vector< CbmLitMCPoint > > | fPoints |
map< ECbmModuleId, map< Int_t, vector< CbmLitMCPoint > > > | fStationPoints |
map< ECbmModuleId, set< Int_t > > | fStationIds |
map< ECbmModuleId, Int_t > | fMaxConsecutivePoints |
Int_t | fNofRichHits |
Double_t | fRingAaxis |
Double_t | fRingBaxis |
Double_t | fRingCenterX |
Double_t | fRingCenterY |
Friends | |
std::ostream & | operator<< (std::ostream &strm, const CbmLitMCTrack &track) |
Operator << for convenient output to ostream. More... | |
|
inline |
Constructor.
Definition at line 35 of file CbmLitMCTrack.h.
References fMaxConsecutivePoints, fPoints, fStationIds, fStationPoints, kMuch, kMvd, kRich, kSts, kTof, and kTrd.
|
inlinevirtual |
Destructor.
Definition at line 68 of file CbmLitMCTrack.h.
|
inline |
Add point to track.
[in] | detId | Detector identificator. |
[in] | point | MC point to be added. |
Definition at line 75 of file CbmLitMCTrack.h.
References fPoints, fStationIds, fStationPoints, CbmLitMCPoint::GetStationId(), and kRich.
|
inline |
Calculates number of consecutive MC points for specified detector id. Currently works only for STS.
[in] | detId | Detector identificator. |
Definition at line 140 of file CbmLitMCTrack.h.
References fMaxConsecutivePoints, fStationIds, kSts, and MaxConsecutiveNumbers().
|
inline |
Return number of consecutive MC points for specified detector id. Currently works only for STS.
[in] | detId | Detector identificator. |
Definition at line 127 of file CbmLitMCTrack.h.
References fMaxConsecutivePoints, and kSts.
Referenced by PointsToString(), and CbmLitTrackingQa::ProcessMcTracks().
|
inline |
Return number of MC points for specified detector id.
[in] | detId | Detector identificator. |
Definition at line 108 of file CbmLitMCTrack.h.
References fPoints.
Referenced by GetPoint(), PointsToString(), and CbmLitTrackingQa::ProcessMcTracks().
|
inline |
Return number of MC points for specified detector ID and station ID.
[in] | detId | Detector identificator. |
[in] | stationId | Station id. |
Definition at line 229 of file CbmLitMCTrack.h.
References fStationPoints, and kRich.
Referenced by GetPointAtStation(), CbmLitFitQa::ProcessMuchTrack(), CbmLitFitQa::ProcessStsTrack(), and CbmLitFitQa::ProcessTrdTrack().
|
inline |
Return number of MC points in different stations for specified detector id.
[in] | detId | Detector identificator. |
Definition at line 117 of file CbmLitMCTrack.h.
References fStationPoints, and kRich.
Referenced by CbmAnaDielectronTask::CalculateNofTopologyPairs(), PointsToString(), and CbmLitTrackingQa::ProcessMcTracks().
|
inline |
Return number of RICH hits in ring.
Definition at line 149 of file CbmLitMCTrack.h.
References fNofRichHits.
Referenced by CbmLitTrackingQa::FillGlobalReconstructionHistosRich(), and CbmLitTrackingQa::ProcessMcTracks().
|
inline |
Return MC point for specified detector id and point index.
[in] | detId | Detector identificator. |
[in] | index | Index of MC point. |
Definition at line 98 of file CbmLitMCTrack.h.
References fPoints, and GetNofPoints().
Referenced by PointsToString().
|
inline |
Return MC point for specified detector id and point index.
Before accessing points with this function one has to check the number of points on this station!
[in] | detId | Detector identificator. |
[in] | stationId | Station id. |
[in] | index | Index of MC point. |
Definition at line 217 of file CbmLitMCTrack.h.
References fStationPoints, GetNofPointsAtStation(), and kRich.
Referenced by CbmLitFitQa::ProcessMuchTrack(), CbmLitFitQa::ProcessStsTrack(), and CbmLitFitQa::ProcessTrdTrack().
|
inline |
Return vector of MC point for specified detector id.
[in] | detId | Detector identificator. |
Definition at line 88 of file CbmLitMCTrack.h.
References fPoints.
|
inline |
Return major semi-axis of the ellipse.
Definition at line 161 of file CbmLitMCTrack.h.
References fRingAaxis.
Referenced by CbmLitTrackingQa::ProcessMcTracks().
|
inline |
Return minor semi-axis of the ellipse.
Definition at line 173 of file CbmLitMCTrack.h.
References fRingBaxis.
Referenced by CbmLitTrackingQa::ProcessMcTracks().
|
inline |
Return X coordinate of the ellipse center.
Definition at line 185 of file CbmLitMCTrack.h.
References fRingCenterX.
Referenced by CbmLitTrackingQa::ProcessMcTracks().
|
inline |
Return Y coordinate of the ellipse center.
Definition at line 197 of file CbmLitMCTrack.h.
References fRingCenterY.
Referenced by CbmLitTrackingQa::ProcessMcTracks().
|
inlineprivate |
Definition at line 259 of file CbmLitMCTrack.h.
Referenced by CalculateNofConsecutivePoints().
|
inlineprivate |
Definition at line 279 of file CbmLitMCTrack.h.
References GetNofConsecutivePoints(), GetNofPoints(), GetNofPointsInDifferentStations(), GetPoint(), CbmLitMCPoint::GetRefId(), CbmLitMCPoint::GetStationId(), and i.
Referenced by ToString().
|
inline |
SetNumber of RICH hits in ring.
[in] | nofRIchHits | Number of hits in RICH. |
Definition at line 155 of file CbmLitMCTrack.h.
References fNofRichHits.
|
inline |
Set major semi-axis of the ellipse.
[in] | a | Major semi-axis of the ellipse. |
Definition at line 167 of file CbmLitMCTrack.h.
References fRingAaxis.
|
inline |
Set minor semi-axis of the ellipse.
[in] | b | Minor semi-axis of the ellipse. |
Definition at line 179 of file CbmLitMCTrack.h.
References fRingBaxis.
|
inline |
Set X coordinate of the ellipse center.
[in] | xc | X coordinate of the ellipse center. |
Definition at line 191 of file CbmLitMCTrack.h.
References fRingCenterX.
|
inline |
Set Y coordinate of the ellipse center.
[in] | yc | Y coordinate of the ellipse center. |
Definition at line 203 of file CbmLitMCTrack.h.
References fRingCenterY.
|
inlinevirtual |
Returns string representation of the class.
Definition at line 298 of file CbmLitMCTrack.h.
References kMuch, kMvd, kSts, kTof, kTrd, and PointsToString().
|
friend |
Operator << for convenient output to ostream.
Definition at line 314 of file CbmLitMCTrack.h.
|
private |
Definition at line 250 of file CbmLitMCTrack.h.
Referenced by CalculateNofConsecutivePoints(), CbmLitMCTrack(), and GetNofConsecutivePoints().
|
private |
Definition at line 252 of file CbmLitMCTrack.h.
Referenced by GetNofRichHits(), and SetNofRichHits().
|
private |
Definition at line 239 of file CbmLitMCTrack.h.
Referenced by AddPoint(), CbmLitMCTrack(), GetNofPoints(), GetPoint(), and GetPoints().
|
private |
Definition at line 253 of file CbmLitMCTrack.h.
Referenced by GetRingAaxis(), and SetRingAaxis().
|
private |
Definition at line 254 of file CbmLitMCTrack.h.
Referenced by GetRingBaxis(), and SetRingBaxis().
|
private |
Definition at line 255 of file CbmLitMCTrack.h.
Referenced by GetRingCenterX(), and SetRingCenterX().
|
private |
Definition at line 256 of file CbmLitMCTrack.h.
Referenced by GetRingCenterY(), and SetRingCenterY().
|
private |
Definition at line 246 of file CbmLitMCTrack.h.
Referenced by AddPoint(), CalculateNofConsecutivePoints(), and CbmLitMCTrack().
|
private |
Definition at line 242 of file CbmLitMCTrack.h.
Referenced by AddPoint(), CbmLitMCTrack(), GetNofPointsAtStation(), GetNofPointsInDifferentStations(), and GetPointAtStation().