BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnMCTrack Class Reference

Monte-Carlo track. More...

#include <BmnMCTrack.h>

Public Member Functions

 BmnMCTrack ()
 Constructor.
virtual ~BmnMCTrack ()
 Destructor.
void AddPoint (DetectorId detId, const BmnMCPoint &point)
 Add point to track.
const vector< BmnMCPoint > & GetPoints (DetectorId detId) const
 Return vector of MC point for specified detector id.
const BmnMCPoint & GetPoint (DetectorId detId, Int_t index) const
 Return MC point for specified detector id and point index.
UInt_t GetNofPoints (DetectorId detId) const
 Return number of MC points for specified detector id.
virtual string ToString () const
 Returns string representation of the class.
 BmnMCTrack ()
 Constructor.
virtual ~BmnMCTrack ()
 Destructor.
void AddPoint (DetectorId detId, const BmnMCPoint &point)
 Add point to track.
const vector< BmnMCPoint > & GetPoints (DetectorId detId) const
 Return vector of MC point for specified detector id.
const BmnMCPoint & GetPoint (DetectorId detId, Int_t index) const
 Return MC point for specified detector id and point index.
UInt_t GetNofPoints (DetectorId detId) const
 Return number of MC points for specified detector 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 (DetectorId detId, const string &detName) const
Int_t MaxConsecutiveNumbers (const set< Int_t > &numbers) const
string PointsToString (DetectorId detId, const string &detName) const

Private Attributes

map< Int_t, vector< BmnMCPoint > > fPoints
 Return number of MC points in different stations for specified detector id.

Friends

ostream & operator<< (ostream &strm, const BmnMCTrack &track)
 Operator << for convenient output to ostream.
ostream & operator<< (ostream &strm, const BmnMCTrack &track)
 Operator << for convenient output to ostream.

Detailed Description

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

Definition at line 26 of file BmnMCTrack.h.

Constructor & Destructor Documentation

◆ BmnMCTrack() [1/2]

BmnMCTrack::BmnMCTrack ( )
inline

Definition at line 32 of file BmnMCTrack.h.

References fPoints, kCSC, kDCH, kGEM, kSILICON, kSSD, kTOF, and kTOF1.

Referenced by operator<<.

Here is the caller graph for this function:

◆ ~BmnMCTrack() [1/2]

virtual BmnMCTrack::~BmnMCTrack ( )
inlinevirtual

Definition at line 58 of file BmnMCTrack.h.

◆ BmnMCTrack() [2/2]

BmnMCTrack::BmnMCTrack ( )
inline

Definition at line 32 of file BmnMCTrack.h.

References fPoints, kCSC, kDCH, kGEM, kSILICON, kSSD, kTOF, and kTOF1.

◆ ~BmnMCTrack() [2/2]

virtual BmnMCTrack::~BmnMCTrack ( )
inlinevirtual

Definition at line 58 of file BmnMCTrack.h.

Member Function Documentation

◆ AddPoint() [1/2]

void BmnMCTrack::AddPoint ( DetectorId detId,
const BmnMCPoint & point )
inline
Parameters
[in]detIdDetector identificator.
[in]pointMC point to be added.

Definition at line 65 of file BmnMCTrack.h.

References fPoints.

◆ AddPoint() [2/2]

void BmnMCTrack::AddPoint ( DetectorId detId,
const BmnMCPoint & point )
inline
Parameters
[in]detIdDetector identificator.
[in]pointMC point to be added.

Definition at line 65 of file BmnMCTrack.h.

References fPoints.

◆ GetNofPoints() [1/2]

UInt_t BmnMCTrack::GetNofPoints ( DetectorId detId) const
inline
Parameters
[in]detIdDetector identificator.
Returns
Number of MC points.

Definition at line 96 of file BmnMCTrack.h.

References fPoints.

Referenced by GetPoint().

Here is the caller graph for this function:

◆ GetNofPoints() [2/2]

UInt_t BmnMCTrack::GetNofPoints ( DetectorId detId) const
inline
Parameters
[in]detIdDetector identificator.
Returns
Number of MC points.

Definition at line 96 of file BmnMCTrack.h.

References fPoints.

◆ GetPoint() [1/2]

const BmnMCPoint & BmnMCTrack::GetPoint ( DetectorId detId,
Int_t index ) const
inline
Parameters
[in]detIdDetector identificator.
[in]indexIndex of MC point.
Returns
MC point.

Definition at line 85 of file BmnMCTrack.h.

References fPoints, and GetNofPoints().

Here is the call graph for this function:

◆ GetPoint() [2/2]

const BmnMCPoint & BmnMCTrack::GetPoint ( DetectorId detId,
Int_t index ) const
inline
Parameters
[in]detIdDetector identificator.
[in]indexIndex of MC point.
Returns
MC point.

Definition at line 85 of file BmnMCTrack.h.

References fPoints, and GetNofPoints().

Here is the call graph for this function:

◆ GetPoints() [1/2]

const vector< BmnMCPoint > & BmnMCTrack::GetPoints ( DetectorId detId) const
inline
Parameters
[in]detIdDetector identificator.
Returns
Array of MC points.

Definition at line 77 of file BmnMCTrack.h.

References fPoints.

Referenced by BmnTrackingQa::CalcNumberOfMcPointInTrack().

Here is the caller graph for this function:

◆ GetPoints() [2/2]

const vector< BmnMCPoint > & BmnMCTrack::GetPoints ( DetectorId detId) const
inline
Parameters
[in]detIdDetector identificator.
Returns
Array of MC points.

Definition at line 77 of file BmnMCTrack.h.

References fPoints.

◆ MaxConsecutiveNumbers() [1/2]

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

Definition at line 176 of file BmnMCTrack.h.

References i.

◆ MaxConsecutiveNumbers() [2/2]

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

Definition at line 176 of file BmnMCTrack.h.

References i.

◆ PointsToString() [1/2]

string BmnMCTrack::PointsToString ( DetectorId detId,
const string & detName ) const
inlineprivate

Definition at line 199 of file BmnMCTrack.h.

Referenced by ToString().

Here is the caller graph for this function:

◆ PointsToString() [2/2]

string BmnMCTrack::PointsToString ( DetectorId detId,
const string & detName ) const
inlineprivate

Definition at line 199 of file BmnMCTrack.h.

◆ ToString() [1/2]

virtual string BmnMCTrack::ToString ( ) const
inlinevirtual
Returns
Class representation as string.

Definition at line 217 of file BmnMCTrack.h.

References kDCH, kGEM, kTOF, kTOF1, and PointsToString().

Referenced by operator<<.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ToString() [2/2]

virtual string BmnMCTrack::ToString ( ) const
inlinevirtual
Returns
Class representation as string.

Definition at line 217 of file BmnMCTrack.h.

References kDCH, kGEM, kTOF, kTOF1, and PointsToString().

Here is the call graph for this function:

◆ operator<< [1/2]

ostream & operator<< ( ostream & strm,
const BmnMCTrack & track )
friend
Returns
Insertion stream in order to be able to call a succession of insertion operations.

Definition at line 233 of file BmnMCTrack.h.

References BmnMCTrack(), and ToString().

◆ operator<< [2/2]

ostream & operator<< ( ostream & strm,
const BmnMCTrack & track )
friend
Returns
Insertion stream in order to be able to call a succession of insertion operations.

Definition at line 233 of file BmnMCTrack.h.

References BmnMCTrack(), and ToString().

Member Data Documentation

◆ fPoints

map< Int_t, vector< BmnMCPoint > > BmnMCTrack::fPoints
private
Parameters
[in]detIdDetector identificator.
Returns
Number of MC points.

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

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

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

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

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.

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 162 of file BmnMCTrack.h.

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


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