/[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.1 by pam-fi, Wed May 27 13:30:09 2009 UTC revision 1.2 by pam-fi, Fri May 29 10:10:28 2009 UTC
# Line 50  void PamCut::Process(PamLevel2 *events, Line 50  void PamCut::Process(PamLevel2 *events,
50    Finalize();    Finalize();
51    
52  }  }
53  void PamCut::Setup(PamLevel2 *events){  void PamCut::Setup(PamLevel2 *events) {
54    _nEv = _nGood = 0;    _nEv = _nGood = 0;
55  }  }
56    
# Line 62  void PamCut::SetName(const char *newName Line 62  void PamCut::SetName(const char *newName
62    _cutName = newName;    _cutName = newName;
63  }  }
64    
65  PamCut& PamCut::operator=(const PamCut &rightValue){  PamCut& PamCut::operator=(const PamCut &rightValue) {
66      _cutName = rightValue._cutName;    _cutName = rightValue._cutName;
67      return *this;    return *this;
68    }  }
69    
70  /* ************************ *  /* ************************ *
71   *     PAMCUTCOLLECTION   *     PAMCUTCOLLECTION
# Line 134  PamCutCollection& PamCutCollection::oper Line 134  PamCutCollection& PamCutCollection::oper
134    return *this;    return *this;
135  }  }
136    
137    void PamCutCollection::Setup(PamLevel2 *events) {
 void PamCutCollection::Setup(PamLevel2 *events){  
138    
139    PamCut::Setup(events);    PamCut::Setup(events);
140    
141    for (unsigned int i = 0; i < GetSize(); i++){    for (unsigned int i = 0; i < GetSize(); i++) {
142      _cuts[i]->Setup(events);      _cuts[i]->Setup(events);
143    }    }
144  }  }
145    
146  void PamCutCollection::Finalize(){  void PamCutCollection::Finalize() {
147    
148     // PamCut::Finalize() is currently void, but in future it could contain something, so it's good to place a call here.    // PamCut::Finalize() is currently void, but in future it could contain something, so it's good to place a call here.
149    PamCut::Finalize();    PamCut::Finalize();
150    
151    for (unsigned int i = 0; i < GetSize(); i++){    for (unsigned int i = 0; i < GetSize(); i++) {
152      _cuts[i]->Finalize();      _cuts[i]->Finalize();
153    }    }
154  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23