/[PAMELA software]/PamCut/PamCutBase/PamCutBase.cpp
ViewVC logotype

Diff of /PamCut/PamCutBase/PamCutBase.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by pam-fi, Wed Dec 2 13:28:53 2009 UTC revision 1.7 by pam-fi, Thu Mar 18 14:41:13 2010 UTC
# Line 34  void PamCut::Process(PamLevel2 *events, Line 34  void PamCut::Process(PamLevel2 *events,
34    
35    // Check the range of events to analyze    // Check the range of events to analyze
36    if (firstEvent > lastEvent) {    if (firstEvent > lastEvent) {
37        Finalize();
38      return;      return;
39    }    }
40    if (firstEvent < 0 || lastEvent > events->GetEntries() - 1) {    if (firstEvent < 0 || lastEvent > events->GetEntries() - 1) {
41        Finalize();
42      return;      return;
43    }    }
44    
45    // Apply the cuts    // Apply the cuts
46    for (ULong_t iev = firstEvent; iev < lastEvent + 1; iev++) {    for (_currEv = firstEvent; _currEv < lastEvent + 1; _currEv++) {
47      events->GetEntry(iev);      events->GetEntry(_currEv);
48      ApplyCut(events);      ApplyCut(events);
49    }    }
50    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.23