]>
Commit | Line | Data |
---|---|---|
e2bafbbc | 1 | // |
e0baff8c | 2 | // Class AliRsnCutSet |
3 | // | |
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. | |
8 | // | |
9 | // author: M. Vala (martin.vala@cern.ch) | |
e2bafbbc | 10 | // |
11 | ||
06351446 | 12 | #ifndef ALIRSNCUTSET_H |
13 | #define ALIRSNCUTSET_H | |
14 | ||
15 | #include <TNamed.h> | |
16 | #include <TObjArray.h> | |
17 | ||
32992791 | 18 | #include "AliRsnTarget.h" |
61f275d1 | 19 | #include "AliRsnListOutput.h" |
06351446 | 20 | |
b63357a0 | 21 | class AliRsnCut; |
06351446 | 22 | class AliRsnDaughter; |
23 | class AliRsnExpression; | |
24 | class AliRsnPairParticle; | |
e2bafbbc | 25 | class AliRsnEvent; |
06351446 | 26 | |
2a1c7696 | 27 | class AliRsnCutSet : public AliRsnTarget { |
28 | public: | |
8ecf98c4 | 29 | |
2a1c7696 | 30 | AliRsnCutSet(); |
31 | AliRsnCutSet(const char *name, RSNTARGET target); | |
32 | AliRsnCutSet(const AliRsnCutSet ©); | |
61f275d1 | 33 | AliRsnCutSet &operator=(const AliRsnCutSet ©); |
2a1c7696 | 34 | ~AliRsnCutSet(); |
06351446 | 35 | |
61f275d1 | 36 | void AddCut(AliRsnCut *cut); |
37 | Bool_t Init(TList *list); | |
06351446 | 38 | |
2a1c7696 | 39 | void ShowCuts() const; |
40 | Int_t GetIndexByCutName(TString s); | |
41 | Bool_t Passed(); | |
42 | Bool_t IsValidScheme(); | |
b63357a0 | 43 | TString ShowCutScheme() const; |
2a1c7696 | 44 | Int_t TestExpression(TString opt = "short"); |
45 | void PrintSetInfo(); | |
06351446 | 46 | |
2a1c7696 | 47 | Bool_t IsSelected(TObject *object); |
06351446 | 48 | |
2a1c7696 | 49 | void SetBoolValue(Bool_t theValue, Int_t index) { fBoolValues[index] = theValue; } |
50 | Bool_t GetBoolValue(Int_t index) const { return fBoolValues[index]; } | |
06351446 | 51 | |
2a1c7696 | 52 | void SetCutScheme(const char *theValue); |
53 | TString GetCutScheme() const { return fCutScheme; } | |
06351446 | 54 | |
2a1c7696 | 55 | void SetCutSchemeIndexed(TString theValue); |
56 | TString GetCutSchemeIndexed(); | |
06351446 | 57 | |
2a1c7696 | 58 | TObjArray *GetCuts() { return &fCuts; } |
06351446 | 59 | |
61f275d1 | 60 | void AddMonitor(AliRsnListOutput *mon); |
61 | TObjArray *GetMonitorOutput() { return fMonitors; } | |
62 | void SetMonitorOutput(TObjArray *monitors) { fMonitors = monitors; } | |
8ecf98c4 | 63 | |
61f275d1 | 64 | private: |
06351446 | 65 | |
61f275d1 | 66 | TObjArray fCuts; // array of cuts |
67 | Int_t fNumOfCuts; // number of cuts | |
68 | TString fCutScheme; // cut scheme | |
69 | TString fCutSchemeIndexed; // cut scheme indexed | |
aec0ec32 | 70 | |
61f275d1 | 71 | Bool_t *fBoolValues; //[fNumOfCuts] |
72 | Bool_t fIsScheme; // is scheme | |
06351446 | 73 | |
61f275d1 | 74 | AliRsnExpression *fExpression; // pointer to AliRsnExpression |
75 | TObjArray *fMonitors; // array of monitor object | |
76 | ClassDef(AliRsnCutSet, 2) // ROOT dictionary | |
06351446 | 77 | }; |
78 | ||
79 | #endif |