]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/RESONANCES/AliRsnCutMgr.h
Modifications in analysis tasks for train
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnCutMgr.h
index 5f3b2a6d22865c7b7dd2dcef6b4df58db80b6f51..1ca6b4776b08612e370a98485ff3f627431cd63e 100644 (file)
@@ -1,44 +1,44 @@
-#ifndef ALIRSNMVCUTMGR_H
-#define ALIRSNMVCUTMGR_H
-
-#include "TNamed.h"
-#include "TObjArray.h"
+//
+// Class AliRsnCutMgr
+//
+// The cut manager: contains a complete set of cut definitions
+// to be applied to all possible targets (one for each target),
+// in order to ease the set-up procedure of cuts and allow to
+// pass them at once to each object which must use them
+//
+// author: Martin Vala (martin.vala@cern.ch)
+//
+
+#ifndef ALIRSNCUTMGR_H
+#define ALIRSNCUTMGR_H
+
+#include <TNamed.h>
 
 #include "AliRsnCut.h"
-// #include "AliRsnCutSet.h"
-// class AliRsnCut;
+
 class AliRsnCutSet;
 
-/**
-  @author Martin Vala <Martin.Vala@cern.ch>
-*/
 class AliRsnCutMgr : public TNamed
 {
   public:
-    
-//     enum ECutSetType {
-//       kParticle= 0,
-//       kPair,
-//       kMixEventFinderCut,
-//       kLastCutSetIndex
-//     };
-
-    
+
     AliRsnCutMgr();
     AliRsnCutMgr(const char *name, const char* title);
-
     ~AliRsnCutMgr();
-    
-    void SetCutSet(AliRsnCut::ECutSetType type,AliRsnCutSet* cutset);
-    AliRsnCutSet* GetCutSet(AliRsnCut::ECutSetType type) { return fCutSets[type];}
-    
-    Bool_t IsSelected(AliRsnCut::ECutSetType type,TObject *obj);
+
+    void          SetCutSet(AliRsnCut::ETarget type, AliRsnCutSet*const cutset);
+    AliRsnCutSet* GetCutSet(AliRsnCut::ETarget type) {return fCutSets[type];}
+    Bool_t        IsSelected(AliRsnCut::ETarget type, TObject *const obj);
 
   private:
 
-    AliRsnCutSet *fCutSets[AliRsnCut::kLastCutSetIndex];
-    
-    ClassDef ( AliRsnCutMgr,1 );
+    // dummy constructors
+    AliRsnCutMgr(const AliRsnCutMgr &cut) : TNamed(cut) {}
+    AliRsnCutMgr& operator=(const AliRsnCutMgr& /*cut*/) {return *this;}
+
+    AliRsnCutSet *fCutSets[AliRsnCut::kLastCutTarget];  // cut definitions for all targets
+
+    ClassDef(AliRsnCutMgr, 1)  // dictionary
 };
 
 #endif