CbmRoot
Loading...
Searching...
No Matches
CbmLitMCTrack Class Reference

Monte-Carlo track. More...

#include <CbmLitMCTrack.h>

Collaboration diagram for CbmLitMCTrack:
[legend]

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

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 35 of file CbmLitMCTrack.h.

Constructor & Destructor Documentation

◆ CbmLitMCTrack()

CbmLitMCTrack::CbmLitMCTrack ( )
inline

Constructor.

Definition at line 40 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 74 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 81 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 144 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 132 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 114 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 232 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 121 of file CbmLitMCTrack.h.

References fStationPoints, and kRich.

Referenced by LmvmTask::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 153 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 103 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 220 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 95 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 165 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 177 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 189 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 201 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 264 of file CbmLitMCTrack.h.

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 159 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 171 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 183 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 195 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 207 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 304 of file CbmLitMCTrack.h.

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

Friends And Related Symbol 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 321 of file CbmLitMCTrack.h.

Member Data Documentation

◆ fMaxConsecutivePoints

map<ECbmModuleId, Int_t> CbmLitMCTrack::fMaxConsecutivePoints
private

◆ fNofRichHits

Int_t CbmLitMCTrack::fNofRichHits
private

Definition at line 257 of file CbmLitMCTrack.h.

Referenced by GetNofRichHits(), and SetNofRichHits().

◆ fPoints

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

Definition at line 244 of file CbmLitMCTrack.h.

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

◆ fRingAaxis

Double_t CbmLitMCTrack::fRingAaxis
private

Definition at line 258 of file CbmLitMCTrack.h.

Referenced by GetRingAaxis(), and SetRingAaxis().

◆ fRingBaxis

Double_t CbmLitMCTrack::fRingBaxis
private

Definition at line 259 of file CbmLitMCTrack.h.

Referenced by GetRingBaxis(), and SetRingBaxis().

◆ fRingCenterX

Double_t CbmLitMCTrack::fRingCenterX
private

Definition at line 260 of file CbmLitMCTrack.h.

Referenced by GetRingCenterX(), and SetRingCenterX().

◆ fRingCenterY

Double_t CbmLitMCTrack::fRingCenterY
private

Definition at line 261 of file CbmLitMCTrack.h.

Referenced by GetRingCenterY(), and SetRingCenterY().

◆ fStationIds

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

Definition at line 251 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: