CbmRoot
CbmLitMCTrack Class Reference

Monte-Carlo track. More...

#include <CbmLitMCTrack.h>

Collaboration diagram for CbmLitMCTrack:
[legend]

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 CbmLitMCPointGetPoint (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 CbmLitMCPointGetPointAtStation (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...
 

Detailed Description

Monte-Carlo track.

Author
Andrey Lebedev andre.nosp@m.y.le.nosp@m.bedev.nosp@m.@gsi.nosp@m..de
Date
2011

Definition at line 30 of file CbmLitMCTrack.h.

Constructor & Destructor Documentation

◆ CbmLitMCTrack()

CbmLitMCTrack::CbmLitMCTrack ( )
inline

Constructor.

Definition at line 35 of file CbmLitMCTrack.h.

References fMaxConsecutivePoints, fPoints, fStationIds, fStationPoints, kMuch, kMvd, kRich, kSts, kTof, and kTrd.

◆ ~CbmLitMCTrack()

virtual CbmLitMCTrack::~CbmLitMCTrack ( )
inlinevirtual

Destructor.

Definition at line 68 of file CbmLitMCTrack.h.

Member Function Documentation

◆ AddPoint()

void CbmLitMCTrack::AddPoint ( ECbmModuleId  detId,
const CbmLitMCPoint point 
)
inline

Add point to track.

Parameters
[in]detIdDetector identificator.
[in]pointMC point to be added.

Definition at line 75 of file CbmLitMCTrack.h.

References fPoints, fStationIds, fStationPoints, CbmLitMCPoint::GetStationId(), and kRich.

◆ CalculateNofConsecutivePoints()

void CbmLitMCTrack::CalculateNofConsecutivePoints ( )
inline

Calculates number of consecutive MC points for specified detector id. Currently works only for STS.

Parameters
[in]detIdDetector identificator.
Returns
Number of MC points.

Definition at line 140 of file CbmLitMCTrack.h.

References fMaxConsecutivePoints, fStationIds, kSts, and MaxConsecutiveNumbers().

◆ GetNofConsecutivePoints()

Int_t CbmLitMCTrack::GetNofConsecutivePoints ( ECbmModuleId  detId) const
inline

Return number of consecutive MC points for specified detector id. Currently works only for STS.

Parameters
[in]detIdDetector identificator.
Returns
Number of MC points.

Definition at line 127 of file CbmLitMCTrack.h.

References fMaxConsecutivePoints, and kSts.

Referenced by PointsToString(), and CbmLitTrackingQa::ProcessMcTracks().

◆ GetNofPoints()

UInt_t CbmLitMCTrack::GetNofPoints ( ECbmModuleId  detId) const
inline

Return number of MC points for specified detector id.

Parameters
[in]detIdDetector identificator.
Returns
Number of MC points.

Definition at line 108 of file CbmLitMCTrack.h.

References fPoints.

Referenced by GetPoint(), PointsToString(), and CbmLitTrackingQa::ProcessMcTracks().

◆ GetNofPointsAtStation()

UInt_t CbmLitMCTrack::GetNofPointsAtStation ( ECbmModuleId  detId,
Int_t  stationId 
) const
inline

Return number of MC points for specified detector ID and station ID.

Parameters
[in]detIdDetector identificator.
[in]stationIdStation id.
Returns
Number of MC points.

Definition at line 229 of file CbmLitMCTrack.h.

References fStationPoints, and kRich.

Referenced by GetPointAtStation(), CbmLitFitQa::ProcessMuchTrack(), CbmLitFitQa::ProcessStsTrack(), and CbmLitFitQa::ProcessTrdTrack().

◆ GetNofPointsInDifferentStations()

UInt_t CbmLitMCTrack::GetNofPointsInDifferentStations ( ECbmModuleId  detId) const
inline

Return number of MC points in different stations for specified detector id.

Parameters
[in]detIdDetector identificator.
Returns
Number of MC points.

Definition at line 117 of file CbmLitMCTrack.h.

References fStationPoints, and kRich.

Referenced by CbmAnaDielectronTask::CalculateNofTopologyPairs(), PointsToString(), and CbmLitTrackingQa::ProcessMcTracks().

◆ GetNofRichHits()

Int_t CbmLitMCTrack::GetNofRichHits ( ) const
inline

Return number of RICH hits in ring.

Returns
Number of RICH hits in ring.

Definition at line 149 of file CbmLitMCTrack.h.

References fNofRichHits.

Referenced by CbmLitTrackingQa::FillGlobalReconstructionHistosRich(), and CbmLitTrackingQa::ProcessMcTracks().

◆ GetPoint()

const CbmLitMCPoint& CbmLitMCTrack::GetPoint ( ECbmModuleId  detId,
Int_t  index 
) const
inline

Return MC point for specified detector id and point index.

Parameters
[in]detIdDetector identificator.
[in]indexIndex of MC point.
Returns
MC point.

Definition at line 98 of file CbmLitMCTrack.h.

References fPoints, and GetNofPoints().

Referenced by PointsToString().

◆ GetPointAtStation()

const CbmLitMCPoint& CbmLitMCTrack::GetPointAtStation ( ECbmModuleId  detId,
Int_t  stationId,
Int_t  index 
) const
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!

Parameters
[in]detIdDetector identificator.
[in]stationIdStation id.
[in]indexIndex of MC point.
Returns
MC point.

Definition at line 217 of file CbmLitMCTrack.h.

References fStationPoints, GetNofPointsAtStation(), and kRich.

Referenced by CbmLitFitQa::ProcessMuchTrack(), CbmLitFitQa::ProcessStsTrack(), and CbmLitFitQa::ProcessTrdTrack().

◆ GetPoints()

const vector<CbmLitMCPoint>& CbmLitMCTrack::GetPoints ( ECbmModuleId  detId) const
inline

Return vector of MC point for specified detector id.

Parameters
[in]detIdDetector identificator.
Returns
Array of MC points.

Definition at line 88 of file CbmLitMCTrack.h.

References fPoints.

◆ GetRingAaxis()

Double_t CbmLitMCTrack::GetRingAaxis ( ) const
inline

Return major semi-axis of the ellipse.

Returns
Major semi-axis of the ellipse.

Definition at line 161 of file CbmLitMCTrack.h.

References fRingAaxis.

Referenced by CbmLitTrackingQa::ProcessMcTracks().

◆ GetRingBaxis()

Double_t CbmLitMCTrack::GetRingBaxis ( ) const
inline

Return minor semi-axis of the ellipse.

Returns
Minor semi-axis of the ellipse.

Definition at line 173 of file CbmLitMCTrack.h.

References fRingBaxis.

Referenced by CbmLitTrackingQa::ProcessMcTracks().

◆ GetRingCenterX()

Double_t CbmLitMCTrack::GetRingCenterX ( ) const
inline

Return X coordinate of the ellipse center.

Returns
X coordinate of the ellipse center.

Definition at line 185 of file CbmLitMCTrack.h.

References fRingCenterX.

Referenced by CbmLitTrackingQa::ProcessMcTracks().

◆ GetRingCenterY()

Double_t CbmLitMCTrack::GetRingCenterY ( ) const
inline

Return Y coordinate of the ellipse center.

Returns
Y coordinate of the ellipse center.

Definition at line 197 of file CbmLitMCTrack.h.

References fRingCenterY.

Referenced by CbmLitTrackingQa::ProcessMcTracks().

◆ MaxConsecutiveNumbers()

Int_t CbmLitMCTrack::MaxConsecutiveNumbers ( const set< Int_t > &  numbers) const
inlineprivate

Definition at line 259 of file CbmLitMCTrack.h.

References i, and max().

Referenced by CalculateNofConsecutivePoints().

◆ PointsToString()

string CbmLitMCTrack::PointsToString ( ECbmModuleId  detId,
const string &  detName 
) const
inlineprivate

◆ SetNofRichHits()

void CbmLitMCTrack::SetNofRichHits ( Int_t  nofRichHits)
inline

SetNumber of RICH hits in ring.

Parameters
[in]nofRIchHitsNumber of hits in RICH.

Definition at line 155 of file CbmLitMCTrack.h.

References fNofRichHits.

◆ SetRingAaxis()

void CbmLitMCTrack::SetRingAaxis ( Double_t  a)
inline

Set major semi-axis of the ellipse.

Parameters
[in]aMajor semi-axis of the ellipse.

Definition at line 167 of file CbmLitMCTrack.h.

References fRingAaxis.

◆ SetRingBaxis()

void CbmLitMCTrack::SetRingBaxis ( Double_t  b)
inline

Set minor semi-axis of the ellipse.

Parameters
[in]bMinor semi-axis of the ellipse.

Definition at line 179 of file CbmLitMCTrack.h.

References fRingBaxis.

◆ SetRingCenterX()

void CbmLitMCTrack::SetRingCenterX ( Double_t  xc)
inline

Set X coordinate of the ellipse center.

Parameters
[in]xcX coordinate of the ellipse center.

Definition at line 191 of file CbmLitMCTrack.h.

References fRingCenterX.

◆ SetRingCenterY()

void CbmLitMCTrack::SetRingCenterY ( Double_t  yc)
inline

Set Y coordinate of the ellipse center.

Parameters
[in]ycY coordinate of the ellipse center.

Definition at line 203 of file CbmLitMCTrack.h.

References fRingCenterY.

◆ ToString()

virtual string CbmLitMCTrack::ToString ( ) const
inlinevirtual

Returns string representation of the class.

Returns
Class representation as string.

Definition at line 298 of file CbmLitMCTrack.h.

References kMuch, kMvd, kSts, kTof, kTrd, and PointsToString().

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  strm,
const CbmLitMCTrack track 
)
friend

Operator << for convenient output to ostream.

Returns
Insertion stream in order to be able to call a succession of insertion operations.

Definition at line 314 of file CbmLitMCTrack.h.

Member Data Documentation

◆ fMaxConsecutivePoints

map<ECbmModuleId, Int_t> CbmLitMCTrack::fMaxConsecutivePoints
private

◆ fNofRichHits

Int_t CbmLitMCTrack::fNofRichHits
private

Definition at line 252 of file CbmLitMCTrack.h.

Referenced by GetNofRichHits(), and SetNofRichHits().

◆ fPoints

map<ECbmModuleId, vector<CbmLitMCPoint> > CbmLitMCTrack::fPoints
private

Definition at line 239 of file CbmLitMCTrack.h.

Referenced by AddPoint(), CbmLitMCTrack(), GetNofPoints(), GetPoint(), and GetPoints().

◆ fRingAaxis

Double_t CbmLitMCTrack::fRingAaxis
private

Definition at line 253 of file CbmLitMCTrack.h.

Referenced by GetRingAaxis(), and SetRingAaxis().

◆ fRingBaxis

Double_t CbmLitMCTrack::fRingBaxis
private

Definition at line 254 of file CbmLitMCTrack.h.

Referenced by GetRingBaxis(), and SetRingBaxis().

◆ fRingCenterX

Double_t CbmLitMCTrack::fRingCenterX
private

Definition at line 255 of file CbmLitMCTrack.h.

Referenced by GetRingCenterX(), and SetRingCenterX().

◆ fRingCenterY

Double_t CbmLitMCTrack::fRingCenterY
private

Definition at line 256 of file CbmLitMCTrack.h.

Referenced by GetRingCenterY(), and SetRingCenterY().

◆ fStationIds

map<ECbmModuleId, set<Int_t> > CbmLitMCTrack::fStationIds
private

Definition at line 246 of file CbmLitMCTrack.h.

Referenced by AddPoint(), CalculateNofConsecutivePoints(), and CbmLitMCTrack().

◆ fStationPoints

map<ECbmModuleId, map<Int_t, vector<CbmLitMCPoint> > > CbmLitMCTrack::fStationPoints
private

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