11 #include "FairRootManager.h"
26 FairMCEventHeader*
event =
31 fVertex->SetXYZT(event->GetX(),
event->GetY(),
event->GetZ(),
event->GetT());
33 fTotalTracksNo =
tracks->GetEntriesFast();
34 fTracks->ExpandCreateFast(fTotalTracksNo);
35 for (
int i = 0;
i <
tracks->GetEntriesFast();
i++) {
37 Double_t charge = CalculateCharge(track->
GetPdgCode());
41 mc->GetLink()->Clear();
42 mc->GetLink()->SetLink(0,
i);
47 : NicaMCEvent(other) {}
50 FairRootManager* manager = FairRootManager::Instance();
51 Int_t header = manager->CheckBranch(
"MCEventHeader.")
52 + manager->CheckBranch(
"EventHeader.");
53 Int_t
tracks = manager->CheckBranch(
"MCTrack");
54 if ((header +
tracks) >= 2) {
return kTRUE; }