4 // This is the front-end for cut management and checking.
5 // It must be prepared by adding all required single cuts,
6 // and then with a logical expression which combines all cuts
7 // with the "AND", "OR" and "NOT" operators.
9 // author: M. Vala (martin.vala@cern.ch)
12 #ifndef ALIRSNCUTSET_H
13 #define ALIRSNCUTSET_H
16 #include <TObjArray.h>
18 #include "AliRsnTarget.h"
19 #include "AliRsnCut.h"
22 class AliRsnExpression;
23 class AliRsnPairParticle;
26 class AliRsnCutSet : public AliRsnTarget
31 AliRsnCutSet(const char *name, RSNTARGET target);
32 AliRsnCutSet(const AliRsnCutSet ©);
33 AliRsnCutSet& operator=(const AliRsnCutSet& copy);
36 void AddCut(AliRsnCut* cut);
38 void ShowCuts() const;
39 Int_t GetIndexByCutName(TString s);
41 Bool_t IsValidScheme();
42 TString ShowCutScheme();
43 Int_t TestExpression(TString opt="short");
46 Bool_t IsSelected(TObject *object);
48 void SetBoolValue(Bool_t theValue,Int_t index) { fBoolValues[index] = theValue; }
49 Bool_t GetBoolValue(Int_t index) const { return fBoolValues[index]; }
51 void SetCutScheme(const char *theValue);
52 TString GetCutScheme() const { return fCutScheme; }
54 void SetCutSchemeIndexed(TString theValue);
55 TString GetCutSchemeIndexed();
57 TObjArray *GetCuts() { return &fCuts; }
61 TObjArray fCuts; // array of cuts
62 Int_t fNumOfCuts; // number of cuts
63 TString fCutScheme; // cut scheme
64 TString fCutSchemeIndexed; // cut scheme indexed
66 Bool_t *fBoolValues; //[fNumOfCuts]
67 Bool_t fIsScheme; // is scheme
69 AliRsnExpression *fExpression; // pointer to AliRsnExpression
71 ClassDef(AliRsnCutSet,1) // ROOT dictionary