updated macros for Sigma* analysis (M- Venaruzzo)
[u/mrichter/AliRoot.git] / PWGLF / RESONANCES / AliRsnCutSet.h
CommitLineData
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 21class AliRsnCut;
06351446 22class AliRsnDaughter;
23class AliRsnExpression;
24class AliRsnPairParticle;
e2bafbbc 25class AliRsnEvent;
06351446 26
2a1c7696 27class AliRsnCutSet : public AliRsnTarget {
28public:
8ecf98c4 29
2a1c7696 30 AliRsnCutSet();
31 AliRsnCutSet(const char *name, RSNTARGET target);
32 AliRsnCutSet(const AliRsnCutSet &copy);
61f275d1 33 AliRsnCutSet &operator=(const AliRsnCutSet &copy);
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);
547e2d97 61 TObjArray *GetMonitorOutput() { fUseMonitor = kTRUE; return &fMonitors; }
62
63 void UseMonitor(Bool_t useMonitor=kTRUE) { fUseMonitor = useMonitor; }
8ecf98c4 64
61f275d1 65private:
06351446 66
61f275d1 67 TObjArray fCuts; // array of cuts
68 Int_t fNumOfCuts; // number of cuts
69 TString fCutScheme; // cut scheme
70 TString fCutSchemeIndexed; // cut scheme indexed
aec0ec32 71
61f275d1 72 Bool_t *fBoolValues; //[fNumOfCuts]
73 Bool_t fIsScheme; // is scheme
06351446 74
61f275d1 75 AliRsnExpression *fExpression; // pointer to AliRsnExpression
547e2d97 76 TObjArray fMonitors; // array of monitor object
77 Bool_t fUseMonitor; // flag if monitoring should be used
78
79 ClassDef(AliRsnCutSet, 3) // ROOT dictionary
06351446 80};
81
82#endif