Go to the documentation of this file.
7 #ifndef CBMLITMCTRACKCREATOR_H_
8 #define CBMLITMCTRACKCREATOR_H_
56 void Create(Int_t eventNum);
65 return (
fLitMCTracks.count(std::make_pair(mcEventId, mcId)) > 0) ? true
76 return fLitMCTracks.find(std::make_pair(mcEventId, mcId))->second;
CbmMCDataArray * fTrdPoints
virtual ~CbmLitMCTrackCreator()
Destructor.
CbmDigiManager * fDigiMan
Here the ring is fitted with Taubin algorithm from A. Ayriyan, G. Ososkov, N. Chernov.
void AddRichHits(Int_t iEvent)
Calculate and set number of RICH hits for MC track.
CbmMCDataArray * fRichPoints
void TrdPointCoordinatesAndMomentumToLitMCPoint(const CbmTrdPoint *trdPoint, CbmLitMCPoint *litPoint)
Creates CbmLitMCTrack objects.
static CbmLitMCTrackCreator * Instance()
Singleton instance.
const CbmLitMCTrack & GetTrack(int mcEventId, int mcId) const
Return CbmLitMCTrack by its index.
Access to a MC data branch for time-based analysis.
CbmMCDataArray * fStsPoints
std::map< std::pair< int, int >, int > fTrdStationsMap
void StsPointCoordinatesAndMomentumToLitMCPoint(const CbmStsPoint *stsPoint, CbmLitMCPoint *litPoint)
CbmRichRingFitterEllipseTau * fTauFit
CbmMCDataArray * fTofPoints
CbmLitMCTrackCreator(const CbmLitMCTrackCreator &)
void MuchPointCoordinatesAndMomentumToLitMCPoint(const CbmMuchPoint *muchPoint, CbmLitMCPoint *litPoint)
void AddRingParameters(Int_t iEvent)
Fit Rich MC points using ellipse fitter and fill ellipse parameters.
void MvdPointCoordinatesAndMomentumToLitMCPoint(const CbmMvdPoint *mvdPoint, CbmLitMCPoint *litPoint)
void AddPoints(ECbmModuleId detId, CbmMCDataArray *array, Int_t iEvent)
Add MC points from a certain detector.
std::map< std::pair< int, int >, int > fMuchStationsMap
bool TrackExists(int mcEventId, int mcId) const
Check whether a track exists in the array.
std::map< std::pair< int, int >, int > fMvdStationsMap
void FairMCPointToLitMCPoint(const FairMCPoint *fairPoint, CbmLitMCPoint *litPoint, int eventId, int refId, int stationId)
Convert FairMCPoint to CbmLitMCPoint.
void ReadDataBranches()
Read data branches.
CbmMCDataArray * fMCTracks
CbmLitMCTrackCreator operator=(const CbmLitMCTrackCreator &)
std::map< std::pair< int, int >, CbmLitMCTrack > fLitMCTracks
Int_t GetNofTracks() const
Return number of tracks.
CbmMCDataArray * fMvdPoints
CbmMCDataArray * fMuchPoints
void Create(Int_t eventNum)
Creates array of CbmLitMCTracks for current event.
CbmLitMCTrackCreator()
Constructor.
void FillStationMaps(Int_t iEvent)
Fill maps for MC points to station id.
std::map< std::pair< int, int >, int > fStsStationsMap
void FairMCPointCoordinatesAndMomentumToLitMCPoint(const FairMCPoint *fairPoint, CbmLitMCPoint *litPoint)