11 #include "FairRootManager.h"
20 fTotalTracksNo = temp->
GetNpa();
22 for (
int i = 0;
i < fTotalTracksNo;
i++) {
24 TParticlePDG* pdg_part = fPDG->GetParticle(particle->
GetPdg());
26 if (pdg_part) { charge = pdg_part->Charge() / 3.0; }
27 NicaMCTrack* target_track = (NicaMCTrack*) fTracks->ConstructedAt(
i);
29 target_track->SetPrimary(kTRUE);
31 target_track->SetPrimary(kFALSE);
33 target_track->SetID(
i);
34 target_track->SetCharge(charge);
36 target_track->GetLink()->Clear();
37 target_track->GetLink()->SetLink(0,
i);
38 target_track->GetMomentum()->SetPxPyPzE(
39 particle->
Px(), particle->
Py(), particle->
Pz(), particle->
E());
40 target_track->GetFreezoutPosition()->SetXYZT(
41 particle->
X(), particle->
Y(), particle->
Z(), particle->
T());
42 target_track->SetStatus(particle->
GetStatus());
43 target_track->SetEvent(
this);
48 NicaMCEvent::Clear(opt);
49 if (fSource) fSource->Clear(opt);
53 : NicaMCEvent(other) {}
64 FairRootManager* manager = FairRootManager::Instance();
65 if (manager->CheckBranch(
"UEvent.")) {
return kTRUE; }