17 for aClu
in sTree.EcalReconstructed:
22 gamma = sTree.MCTrack[mc]
23 if gamma.GetPdgCode()!=22:
continue
24 if gamma.GetMotherId()<0:
continue
26 direction = ROOT.TVector3(aClu.X()-secVertex.X(),aClu.Y()-secVertex.Y(),z_ecal-secVertex.Z())
27 norm = direction.Mag()
28 recoGammas[gamma] = ROOT.TLorentzVector(direction.X()/norm*P,direction.Y()/norm*P,direction.Z()/norm*P,P)
29 sTree.MCTrack[mc].GetStartVertex(V)
30 if len(recoGammas)==0:
return []
31 listOfGammas=list(recoGammas.values())
32 for g1
in range(len(listOfGammas)-1):
33 for g2
in range(g1+1,len(listOfGammas)):
34 pi0 = listOfGammas[g1] + listOfGammas[g2]