]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/FLOW/AliFlowTasks/AliFlowTrackCuts.h
patches, patches
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowTasks / AliFlowTrackCuts.h
index 02ba91b23a3aa02dab8b6ce1f5b8789be033b0af..37b8fab62197673fcf484403c7ec35ebd293b092 100644 (file)
@@ -118,10 +118,11 @@ class AliFlowTrackCuts : public AliFlowTrackSimpleCuts {
   
   void SetMCevent(AliMCEvent* mcEvent) {fMCevent=mcEvent;}
   AliMCEvent* GetMCevent() const {return fMCevent;}
-  void SetEvent(AliVEvent* event) {fEvent=event;}
+  void SetEvent(AliVEvent* event) {Clear();fEvent=event;}
   AliVEvent* GetEvent() const {return fEvent;}
   Int_t GetNumberOfInputObjects() const;
   TObject* GetInputObject(Int_t i);
+  void Clear(Option_t* option="");
 
  protected:
   Bool_t PassesCuts(AliVParticle* track);
@@ -168,7 +169,7 @@ class AliFlowTrackCuts : public AliFlowTrackSimpleCuts {
   AliVEvent* fEvent;                 //!placeholder for current event
   AliESDtrack fTPCtrack;             //!placeholder for TPC only track to avoid new/delete on every track
 
-  ClassDef(AliFlowTrackCuts,3)
+  ClassDef(AliFlowTrackCuts,4)
 };
 
 #endif