CbmRoot
AnalysisCuts.h
Go to the documentation of this file.
1 #ifndef ANALYSISCUTS_H
2 #define ANALYSISCUTS_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
7 #include <TNamed.h>
8 
9 class TList;
10 class TCollection;
11 
12 class AnalysisCuts : public TNamed {
13 public:
15  AnalysisCuts(const char* name, const char* title);
16  AnalysisCuts(const AnalysisCuts& obj);
17  AnalysisCuts& operator=(const AnalysisCuts& obj);
18  virtual ~AnalysisCuts() { ; }
19  virtual Bool_t IsSelected(Double_t* const /*values*/) { return kFALSE; }
20  virtual Bool_t IsSelected(TObject* /* obj */) { return kFALSE; }
21  virtual Bool_t IsSelected(TList* /* list */) = 0;
22  virtual void Init() { ; }
23  virtual void SetFilterMask(UInt_t mask) { fFilterMask = mask; }
24  virtual UInt_t GetFilterMask() const { return fFilterMask; }
25  virtual void SetSelected(Bool_t dec) { fSelected = dec; }
26  virtual UInt_t Selected() const { return fSelected; }
27 
28  virtual Long64_t Merge(TCollection* /* list */) { return 0; }
29  virtual TList* GetOutput() { return 0; }
30  virtual TObject* GetStatistics(Option_t*) const { return 0; }
31 
32 private:
33  UInt_t
34  fFilterMask; // Mask to use one of the previous decisions inside a filter
35  Bool_t fSelected; // Final decision on selction
36  ClassDef(AnalysisCuts, 1); // Base class for filter decisions
37 };
38 
39 #endif
AnalysisCuts::SetFilterMask
virtual void SetFilterMask(UInt_t mask)
Definition: AnalysisCuts.h:23
AnalysisCuts::fSelected
Bool_t fSelected
Definition: AnalysisCuts.h:35
AnalysisCuts::GetStatistics
virtual TObject * GetStatistics(Option_t *) const
Definition: AnalysisCuts.h:30
AnalysisCuts::AnalysisCuts
AnalysisCuts()
AnalysisCuts::ClassDef
ClassDef(AnalysisCuts, 1)
AnalysisCuts::IsSelected
virtual Bool_t IsSelected(TList *)=0
AnalysisCuts::Merge
virtual Long64_t Merge(TCollection *)
Definition: AnalysisCuts.h:28
AnalysisCuts::SetSelected
virtual void SetSelected(Bool_t dec)
Definition: AnalysisCuts.h:25
AnalysisCuts::Init
virtual void Init()
Definition: AnalysisCuts.h:22
AnalysisCuts::IsSelected
virtual Bool_t IsSelected(TObject *)
Definition: AnalysisCuts.h:20
AnalysisCuts::GetFilterMask
virtual UInt_t GetFilterMask() const
Definition: AnalysisCuts.h:24
AnalysisCuts::~AnalysisCuts
virtual ~AnalysisCuts()
Definition: AnalysisCuts.h:18
AnalysisCuts::IsSelected
virtual Bool_t IsSelected(Double_t *const)
Definition: AnalysisCuts.h:19
AnalysisCuts::Selected
virtual UInt_t Selected() const
Definition: AnalysisCuts.h:26
AnalysisCuts::GetOutput
virtual TList * GetOutput()
Definition: AnalysisCuts.h:29
AnalysisCuts::fFilterMask
UInt_t fFilterMask
Definition: AnalysisCuts.h:34
AnalysisCuts::operator=
AnalysisCuts & operator=(const AnalysisCuts &obj)
Definition: AnalysisCuts.cxx:30
AnalysisCuts
Definition: AnalysisCuts.h:12