CbmRoot
CbmLitMCTrackCreator Class Reference

Creates CbmLitMCTrack objects. More...

#include <CbmLitMCTrackCreator.h>

Collaboration diagram for CbmLitMCTrackCreator:
[legend]

Public Member Functions

virtual ~CbmLitMCTrackCreator ()
 Destructor. More...
 
void Create (Int_t eventNum)
 Creates array of CbmLitMCTracks for current event. More...
 
bool TrackExists (int mcEventId, int mcId) const
 Check whether a track exists in the array. More...
 
const CbmLitMCTrackGetTrack (int mcEventId, int mcId) const
 Return CbmLitMCTrack by its index. More...
 
Int_t GetNofTracks () const
 Return number of tracks. More...
 

Static Public Member Functions

static CbmLitMCTrackCreatorInstance ()
 Singleton instance. More...
 

Private Member Functions

 CbmLitMCTrackCreator ()
 Constructor. More...
 
void ReadDataBranches ()
 Read data branches. More...
 
void AddPoints (ECbmModuleId detId, CbmMCDataArray *array, Int_t iEvent)
 Add MC points from a certain detector. More...
 
void AddRichHits (Int_t iEvent)
 Calculate and set number of RICH hits for MC track. More...
 
void AddRingParameters (Int_t iEvent)
 Fit Rich MC points using ellipse fitter and fill ellipse parameters. More...
 
void FairMCPointToLitMCPoint (const FairMCPoint *fairPoint, CbmLitMCPoint *litPoint, int eventId, int refId, int stationId)
 Convert FairMCPoint to CbmLitMCPoint. More...
 
void FillStationMaps (Int_t iEvent)
 Fill maps for MC points to station id. More...
 
void FairMCPointCoordinatesAndMomentumToLitMCPoint (const FairMCPoint *fairPoint, CbmLitMCPoint *litPoint)
 
void MvdPointCoordinatesAndMomentumToLitMCPoint (const CbmMvdPoint *mvdPoint, CbmLitMCPoint *litPoint)
 
void StsPointCoordinatesAndMomentumToLitMCPoint (const CbmStsPoint *stsPoint, CbmLitMCPoint *litPoint)
 
void TrdPointCoordinatesAndMomentumToLitMCPoint (const CbmTrdPoint *trdPoint, CbmLitMCPoint *litPoint)
 
void MuchPointCoordinatesAndMomentumToLitMCPoint (const CbmMuchPoint *muchPoint, CbmLitMCPoint *litPoint)
 
 CbmLitMCTrackCreator (const CbmLitMCTrackCreator &)
 
CbmLitMCTrackCreator operator= (const CbmLitMCTrackCreator &)
 

Private Attributes

CbmMCDataArrayfMCTracks
 
CbmMCDataArrayfMvdPoints
 
CbmMCDataArrayfStsPoints
 
CbmMCDataArrayfTrdPoints
 
CbmMCDataArrayfMuchPoints
 
CbmMCDataArrayfTofPoints
 
CbmMCDataArrayfRichPoints
 
TClonesArray * fRichHits
 
CbmDigiManagerfDigiMan
 
std::map< std::pair< int, int >, CbmLitMCTrackfLitMCTracks
 
std::map< std::pair< int, int >, int > fMvdStationsMap
 
std::map< std::pair< int, int >, int > fStsStationsMap
 
std::map< std::pair< int, int >, int > fTrdStationsMap
 
std::map< std::pair< int, int >, int > fMuchStationsMap
 
CbmRichRingFitterEllipseTaufTauFit
 

Detailed Description

Creates CbmLitMCTrack objects.

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 CbmLitMCTrackCreator.h.

Constructor & Destructor Documentation

◆ CbmLitMCTrackCreator() [1/2]

CbmLitMCTrackCreator::CbmLitMCTrackCreator ( )
private

Constructor.

Definition at line 40 of file CbmLitMCTrackCreator.cxx.

References fTauFit, and ReadDataBranches().

◆ ~CbmLitMCTrackCreator()

CbmLitMCTrackCreator::~CbmLitMCTrackCreator ( )
virtual

Destructor.

Definition at line 61 of file CbmLitMCTrackCreator.cxx.

◆ CbmLitMCTrackCreator() [2/2]

CbmLitMCTrackCreator::CbmLitMCTrackCreator ( const CbmLitMCTrackCreator )
private

Member Function Documentation

◆ AddPoints()

void CbmLitMCTrackCreator::AddPoints ( ECbmModuleId  detId,
CbmMCDataArray array,
Int_t  iEvent 
)
private

◆ AddRichHits()

void CbmLitMCTrackCreator::AddRichHits ( Int_t  iEvent)
private

Calculate and set number of RICH hits for MC track.

Definition at line 175 of file CbmLitMCTrackCreator.cxx.

References fDigiMan, fLitMCTracks, fMCTracks, fRichHits, fRichPoints, CbmMatchRecoToMC::GetMcTrackMotherIdsForRichHit(), and i.

Referenced by Create().

◆ AddRingParameters()

◆ Create()

void CbmLitMCTrackCreator::Create ( Int_t  eventNum)

◆ FairMCPointCoordinatesAndMomentumToLitMCPoint()

◆ FairMCPointToLitMCPoint()

void CbmLitMCTrackCreator::FairMCPointToLitMCPoint ( const FairMCPoint *  fairPoint,
CbmLitMCPoint litPoint,
int  eventId,
int  refId,
int  stationId 
)
private

Convert FairMCPoint to CbmLitMCPoint.

Parameters
[in]fairPointPointer to FairMCPoint to be converted.
[out]litPointPointer to output CbmLitMCPoint.
[in]refIdReference index of the MC point.

Definition at line 236 of file CbmLitMCTrackCreator.cxx.

References fMCTracks, CbmMCDataArray::Get(), CbmMCTrack::GetPdgCode(), CbmLitMCPoint::SetQ(), CbmLitMCPoint::SetRefId(), and CbmLitMCPoint::SetStationId().

Referenced by AddPoints().

◆ FillStationMaps()

◆ GetNofTracks()

Int_t CbmLitMCTrackCreator::GetNofTracks ( ) const
inline

Return number of tracks.

Returns
Number of tracks.

Definition at line 83 of file CbmLitMCTrackCreator.h.

References fLitMCTracks.

◆ GetTrack()

const CbmLitMCTrack& CbmLitMCTrackCreator::GetTrack ( int  mcEventId,
int  mcId 
) const
inline

◆ Instance()

CbmLitMCTrackCreator * CbmLitMCTrackCreator::Instance ( )
static

◆ MuchPointCoordinatesAndMomentumToLitMCPoint()

◆ MvdPointCoordinatesAndMomentumToLitMCPoint()

◆ operator=()

CbmLitMCTrackCreator CbmLitMCTrackCreator::operator= ( const CbmLitMCTrackCreator )
private

◆ ReadDataBranches()

void CbmLitMCTrackCreator::ReadDataBranches ( )
private

◆ StsPointCoordinatesAndMomentumToLitMCPoint()

◆ TrackExists()

bool CbmLitMCTrackCreator::TrackExists ( int  mcEventId,
int  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 64 of file CbmLitMCTrackCreator.h.

References fLitMCTracks.

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

◆ TrdPointCoordinatesAndMomentumToLitMCPoint()

Member Data Documentation

◆ fDigiMan

CbmDigiManager* CbmLitMCTrackCreator::fDigiMan
private

Definition at line 152 of file CbmLitMCTrackCreator.h.

Referenced by AddRichHits(), and ReadDataBranches().

◆ fLitMCTracks

std::map<std::pair<int, int>, CbmLitMCTrack> CbmLitMCTrackCreator::fLitMCTracks
private

◆ fMCTracks

CbmMCDataArray* CbmLitMCTrackCreator::fMCTracks
private

◆ fMuchPoints

CbmMCDataArray* CbmLitMCTrackCreator::fMuchPoints
private

Definition at line 148 of file CbmLitMCTrackCreator.h.

Referenced by Create(), FillStationMaps(), and ReadDataBranches().

◆ fMuchStationsMap

std::map<std::pair<int, int>, int> CbmLitMCTrackCreator::fMuchStationsMap
private

Definition at line 162 of file CbmLitMCTrackCreator.h.

Referenced by AddPoints(), and FillStationMaps().

◆ fMvdPoints

CbmMCDataArray* CbmLitMCTrackCreator::fMvdPoints
private

Definition at line 145 of file CbmLitMCTrackCreator.h.

Referenced by Create(), FillStationMaps(), and ReadDataBranches().

◆ fMvdStationsMap

std::map<std::pair<int, int>, int> CbmLitMCTrackCreator::fMvdStationsMap
private

Definition at line 159 of file CbmLitMCTrackCreator.h.

Referenced by AddPoints(), and FillStationMaps().

◆ fRichHits

TClonesArray* CbmLitMCTrackCreator::fRichHits
private

Definition at line 151 of file CbmLitMCTrackCreator.h.

Referenced by AddRichHits(), and ReadDataBranches().

◆ fRichPoints

CbmMCDataArray* CbmLitMCTrackCreator::fRichPoints
private

Definition at line 150 of file CbmLitMCTrackCreator.h.

Referenced by AddRichHits(), AddRingParameters(), Create(), and ReadDataBranches().

◆ fStsPoints

CbmMCDataArray* CbmLitMCTrackCreator::fStsPoints
private

Definition at line 146 of file CbmLitMCTrackCreator.h.

Referenced by Create(), FillStationMaps(), and ReadDataBranches().

◆ fStsStationsMap

std::map<std::pair<int, int>, int> CbmLitMCTrackCreator::fStsStationsMap
private

Definition at line 160 of file CbmLitMCTrackCreator.h.

Referenced by AddPoints(), and FillStationMaps().

◆ fTauFit

CbmRichRingFitterEllipseTau* CbmLitMCTrackCreator::fTauFit
private

Definition at line 164 of file CbmLitMCTrackCreator.h.

Referenced by AddRingParameters(), and CbmLitMCTrackCreator().

◆ fTofPoints

CbmMCDataArray* CbmLitMCTrackCreator::fTofPoints
private

Definition at line 149 of file CbmLitMCTrackCreator.h.

Referenced by Create(), and ReadDataBranches().

◆ fTrdPoints

CbmMCDataArray* CbmLitMCTrackCreator::fTrdPoints
private

Definition at line 147 of file CbmLitMCTrackCreator.h.

Referenced by Create(), FillStationMaps(), and ReadDataBranches().

◆ fTrdStationsMap

std::map<std::pair<int, int>, int> CbmLitMCTrackCreator::fTrdStationsMap
private

Definition at line 161 of file CbmLitMCTrackCreator.h.

Referenced by AddPoints(), and FillStationMaps().


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