You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// check if each event has two lead ions with 557440 (208*5360) GeV of energy
39
+
for (inti=0; i<nEvents; i++)
40
+
{
41
+
auto check=tree->GetEntry(i);
42
+
intcount=0;
43
+
for (intidxMCTrack=0; idxMCTrack<tracks->size(); ++idxMCTrack)
44
+
{
45
+
auto track=tracks->at(idxMCTrack);
46
+
doubleenergy=track.GetEnergy();
47
+
// Check if lead ion track energy is approximately equal to 557440 GeV (a tolerance of 50 MeV is considered, straight equality does not work due to floating point precision)
48
+
if (std::abs(energy-557440) <5e-2&&track.GetPdgCode() ==1000822080)
49
+
{
50
+
count++;
51
+
}
52
+
}
53
+
if (count<2)
54
+
{
55
+
std::cerr << "Event " << i << " has less than 2 lead ions at 557440 GeV\n";
0 commit comments