]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/RESONANCES/AliRsnCutSet.h
Package revised - New AnalysisTask's - Added more functions
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnCutSet.h
CommitLineData
e2bafbbc 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * See cxx source for full Copyright notice *
4 **************************************************************************/
aec0ec32 5
e2bafbbc 6//
7// class AliRsnCutSet
8// Combination of simple cuts
9//
10
06351446 11#ifndef ALIRSNCUTSET_H
12#define ALIRSNCUTSET_H
13
14#include <TNamed.h>
15#include <TObjArray.h>
16
17#include "AliRsnCut.h"
06351446 18
19class AliRsnDaughter;
20class AliRsnExpression;
21class AliRsnPairParticle;
e2bafbbc 22class AliRsnEvent;
06351446 23
24class AliRsnCutSet : public TNamed
25{
aec0ec32 26 public:
8ecf98c4 27
06351446 28 AliRsnCutSet();
aec0ec32 29 AliRsnCutSet(TString name);
30 AliRsnCutSet(const AliRsnCutSet &copy);
06351446 31 ~AliRsnCutSet();
32
aec0ec32 33 void AddCut(AliRsnCut* cut);
06351446 34
35 void ShowCuts();
aec0ec32 36 Int_t GetIndexByCutName(TString s);
06351446 37 Bool_t Passed();
38 Bool_t IsValidScheme();
39 TString ShowCutScheme();
aec0ec32 40 Int_t TestExpression(TString opt="short");
06351446 41 void PrintSetInfo();
42
aec0ec32 43 Bool_t IsSelected(AliRsnCut::ETarget type, AliRsnDaughter *daughter);
44 Bool_t IsSelected(AliRsnCut::ETarget type, AliRsnPairParticle *pair);
45 Bool_t IsSelected(AliRsnCut::ETarget type, AliRsnEvent *event);
06351446 46
aec0ec32 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
aec0ec32 50 void SetCutScheme(const TString& theValue);
06351446 51 TString GetCutScheme() const { return fCutScheme; }
52
aec0ec32 53 void SetCutSchemeIndexed(TString theValue);
06351446 54 TString GetCutSchemeIndexed();
55
56 TObjArray *GetCuts() { return &fCuts; }
57
aec0ec32 58 private:
8ecf98c4 59
60 AliRsnCutSet& operator=(const AliRsnCutSet& /*copy*/) {return (*this);}
61
06351446 62 TObjArray fCuts; // array of cuts
63 Int_t fNumOfCuts; // number of cuts
64 TString fCutScheme; // cut scheme
65 TString fCutSchemeIndexed; // cut scheme indexed
66
e2bafbbc 67 Bool_t *fBoolValues; //[fNumOfCuts]
06351446 68 Bool_t fIsScheme; // is scheme
aec0ec32 69
e2bafbbc 70 AliRsnExpression *fExpression; // pointer to AliRsnExpression
06351446 71
aec0ec32 72 ClassDef(AliRsnCutSet,1); // ROOT dictionary
06351446 73};
74
75#endif