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