CbmRoot
PairAnalysisCutGroup.h
Go to the documentation of this file.
1 #ifndef PAIRANALYSISCUTGROUP_H
2 #define PAIRANALYSISCUTGROUP_H
3 
4 /* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
7 //#################################################################
8 //# #
9 //# Class PairAnalysisCutGroup #
10 //# PairAnalysis Group of cuts #
11 //# #
12 //# Authors: #
13 //# Julian Book, Uni Ffm / Julian.Book@cern.ch #
14 //# #
15 //#################################################################
16 
17 #include <TList.h>
18 
19 #include "AnalysisCuts.h"
20 
21 class TCollection;
22 
24 
25 public:
26  enum TruthValues { kCompAND = kTRUE, kCompOR = kFALSE };
27 
28  PairAnalysisCutGroup(Bool_t compOperator = kCompOR);
29  PairAnalysisCutGroup(const char* name,
30  const char* title,
31  Bool_t compOperator = kCompOR);
32 
33  virtual ~PairAnalysisCutGroup();
34 
35  //Analysis cuts interface
36  //
37  virtual void Init();
38  virtual Bool_t IsSelected(Double_t* const values);
39  virtual Bool_t IsSelected(TObject* track);
40  virtual Bool_t IsSelected(TList* /* list */) { return kFALSE; }
41 
42  void AddCut(AnalysisCuts* fCut);
43  void SetCompOperator(Bool_t compOperator);
44 
45  virtual void Print(const Option_t* option = "") const;
46 
47 
48 private:
49  TList fCutGroupList; // List of the different cuts
50  Bool_t fCompOperator; // Determines whether the cuts are AND/OR compared
51 
53  1) // Collect cuts in groups with logical comparators
54 };
55 
56 #endif
PairAnalysisCutGroup::SetCompOperator
void SetCompOperator(Bool_t compOperator)
Definition: PairAnalysisCutGroup.cxx:100
PairAnalysisCutGroup::TruthValues
TruthValues
Definition: PairAnalysisCutGroup.h:26
PairAnalysisCutGroup
Definition: PairAnalysisCutGroup.h:23
PairAnalysisCutGroup::AddCut
void AddCut(AnalysisCuts *fCut)
Definition: PairAnalysisCutGroup.cxx:91
PairAnalysisCutGroup::~PairAnalysisCutGroup
virtual ~PairAnalysisCutGroup()
Definition: PairAnalysisCutGroup.cxx:37
PairAnalysisCutGroup::Init
virtual void Init()
Definition: PairAnalysisCutGroup.cxx:44
AnalysisCuts::ClassDef
ClassDef(AnalysisCuts, 1)
PairAnalysisCutGroup::fCutGroupList
TList fCutGroupList
Definition: PairAnalysisCutGroup.h:49
PairAnalysisCutGroup::Print
virtual void Print(const Option_t *option="") const
Definition: PairAnalysisCutGroup.cxx:109
PairAnalysisCutGroup::IsSelected
virtual Bool_t IsSelected(TList *)
Definition: PairAnalysisCutGroup.h:40
PairAnalysisCutGroup::kCompOR
@ kCompOR
Definition: PairAnalysisCutGroup.h:26
PairAnalysisCutGroup::PairAnalysisCutGroup
PairAnalysisCutGroup(Bool_t compOperator=kCompOR)
PairAnalysisCutGroup::fCompOperator
Bool_t fCompOperator
Definition: PairAnalysisCutGroup.h:50
PairAnalysisCutGroup::IsSelected
virtual Bool_t IsSelected(Double_t *const values)
Definition: PairAnalysisCutGroup.cxx:52
PairAnalysisCutGroup::kCompAND
@ kCompAND
Definition: PairAnalysisCutGroup.h:26
AnalysisCuts
Definition: AnalysisCuts.h:12
AnalysisCuts.h