CbmRoot
AnalysisFilter.h
Go to the documentation of this file.
1 #ifndef ANALYSISFILTER_H
2 #define ANALYSISFILTER_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 <THashList.h>
8 #include <TNamed.h>
9 
10 class AnalysisCuts;
11 class TList;
12 class PairAnalysisHistos;
13 //class THashList;
14 
15 class AnalysisFilter : public TNamed {
16 public:
18  AnalysisFilter(const char* name, const char* title = "AnalysisFilter");
19  AnalysisFilter(const AnalysisFilter& obj);
21  virtual ~AnalysisFilter();
22  virtual UInt_t IsSelected(Double_t* const values);
23  virtual UInt_t IsSelected(TObject* obj);
24  virtual UInt_t IsSelected(TList* obj);
25  virtual Bool_t IsSelected(char* name);
26  virtual void AddCuts(AnalysisCuts* cuts);
27  virtual void Init();
28  TList* GetCuts() const { return fCuts; }
29 
30  THashList* GetHistogramList() { return &fHistos; }
31  void AddHistos(PairAnalysisHistos* histos);
32  //
33  // virtual void Print(Option_t *option="") const;
34 
35 private:
36  TList* fCuts; // List of cuts
37  THashList fHistos; //-> list of histograms
38  ClassDef(AnalysisFilter, 2); // Manager class for filter decisions
39 };
40 
41 #endif
AnalysisFilter::fHistos
THashList fHistos
Definition: AnalysisFilter.h:37
AnalysisFilter::AnalysisFilter
AnalysisFilter()
AnalysisFilter::fCuts
TList * fCuts
Definition: AnalysisFilter.h:36
AnalysisFilter::~AnalysisFilter
virtual ~AnalysisFilter()
Definition: AnalysisFilter.cxx:53
AnalysisFilter::GetCuts
TList * GetCuts() const
Definition: AnalysisFilter.h:28
AnalysisFilter::Init
virtual void Init()
Definition: AnalysisFilter.cxx:151
AnalysisFilter::IsSelected
virtual UInt_t IsSelected(Double_t *const values)
Definition: AnalysisFilter.cxx:103
AnalysisFilter::GetHistogramList
THashList * GetHistogramList()
Definition: AnalysisFilter.h:30
AnalysisFilter::AddHistos
void AddHistos(PairAnalysisHistos *histos)
Definition: AnalysisFilter.cxx:165
AnalysisFilter::ClassDef
ClassDef(AnalysisFilter, 2)
AnalysisFilter
Definition: AnalysisFilter.h:15
AnalysisFilter::operator=
AnalysisFilter & operator=(const AnalysisFilter &other)
Definition: AnalysisFilter.cxx:61
AnalysisFilter::AddCuts
virtual void AddCuts(AnalysisCuts *cuts)
Definition: AnalysisFilter.cxx:160
AnalysisCuts
Definition: AnalysisCuts.h:12