9#include <FairMCEventHeader.h>
11#include <Hal/DataManager.h>
13#include <Hal/EventInterface.h>
20 Hal::DataManager* manager = Hal::DataManager::Instance();
23 manager->Register(
"CbmAnaTreeMcSourceContainer.",
"CbmAnaTreeMcSourceContainer.",
fDataContainer, write);
26 manager->Register(
"CbmMCTrack",
"Tracks",
fCbmMCtracks, write);
27 manager->Register(
"MCEventHeader",
"Tracks",
fEventHeader, write);
67 return TLorentzVector(header->GetVertexX(), header->GetVertexY(), header->GetVertexZ(), 0);
76 return TLorentzVector(0, 0, 0, 0);
83 Hal::DataManager* manager = Hal::DataManager::Instance();
89 fCbmMCtracks = (TClonesArray*) manager->GetObject(
"CbmMCTrack");
90 fEventHeader = (FairMCEventHeader*) manager->GetObject(
"MCEventHeader");
91 fStsMatches = (TClonesArray*) manager->GetObject(
"StsTrackMatch");
92 fTofMatches = (TClonesArray*) manager->GetObject(
"TofHitMatch");
93 fTrdMatches = (TClonesArray*) manager->GetObject(
"TrdTrackMatch");
94 fRichMatches = (TClonesArray*) manager->GetObject(
"RichRingMatch");
95 fMuchMatches = (TClonesArray*) manager->GetObject(
"MuchTrackMatch");
AnalysisTree::EventHeader * GetEventHeader() const
AnalysisTree::Particles * GetParticles() const
virtual TLorentzVector GetVertexError() const
virtual void FillTrackInterface(Hal::TrackInterface *track, Int_t index)
TClonesArray * fCbmMCtracks
void Register(Bool_t write)
virtual TLorentzVector GetVertex() const
FairMCEventHeader * fEventHeader
TClonesArray * fRichMatches
virtual Int_t GetTotalTrackNo() const
virtual TObject * GetRawTrackPointer(Int_t index) const
CbmAnaTreeMcSourceContainer * fDataContainer
TClonesArray * fTrdMatches
virtual ~HalCbmMCEventInterface()
HalCbm::DataFormat fFormatType
TClonesArray * fStsMatches
TClonesArray * fMuchMatches
virtual void ConnectToTreeInternal(eMode mode)
TClonesArray * fTofMatches