24 Bool_t EventPtMaxCut::Pass(
Event* event) {
26 for (
int i = 0; i <
event->GetTotalTrackNo(); i++) {
27 Track* track =
event->GetTrack(i);
28 Double_t px = track->
GetPx();
29 Double_t py = track->
GetPy();
30 if ((px * px + py * py) > pt_max) { pt_max = px * px + py * py; }
32 SetValue(TMath::Sqrt(pt_max), 0);