Changes for #82873: Module debugging broken (Christian)
[u/mrichter/AliRoot.git] / PWG2 / 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"
06351446 19
b63357a0 20class AliRsnCut;
06351446 21class AliRsnDaughter;
22class AliRsnExpression;
23class AliRsnPairParticle;
e2bafbbc 24class AliRsnEvent;
06351446 25
2a1c7696 26class AliRsnCutSet : public AliRsnTarget {
27public:
8ecf98c4 28
2a1c7696 29 AliRsnCutSet();
30 AliRsnCutSet(const char *name, RSNTARGET target);
31 AliRsnCutSet(const AliRsnCutSet &copy);
32 AliRsnCutSet& operator=(const AliRsnCutSet& copy);
33 ~AliRsnCutSet();
06351446 34
2a1c7696 35 void AddCut(AliRsnCut* cut);
06351446 36
2a1c7696 37 void ShowCuts() const;
38 Int_t GetIndexByCutName(TString s);
39 Bool_t Passed();
40 Bool_t IsValidScheme();
b63357a0 41 TString ShowCutScheme() const;
2a1c7696 42 Int_t TestExpression(TString opt = "short");
43 void PrintSetInfo();
06351446 44
2a1c7696 45 Bool_t IsSelected(TObject *object);
06351446 46
2a1c7696 47 void SetBoolValue(Bool_t theValue, Int_t index) { fBoolValues[index] = theValue; }
48 Bool_t GetBoolValue(Int_t index) const { return fBoolValues[index]; }
06351446 49
2a1c7696 50 void SetCutScheme(const char *theValue);
51 TString GetCutScheme() const { return fCutScheme; }
06351446 52
2a1c7696 53 void SetCutSchemeIndexed(TString theValue);
54 TString GetCutSchemeIndexed();
06351446 55
2a1c7696 56 TObjArray *GetCuts() { return &fCuts; }
06351446 57
2a1c7696 58private:
8ecf98c4 59
2a1c7696 60 TObjArray fCuts; // array of cuts
61 Int_t fNumOfCuts; // number of cuts
62 TString fCutScheme; // cut scheme
63 TString fCutSchemeIndexed; // cut scheme indexed
06351446 64
2a1c7696 65 Bool_t *fBoolValues; //[fNumOfCuts]
66 Bool_t fIsScheme; // is scheme
aec0ec32 67
2a1c7696 68 AliRsnExpression *fExpression; // pointer to AliRsnExpression
06351446 69
2a1c7696 70 ClassDef(AliRsnCutSet, 1) // ROOT dictionary
06351446 71};
72
73#endif