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

Creates CbmLitMCTrack objects. More...

#include <CbmLitMCTrackCreator.h>

Collaboration diagram for CbmLitMCTrackCreator:
[legend]

Public Member Functions

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

Static Public Member Functions

static CbmLitMCTrackCreatorInstance ()
 Singleton instance.
 

Private Member Functions

 CbmLitMCTrackCreator ()
 Constructor.
 
void ReadDataBranches ()
 Read data branches.
 
void AddPoints (ECbmModuleId detId, CbmMCDataArray *array, Int_t iEvent)
 Add MC points from a certain detector.
 
void AddRichHits (Int_t iEvent)
 Calculate and set number of RICH hits for MC track.
 
void AddRingParameters (Int_t iEvent)
 Fit Rich MC points using ellipse fitter and fill ellipse parameters.
 
void FairMCPointToLitMCPoint (const FairMCPoint *fairPoint, CbmLitMCPoint *litPoint, int eventId, int refId, int stationId)
 Convert FairMCPoint to CbmLitMCPoint.
 
void FillStationMaps (Int_t iEvent)
 Fill maps for MC points to station id.
 
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 41 of file CbmLitMCTrackCreator.h.

Constructor & Destructor Documentation

◆ CbmLitMCTrackCreator() [1/2]

CbmLitMCTrackCreator::CbmLitMCTrackCreator ( )
private

Constructor.

Definition at line 44 of file CbmLitMCTrackCreator.cxx.

References fTauFit, and ReadDataBranches().

◆ ~CbmLitMCTrackCreator()

CbmLitMCTrackCreator::~CbmLitMCTrackCreator ( )
virtual

Destructor.

Definition at line 66 of file CbmLitMCTrackCreator.cxx.

◆ CbmLitMCTrackCreator() [2/2]

CbmLitMCTrackCreator::CbmLitMCTrackCreator ( const CbmLitMCTrackCreator & )
private

Member Function Documentation

◆ AddPoints()

◆ AddRichHits()

void CbmLitMCTrackCreator::AddRichHits ( Int_t iEvent)
private

Calculate and set number of RICH hits for MC track.

Definition at line 176 of file CbmLitMCTrackCreator.cxx.

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

Referenced by Create().

◆ AddRingParameters()

◆ Create()

void CbmLitMCTrackCreator::Create ( Int_t eventNum)

Creates array of CbmLitMCTracks for current event.

Definition at line 74 of file CbmLitMCTrackCreator.cxx.

References AddPoints(), AddRichHits(), AddRingParameters(), FillStationMaps(), fLitMCTracks, fMuchPoints, fMvdPoints, fRichPoints, fStsPoints, fTofPoints, fTrdPoints, kMuch, kMvd, kRich, kSts, kTof, and kTrd.

Referenced by CbmLitFitQa::Exec(), and CbmLitTrackingQa::Exec().

◆ 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 235 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 90 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 70 of file CbmLitMCTrackCreator.h.

References fLitMCTracks.

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

◆ TrdPointCoordinatesAndMomentumToLitMCPoint()

Member Data Documentation

◆ fDigiMan

CbmDigiManager* CbmLitMCTrackCreator::fDigiMan
private

Definition at line 149 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 145 of file CbmLitMCTrackCreator.h.

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

◆ fMuchStationsMap

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

Definition at line 159 of file CbmLitMCTrackCreator.h.

Referenced by AddPoints(), and FillStationMaps().

◆ fMvdPoints

CbmMCDataArray* CbmLitMCTrackCreator::fMvdPoints
private

Definition at line 142 of file CbmLitMCTrackCreator.h.

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

◆ fMvdStationsMap

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

Definition at line 156 of file CbmLitMCTrackCreator.h.

Referenced by AddPoints(), and FillStationMaps().

◆ fRichHits

TClonesArray* CbmLitMCTrackCreator::fRichHits
private

Definition at line 148 of file CbmLitMCTrackCreator.h.

Referenced by AddRichHits(), and ReadDataBranches().

◆ fRichPoints

CbmMCDataArray* CbmLitMCTrackCreator::fRichPoints
private

Definition at line 147 of file CbmLitMCTrackCreator.h.

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

◆ fStsPoints

CbmMCDataArray* CbmLitMCTrackCreator::fStsPoints
private

Definition at line 143 of file CbmLitMCTrackCreator.h.

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

◆ fStsStationsMap

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

Definition at line 157 of file CbmLitMCTrackCreator.h.

Referenced by AddPoints(), and FillStationMaps().

◆ fTauFit

CbmRichRingFitterEllipseTau* CbmLitMCTrackCreator::fTauFit
private

Definition at line 161 of file CbmLitMCTrackCreator.h.

Referenced by AddRingParameters(), and CbmLitMCTrackCreator().

◆ fTofPoints

CbmMCDataArray* CbmLitMCTrackCreator::fTofPoints
private

Definition at line 146 of file CbmLitMCTrackCreator.h.

Referenced by Create(), and ReadDataBranches().

◆ fTrdPoints

CbmMCDataArray* CbmLitMCTrackCreator::fTrdPoints
private

Definition at line 144 of file CbmLitMCTrackCreator.h.

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

◆ fTrdStationsMap

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

Definition at line 158 of file CbmLitMCTrackCreator.h.

Referenced by AddPoints(), and FillStationMaps().


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