|
BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
|
#include <BmnMCTrackCreator.h>
Public Member Functions | |
| virtual | ~BmnMCTrackCreator () |
| Destructor. | |
| void | Create () |
| Creates array of BmnMCTracks for current event. | |
| Bool_t | TrackExists (Int_t mcId) const |
| Check whether a track exists in the array. | |
| const BmnMCTrack & | GetTrack (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. | |
| Bool_t | TrackExists (Int_t mcId) const |
| Check whether a track exists in the array. | |
| const BmnMCTrack & | GetTrack (int mcId) const |
| Return BmnMCTrack by its index. | |
| Int_t | GetNofTracks () const |
| Return number of tracks. | |
Static Public Member Functions | |
| static BmnMCTrackCreator * | Instance (TString gem, TString sil, TString csc) |
| Singleton instance. | |
| static BmnMCTrackCreator * | Instance (TString gem, TString sil, TString csc) |
| Singleton instance. | |
Private Member Functions | |
| BmnMCTrackCreator (TString gem, TString sil, TString csc) | |
| Constructor. | |
| void | ReadDataBranches () |
| Read data branches. | |
| void | AddPoints (DetectorId detId, const TClonesArray *array) |
| Add MC points from a certain detector. | |
| void | AddRichHits () |
| Calculate and set number of RICH hits for MC track. | |
| void | AddRingParameters () |
| Fit Rich MC points using ellipse fitter and fill ellipse parameters. | |
| void | FairMCPointToBmnMCPoint (const FairMCPoint *fairPoint, BmnMCPoint *bmnPoint, int refId, int stationId) |
| Convert FairMCPoint to BmnMCPoint. | |
| void | FairMCPointCoordinatesAndMomentumToBmnMCPoint (const FairMCPoint *fairPoint, BmnMCPoint *bmnPoint) |
| BmnMCTrackCreator (TString gem, TString sil, TString csc) | |
| Constructor. | |
| void | ReadDataBranches () |
| Read data branches. | |
| void | AddPoints (DetectorId detId, const TClonesArray *array) |
| Add MC points from a certain detector. | |
| void | AddRichHits () |
| Calculate and set number of RICH hits for MC track. | |
| void | AddRingParameters () |
| Fit Rich MC points using ellipse fitter and fill ellipse parameters. | |
| void | FairMCPointToBmnMCPoint (const FairMCPoint *fairPoint, BmnMCPoint *bmnPoint, int refId, int stationId) |
| Convert FairMCPoint to BmnMCPoint. | |
| void | FairMCPointCoordinatesAndMomentumToBmnMCPoint (const FairMCPoint *fairPoint, BmnMCPoint *bmnPoint) |
Definition at line 34 of file BmnMCTrackCreator.h.
Definition at line 27 of file BmnMCTrackCreator.cxx.
References fCscDetector, fCscPoints, fDchPoints, fGemDetector, fGemPoints, fMCTracks, fNSiliconStations, fSilDetector, fSilPoints, fTof400Points, fTof700Points, and ReadDataBranches().
Referenced by Instance().
|
virtual |
Definition at line 43 of file BmnMCTrackCreator.cxx.
References fCscDetector, fGemDetector, and fSilDetector.
|
virtual |
|
private |
| [in] | detId | Detector identificator. |
| [in] | array | Array of FairMCPoint. |
Definition at line 94 of file BmnMCTrackCreator.cxx.
References FairMCPointCoordinatesAndMomentumToBmnMCPoint(), FairMCPointToBmnMCPoint(), fBmnMCTracks, fCscDetector, fGemDetector, fNCscStations, fNGemStations, fNSiliconStations, fSilDetector, kCSC, kDCH, kGEM, kSILICON, kSSD, kTOF, and kTOF1.
Referenced by Create().
|
private |
| [in] | detId | Detector identificator. |
| [in] | array | Array of FairMCPoint. |
|
private |
|
private |
|
private |
|
private |
| void BmnMCTrackCreator::Create | ( | ) |
Has to be executed in Exec() function of the task.
Definition at line 56 of file BmnMCTrackCreator.cxx.
References AddPoints(), fBmnMCTracks, fCscDetector, fCscPoints, fDchPoints, fGemDetector, fGemPoints, fNCscStations, fNGemStations, fNSiliconStations, fSilDetector, fSilPoints, fSsdPoints, fTof400Points, fTof700Points, kCSC, kDCH, kGEM, kSILICON, kSSD, kTOF, and kTOF1.
| void BmnMCTrackCreator::Create | ( | ) |
Has to be executed in Exec() function of the task.
|
private |
Definition at line 145 of file BmnMCTrackCreator.cxx.
References BmnMCPoint::SetPxIn(), BmnMCPoint::SetPxOut(), BmnMCPoint::SetPyIn(), BmnMCPoint::SetPyOut(), BmnMCPoint::SetPzIn(), BmnMCPoint::SetPzOut(), BmnMCPoint::SetXIn(), BmnMCPoint::SetXOut(), BmnMCPoint::SetYIn(), BmnMCPoint::SetYOut(), BmnMCPoint::SetZIn(), and BmnMCPoint::SetZOut().
Referenced by AddPoints().
|
private |
References fBmnMCTracks, fCscDetector, fCscPoints, fDchPoints, fGemDetector, fGemPoints, fMCTracks, fNCscStations, fNGemStations, fNSiliconStations, fSilDetector, fSilPoints, fSsdPoints, fTof400Points, and fTof700Points.
|
private |
| [in] | fairPoint | Pointer to FairMCPoint to be converted. |
| [out] | bmnPoint | Pointer to output BmnMCPoint. |
| [in] | refId | Reference index of the MC point. |
| [in] | stationId | Index of the station of the MC point. |
Definition at line 129 of file BmnMCTrackCreator.cxx.
References TParticlePDG::Charge(), fMCTracks, TDatabasePDG::GetParticle(), CbmMCTrack::GetPdgCode(), TDatabasePDG::Instance(), BmnMCPoint::SetQ(), BmnMCPoint::SetRefId(), and BmnMCPoint::SetStationId().
Referenced by AddPoints().
|
private |
| [in] | fairPoint | Pointer to FairMCPoint to be converted. |
| [out] | bmnPoint | Pointer to output BmnMCPoint. |
| [in] | refId | Reference index of the MC point. |
| [in] | stationId | Index of the station of the MC point. |
|
inline |
Definition at line 93 of file BmnMCTrackCreator.h.
References fBmnMCTracks.
|
inline |
Definition at line 93 of file BmnMCTrackCreator.h.
References fBmnMCTracks.
|
inline |
| [in] | mcId | MC index of track. |
Definition at line 83 of file BmnMCTrackCreator.h.
References fBmnMCTracks, and TrackExists().
|
inline |
| [in] | mcId | MC index of track. |
Definition at line 83 of file BmnMCTrackCreator.h.
References fBmnMCTracks, and TrackExists().
|
static |
Definition at line 50 of file BmnMCTrackCreator.cxx.
References BmnMCTrackCreator().
|
static |
|
private |
Definition at line 81 of file BmnMCTrackCreator.cxx.
References fCscPoints, fDchPoints, fGemPoints, fMCTracks, fSilPoints, fSsdPoints, fTof400Points, and fTof700Points.
Referenced by BmnMCTrackCreator().
|
private |
| [in] | mcId | MC index of track. |
Definition at line 64 of file BmnMCTrackCreator.h.
References fBmnMCTracks.
Referenced by GetTrack().
| [in] | mcId | MC index of track. |
Definition at line 64 of file BmnMCTrackCreator.h.
References fBmnMCTracks.
|
private |
Definition at line 146 of file BmnMCTrackCreator.h.
Referenced by AddPoints(), Create(), FairMCPointCoordinatesAndMomentumToBmnMCPoint(), GetNofTracks(), GetTrack(), and TrackExists().
|
private |
Definition at line 150 of file BmnMCTrackCreator.h.
Referenced by BmnMCTrackCreator(), ~BmnMCTrackCreator(), AddPoints(), Create(), and FairMCPointCoordinatesAndMomentumToBmnMCPoint().
|
private |
Definition at line 137 of file BmnMCTrackCreator.h.
Referenced by BmnMCTrackCreator(), Create(), FairMCPointCoordinatesAndMomentumToBmnMCPoint(), and ReadDataBranches().
|
private |
Definition at line 138 of file BmnMCTrackCreator.h.
Referenced by BmnMCTrackCreator(), Create(), FairMCPointCoordinatesAndMomentumToBmnMCPoint(), and ReadDataBranches().
|
private |
Definition at line 148 of file BmnMCTrackCreator.h.
Referenced by BmnMCTrackCreator(), ~BmnMCTrackCreator(), AddPoints(), Create(), and FairMCPointCoordinatesAndMomentumToBmnMCPoint().
|
private |
Definition at line 134 of file BmnMCTrackCreator.h.
Referenced by BmnMCTrackCreator(), Create(), FairMCPointCoordinatesAndMomentumToBmnMCPoint(), and ReadDataBranches().
|
private |
Definition at line 131 of file BmnMCTrackCreator.h.
Referenced by BmnMCTrackCreator(), FairMCPointCoordinatesAndMomentumToBmnMCPoint(), FairMCPointToBmnMCPoint(), and ReadDataBranches().
|
private |
Definition at line 142 of file BmnMCTrackCreator.h.
Referenced by AddPoints(), Create(), and FairMCPointCoordinatesAndMomentumToBmnMCPoint().
|
private |
Definition at line 141 of file BmnMCTrackCreator.h.
Referenced by AddPoints(), Create(), and FairMCPointCoordinatesAndMomentumToBmnMCPoint().
|
private |
Definition at line 140 of file BmnMCTrackCreator.h.
Referenced by BmnMCTrackCreator(), AddPoints(), Create(), and FairMCPointCoordinatesAndMomentumToBmnMCPoint().
|
private |
Definition at line 149 of file BmnMCTrackCreator.h.
Referenced by BmnMCTrackCreator(), ~BmnMCTrackCreator(), AddPoints(), Create(), and FairMCPointCoordinatesAndMomentumToBmnMCPoint().
|
private |
Definition at line 132 of file BmnMCTrackCreator.h.
Referenced by BmnMCTrackCreator(), Create(), FairMCPointCoordinatesAndMomentumToBmnMCPoint(), and ReadDataBranches().
|
private |
Definition at line 133 of file BmnMCTrackCreator.h.
Referenced by Create(), FairMCPointCoordinatesAndMomentumToBmnMCPoint(), and ReadDataBranches().
|
private |
Definition at line 135 of file BmnMCTrackCreator.h.
Referenced by BmnMCTrackCreator(), Create(), FairMCPointCoordinatesAndMomentumToBmnMCPoint(), and ReadDataBranches().
|
private |
Definition at line 136 of file BmnMCTrackCreator.h.
Referenced by BmnMCTrackCreator(), Create(), FairMCPointCoordinatesAndMomentumToBmnMCPoint(), and ReadDataBranches().