53 Int_t nofMcTracks =
fMcTracks->GetEntriesFast();
54 for (
int i = 0; i < nofMcTracks; i++) {
56 if (mctrack ==
nullptr)
continue;
59 if (mcMotherTrack ==
nullptr)
continue;
64 if (mcGrTrack ==
nullptr)
continue;
69 int EtaConversion = 0;
71 for (
size_t i = 0; i <
Electrons.size(); i++) {
72 for (
size_t j = i + 1; j <
Electrons.size(); j++) {
73 for (
size_t k = j + 1; k <
Electrons.size(); k++) {
74 for (
size_t l = k + 1; l <
Electrons.size(); l++) {
81 if (pdg1 + pdg2 + pdg3 + pdg4 != 0)
continue;
82 if (TMath::Abs(pdg1) != 11 || TMath::Abs(pdg2) != 11 || TMath::Abs(pdg3) != 11 || TMath::Abs(pdg4) != 11)
85 int motherId1 =
Electrons.at(i)->GetMotherId();
86 int motherId2 =
Electrons.at(j)->GetMotherId();
87 int motherId3 =
Electrons.at(k)->GetMotherId();
88 int motherId4 =
Electrons.at(l)->GetMotherId();
90 if (motherId1 == -1 || motherId2 == -1 || motherId3 == -1 || motherId4 == -1)
continue;
102 if (mcMotherPdg1 != 22 || mcMotherPdg2 != 22 || mcMotherPdg3 != 22 || mcMotherPdg4 != 22)
continue;
109 if (grandmotherId1 == -1)
continue;
112 if (grandmotherId1 == grandmotherId2 && grandmotherId1 == grandmotherId3 && grandmotherId1 == grandmotherId4
115 cout <<
"Decay eta -> gamma gamma -> e+e- e+e- detected!\t\t mc "
118 cout <<
"motherids: " << motherId1 <<
"/" << motherId2 <<
"/" << motherId3 <<
"/" << motherId4 << endl;
119 cout <<
"grandmotherid: " << grandmotherId1 <<
"/" << grandmotherId2 <<
"/" << grandmotherId3 <<
"/"
120 << grandmotherId4 << endl;
128 cout <<
"CbmKresSelectGoodEvents, EtaConversion = " << EtaConversion << endl;