BmnRoot
Loading...
Searching...
No Matches
BmnMCTrackCreator Class Reference

#include <BmnMCTrackCreator.h>

Public Member Functions

virtual ~BmnMCTrackCreator ()
 Destructor.
 
void Create ()
 Creates array of BmnMCTracks for current event. Has to be executed in Exec() function of the task.
 
Bool_t TrackExists (Int_t mcId) const
 Check whether a track exists in the array.
 
const BmnMCTrackGetTrack (int mcId) const
 Return BmnMCTrack by its index.
 
Int_t GetNofTracks () const
 Return number of tracks.
 
virtual ~BmnMCTrackCreator ()
 Destructor.
 
void Create ()
 Creates array of BmnMCTracks for current event. Has to be executed in Exec() function of the task.
 
Bool_t TrackExists (Int_t mcId) const
 Check whether a track exists in the array.
 
const BmnMCTrackGetTrack (int mcId) const
 Return BmnMCTrack by its index.
 
Int_t GetNofTracks () const
 Return number of tracks.
 

Static Public Member Functions

static BmnMCTrackCreatorInstance (TString gem, TString sil, TString csc)
 Singleton instance.
 
static BmnMCTrackCreatorInstance (TString gem, TString sil, TString csc)
 Singleton instance.
 

Detailed Description

Definition at line 33 of file BmnMCTrackCreator.h.

Constructor & Destructor Documentation

◆ ~BmnMCTrackCreator() [1/2]

BmnMCTrackCreator::~BmnMCTrackCreator ( )
virtual

Destructor.

Definition at line 43 of file BmnMCTrackCreator.cxx.

◆ ~BmnMCTrackCreator() [2/2]

virtual BmnMCTrackCreator::~BmnMCTrackCreator ( )
virtual

Destructor.

Member Function Documentation

◆ Create() [1/2]

void BmnMCTrackCreator::Create ( )

Creates array of BmnMCTracks for current event. Has to be executed in Exec() function of the task.

Definition at line 54 of file BmnMCTrackCreator.cxx.

References BmnCSCStationSet::GetNStations(), BmnGemStripStationSet::GetNStations(), BmnSiliconStationSet::GetNStations(), kCSC, kDCH, kGEM, kSILICON, kSSD, kTOF, and kTOF1.

◆ Create() [2/2]

void BmnMCTrackCreator::Create ( )

Creates array of BmnMCTracks for current event. Has to be executed in Exec() function of the task.

◆ GetNofTracks() [1/2]

Int_t BmnMCTrackCreator::GetNofTracks ( ) const
inline

Return number of tracks.

Returns
Number of tracks.

Definition at line 90 of file BmnMCTrackCreator.h.

◆ GetNofTracks() [2/2]

Int_t BmnMCTrackCreator::GetNofTracks ( ) const
inline

Return number of tracks.

Returns
Number of tracks.

Definition at line 90 of file BmnMCTrackCreator.h.

◆ GetTrack() [1/2]

const BmnMCTrack & BmnMCTrackCreator::GetTrack ( int  mcId) const
inline

Return BmnMCTrack by its index.

Parameters
[in]mcIdMC index of track.
Returns
MC track.

Definition at line 81 of file BmnMCTrackCreator.h.

References TrackExists().

◆ GetTrack() [2/2]

const BmnMCTrack & BmnMCTrackCreator::GetTrack ( int  mcId) const
inline

Return BmnMCTrack by its index.

Parameters
[in]mcIdMC index of track.
Returns
MC track.

Definition at line 81 of file BmnMCTrackCreator.h.

References TrackExists().

◆ Instance() [1/2]

BmnMCTrackCreator * BmnMCTrackCreator::Instance ( TString  gem,
TString  sil,
TString  csc 
)
static

Singleton instance.

Definition at line 49 of file BmnMCTrackCreator.cxx.

◆ Instance() [2/2]

static BmnMCTrackCreator * BmnMCTrackCreator::Instance ( TString  gem,
TString  sil,
TString  csc 
)
static

Singleton instance.

◆ TrackExists() [1/2]

Bool_t BmnMCTrackCreator::TrackExists ( Int_t  mcId) const
inline

Check whether a track exists in the array.

Parameters
[in]mcIdMC index of track.
Returns
true if track exists in array.

Definition at line 62 of file BmnMCTrackCreator.h.

Referenced by GetTrack().

◆ TrackExists() [2/2]

Bool_t BmnMCTrackCreator::TrackExists ( Int_t  mcId) const
inline

Check whether a track exists in the array.

Parameters
[in]mcIdMC index of track.
Returns
true if track exists in array.

Definition at line 62 of file BmnMCTrackCreator.h.


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