|
CbmRoot
|
Monte-Carlo track. More...
#include <CbmLitMCTrack.h>
Public Member Functions | |
| CbmLitMCTrack () | |
| Constructor. | |
| virtual | ~CbmLitMCTrack () |
| Destructor. | |
| void | AddPoint (ECbmModuleId detId, const CbmLitMCPoint &point) |
| Add point to track. | |
| const vector< CbmLitMCPoint > & | GetPoints (ECbmModuleId detId) const |
| Return vector of MC point for specified detector id. | |
| const CbmLitMCPoint & | GetPoint (ECbmModuleId detId, Int_t index) const |
| Return MC point for specified detector id and point index. | |
| UInt_t | GetNofPoints (ECbmModuleId detId) const |
| Return number of MC points for specified detector id. | |
| UInt_t | GetNofPointsInDifferentStations (ECbmModuleId detId) const |
| Return number of MC points in different stations for specified detector id. | |
| Int_t | GetNofConsecutivePoints (ECbmModuleId detId) const |
| Return number of consecutive MC points for specified detector id. Currently works only for STS. | |
| void | CalculateNofConsecutivePoints () |
| Calculates number of consecutive MC points for specified detector id. Currently works only for STS. | |
| Int_t | GetNofRichHits () const |
| Return number of RICH hits in ring. | |
| void | SetNofRichHits (Int_t nofRichHits) |
| SetNumber of RICH hits in ring. | |
| Double_t | GetRingAaxis () const |
| Return major semi-axis of the ellipse. | |
| void | SetRingAaxis (Double_t a) |
| Set major semi-axis of the ellipse. | |
| Double_t | GetRingBaxis () const |
| Return minor semi-axis of the ellipse. | |
| void | SetRingBaxis (Double_t b) |
| Set minor semi-axis of the ellipse. | |
| Double_t | GetRingCenterX () const |
| Return X coordinate of the ellipse center. | |
| void | SetRingCenterX (Double_t xc) |
| Set X coordinate of the ellipse center. | |
| Double_t | GetRingCenterY () const |
| Return Y coordinate of the ellipse center. | |
| void | SetRingCenterY (Double_t yc) |
| Set Y coordinate of the ellipse center. | |
| const CbmLitMCPoint & | GetPointAtStation (ECbmModuleId detId, Int_t stationId, Int_t index) const |
| Return MC point for specified detector id and point index. | |
| UInt_t | GetNofPointsAtStation (ECbmModuleId detId, Int_t stationId) const |
| Return number of MC points for specified detector ID and station ID. | |
| virtual string | ToString () const |
| Returns string representation of the class. | |
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. | |
|
inline |
Constructor.
Definition at line 40 of file CbmLitMCTrack.h.
References fMaxConsecutivePoints, fNofRichHits, fPoints, fRingAaxis, fRingBaxis, fRingCenterX, fRingCenterY, fStationIds, fStationPoints, kMuch, kMvd, kRich, kSts, kTof, and kTrd.
Referenced by operator<<.
|
inlinevirtual |
Destructor.
Definition at line 74 of file CbmLitMCTrack.h.
|
inline |
Add point to track.
| [in] | detId | Detector identificator. |
| [in] | point | MC point to be added. |
Definition at line 81 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 144 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 132 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 114 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 232 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 121 of file CbmLitMCTrack.h.
References fStationPoints, and kRich.
Referenced by LmvmTask::CalculateNofTopologyPairs(), PointsToString(), and CbmLitTrackingQa::ProcessMcTracks().
|
inline |
Return number of RICH hits in ring.
Definition at line 153 of file CbmLitMCTrack.h.
References fNofRichHits.
Referenced by 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 103 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 220 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 95 of file CbmLitMCTrack.h.
References fPoints.
|
inline |
Return major semi-axis of the ellipse.
Definition at line 165 of file CbmLitMCTrack.h.
References fRingAaxis.
Referenced by CbmLitTrackingQa::ProcessMcTracks().
|
inline |
Return minor semi-axis of the ellipse.
Definition at line 177 of file CbmLitMCTrack.h.
References fRingBaxis.
Referenced by CbmLitTrackingQa::ProcessMcTracks().
|
inline |
Return X coordinate of the ellipse center.
Definition at line 189 of file CbmLitMCTrack.h.
References fRingCenterX.
Referenced by CbmLitTrackingQa::ProcessMcTracks().
|
inline |
Return Y coordinate of the ellipse center.
Definition at line 201 of file CbmLitMCTrack.h.
References fRingCenterY.
Referenced by CbmLitTrackingQa::ProcessMcTracks().
Definition at line 264 of file CbmLitMCTrack.h.
Referenced by CalculateNofConsecutivePoints().
|
inlineprivate |
Definition at line 286 of file CbmLitMCTrack.h.
References GetNofConsecutivePoints(), GetNofPoints(), GetNofPointsInDifferentStations(), GetPoint(), CbmLitMCPoint::GetRefId(), and CbmLitMCPoint::GetStationId().
Referenced by ToString().
|
inline |
SetNumber of RICH hits in ring.
| [in] | nofRIchHits | Number of hits in RICH. |
Definition at line 159 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 171 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 183 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 195 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 207 of file CbmLitMCTrack.h.
References fRingCenterY.
|
inlinevirtual |
Returns string representation of the class.
Definition at line 304 of file CbmLitMCTrack.h.
References kMuch, kMvd, kSts, kTof, kTrd, and PointsToString().
Referenced by operator<<.
|
friend |
Operator << for convenient output to ostream.
Definition at line 321 of file CbmLitMCTrack.h.
References CbmLitMCTrack(), and ToString().
|
private |
Definition at line 255 of file CbmLitMCTrack.h.
Referenced by CalculateNofConsecutivePoints(), CbmLitMCTrack(), and GetNofConsecutivePoints().
|
private |
Definition at line 257 of file CbmLitMCTrack.h.
Referenced by CbmLitMCTrack(), GetNofRichHits(), and SetNofRichHits().
|
private |
Definition at line 244 of file CbmLitMCTrack.h.
Referenced by AddPoint(), CbmLitMCTrack(), GetNofPoints(), GetPoint(), and GetPoints().
|
private |
Definition at line 258 of file CbmLitMCTrack.h.
Referenced by CbmLitMCTrack(), GetRingAaxis(), and SetRingAaxis().
|
private |
Definition at line 259 of file CbmLitMCTrack.h.
Referenced by CbmLitMCTrack(), GetRingBaxis(), and SetRingBaxis().
|
private |
Definition at line 260 of file CbmLitMCTrack.h.
Referenced by CbmLitMCTrack(), GetRingCenterX(), and SetRingCenterX().
|
private |
Definition at line 261 of file CbmLitMCTrack.h.
Referenced by CbmLitMCTrack(), GetRingCenterY(), and SetRingCenterY().
|
private |
Definition at line 251 of file CbmLitMCTrack.h.
Referenced by AddPoint(), CalculateNofConsecutivePoints(), and CbmLitMCTrack().
|
private |
Definition at line 247 of file CbmLitMCTrack.h.
Referenced by AddPoint(), CbmLitMCTrack(), GetNofPointsAtStation(), GetNofPointsInDifferentStations(), and GetPointAtStation().