]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - CORRFW/AliCFManager.h
PWGPP-71 - enabling more detailed data debugging information for bad sector/timebin...
[u/mrichter/AliRoot.git] / CORRFW / AliCFManager.h
index 7d76ab11b391202826a25c14895e808a2ffc492a..379c6c2656a1ad82580a94cb008ddba0a87273ad 100644 (file)
@@ -66,17 +66,21 @@ class AliCFManager : public TNamed
   //pass the pointer to the correction container
   virtual void SetEventContainer(AliCFContainer* c) {
     fEvtContainer=c; 
-    fNStepEvt=c->GetNStep();
+    SetNStepEvent(c->GetNStep());
     AliWarning(Form("Please dont forget to set the cut list (event empty) for the %d event-selection step requested",fNStepEvt));
   }
   
   //pass the pointer to the correction container
   virtual void SetParticleContainer(AliCFContainer* c) {
     fPartContainer=c; 
-    fNStepPart=c->GetNStep();
+    SetNStepParticle(c->GetNStep());
     AliWarning(Form("Please dont forget to set the cut list (even empty) for the %d particle-selection step requested",fNStepPart));
   }
   
+  //Set the number of steps (already done if you have defined your containers)
+  virtual void SetNStepEvent   (Int_t nstep) {fNStepEvt  = nstep;}
+  virtual void SetNStepParticle(Int_t nstep) {fNStepPart = nstep;}
+
   //Setter for event-level selection cut list at selection step isel
   virtual void SetEventCutsList(Int_t isel, TObjArray* array) ;
   
@@ -101,7 +105,9 @@ class AliCFManager : public TNamed
 
   //Pass the pointer to obj to the selections (used to access MC/rec global
   //event info when requested
-  virtual void SetEventInfo(TObject *obj) const;
+  virtual void  SetMCEventInfo(const TObject *obj) const;
+  virtual void SetRecEventInfo(const TObject *obj) const;
+  virtual void SetEventInfo(TObject*) const {AliError("DEPRECATED !! -> use SetMCEventInfo or SetRecEventInfo instead");}
 
   //Cut Checkers: by default *all* the cuts of a given input list is checked 
   //(.and. of all cuts), but the user can select a subsample of cuts in the 
@@ -113,8 +119,8 @@ class AliCFManager : public TNamed
  private:
   
   //number of steps
-  Int_t fNStepEvt; 
-  Int_t fNStepPart; 
+  Int_t fNStepEvt;  // number of steps in event selection
+  Int_t fNStepPart; // number of steps in particle selection
   //the correction grid
   AliCFContainer *fEvtContainer; //ptr to Evt-Level correction container
   //the correction grid