BmnRoot
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 BmnMCPointGetPoint (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 BmnMCPointGetPoint (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.
 

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

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

Constructor & Destructor Documentation

◆ BmnMCTrack() [1/2]

BmnMCTrack::BmnMCTrack ( )
inline

Constructor.

Definition at line 32 of file BmnMCTrack.h.

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

◆ ~BmnMCTrack() [1/2]

virtual BmnMCTrack::~BmnMCTrack ( )
inlinevirtual

Destructor.

Definition at line 57 of file BmnMCTrack.h.

◆ BmnMCTrack() [2/2]

BmnMCTrack::BmnMCTrack ( )
inline

Constructor.

Definition at line 32 of file BmnMCTrack.h.

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

◆ ~BmnMCTrack() [2/2]

virtual BmnMCTrack::~BmnMCTrack ( )
inlinevirtual

Destructor.

Definition at line 57 of file BmnMCTrack.h.

Member Function Documentation

◆ AddPoint() [1/2]

void BmnMCTrack::AddPoint ( DetectorId  detId,
const BmnMCPoint point 
)
inline

Add point to track.

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

Definition at line 64 of file BmnMCTrack.h.

◆ AddPoint() [2/2]

void BmnMCTrack::AddPoint ( DetectorId  detId,
const BmnMCPoint point 
)
inline

Add point to track.

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

Definition at line 64 of file BmnMCTrack.h.

◆ GetNofPoints() [1/2]

UInt_t BmnMCTrack::GetNofPoints ( DetectorId  detId) const
inline

Return number of MC points for specified detector id.

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

Definition at line 96 of file BmnMCTrack.h.

Referenced by GetPoint().

◆ GetNofPoints() [2/2]

UInt_t BmnMCTrack::GetNofPoints ( DetectorId  detId) const
inline

Return number of MC points for specified detector id.

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

Definition at line 96 of file BmnMCTrack.h.

◆ GetPoint() [1/2]

const BmnMCPoint & BmnMCTrack::GetPoint ( DetectorId  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 86 of file BmnMCTrack.h.

References GetNofPoints().

◆ GetPoint() [2/2]

const BmnMCPoint & BmnMCTrack::GetPoint ( DetectorId  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 86 of file BmnMCTrack.h.

References GetNofPoints().

◆ GetPoints() [1/2]

const vector< BmnMCPoint > & BmnMCTrack::GetPoints ( DetectorId  detId) const
inline

Return vector of MC point for specified detector id.

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

Definition at line 76 of file BmnMCTrack.h.

◆ GetPoints() [2/2]

const vector< BmnMCPoint > & BmnMCTrack::GetPoints ( DetectorId  detId) const
inline

Return vector of MC point for specified detector id.

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

Definition at line 76 of file BmnMCTrack.h.

◆ ToString() [1/2]

virtual string BmnMCTrack::ToString ( ) const
inlinevirtual

Returns string representation of the class.

Returns
Class representation as string.

Definition at line 221 of file BmnMCTrack.h.

References kDCH, kGEM, kTOF, and kTOF1.

◆ ToString() [2/2]

virtual string BmnMCTrack::ToString ( ) const
inlinevirtual

Returns string representation of the class.

Returns
Class representation as string.

Definition at line 221 of file BmnMCTrack.h.

References kDCH, kGEM, kTOF, and kTOF1.

Friends And Related Symbol Documentation

◆ operator<< [1/2]

ostream & operator<< ( ostream &  strm,
const BmnMCTrack 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 236 of file BmnMCTrack.h.

◆ operator<< [2/2]

ostream & operator<< ( ostream &  strm,
const BmnMCTrack 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 236 of file BmnMCTrack.h.


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