CbmRoot
PairAnalysisPairLegCuts.h
Go to the documentation of this file.
1 #ifndef PAIRANALYSISPAIRLEGCUTS_H
2 #define PAIRANALYSISPAIRLEGCUTS_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 PairAnalysisPairLegCuts #
10 //# Manage Cuts on the legs of the pair #
11 //# #
12 //# Authors: #
13 //# Julian Book, Uni Ffm / Julian.Book@cern.ch #
14 //# #
15 //#############################################################
16 
17 #include "AnalysisCuts.h"
18 #include "AnalysisFilter.h"
19 
21 public:
23 
25  PairAnalysisPairLegCuts(const char* name, const char* title);
26  virtual ~PairAnalysisPairLegCuts() { ; }
27  //TODO: make copy constructor and assignment operator public
28  // and implement them
29 
30  //
31  //AnalysisCuts interface
32  //
33  virtual Bool_t IsSelected(TObject* track);
34  virtual Bool_t IsSelected(TList* /* list */) { return kFALSE; }
35  // virtual Long64_t Merge(TCollection* /* list */) { return 0; }
36 
39 
40  void SetCutType(CutType type) { fCutType = type; }
41  virtual void Print(const Option_t* option = "") const;
42 
43 private:
44  AnalysisFilter fFilterLeg1; // Analysis Filter for leg1
45  AnalysisFilter fFilterLeg2; // Analysis Filter for leg2
46 
47  CutType fCutType = kBothLegs; // Type of the cut
48 
51 
53  1) //Cut class providing cuts for both legs of a pair
54 };
55 
56 #endif
PairAnalysisPairLegCuts::PairAnalysisPairLegCuts
PairAnalysisPairLegCuts(const PairAnalysisPairLegCuts &c)
PairAnalysisPairLegCuts
Definition: PairAnalysisPairLegCuts.h:20
PairAnalysisPairLegCuts::IsSelected
virtual Bool_t IsSelected(TObject *track)
Definition: PairAnalysisPairLegCuts.cxx:50
AnalysisFilter.h
PairAnalysisPairLegCuts::operator=
PairAnalysisPairLegCuts & operator=(const PairAnalysisPairLegCuts &c)
PairAnalysisPairLegCuts::kOneLeg
@ kOneLeg
Definition: PairAnalysisPairLegCuts.h:22
PairAnalysisPairLegCuts::kBothLegs
@ kBothLegs
Definition: PairAnalysisPairLegCuts.h:22
PairAnalysisPairLegCuts::SetCutType
void SetCutType(CutType type)
Definition: PairAnalysisPairLegCuts.h:40
AnalysisCuts::ClassDef
ClassDef(AnalysisCuts, 1)
PairAnalysisPairLegCuts::fCutType
CutType fCutType
Definition: PairAnalysisPairLegCuts.h:47
PairAnalysisPairLegCuts::fFilterLeg1
AnalysisFilter fFilterLeg1
Definition: PairAnalysisPairLegCuts.h:44
PairAnalysisPairLegCuts::IsSelected
virtual Bool_t IsSelected(TList *)
Definition: PairAnalysisPairLegCuts.h:34
PairAnalysisPairLegCuts::kAnyLeg
@ kAnyLeg
Definition: PairAnalysisPairLegCuts.h:22
PairAnalysisPairLegCuts::GetLeg2Filter
AnalysisFilter & GetLeg2Filter()
Definition: PairAnalysisPairLegCuts.h:38
PairAnalysisPairLegCuts::Print
virtual void Print(const Option_t *option="") const
Definition: PairAnalysisPairLegCuts.cxx:105
AnalysisFilter
Definition: AnalysisFilter.h:15
PairAnalysisPairLegCuts::kMixLegs
@ kMixLegs
Definition: PairAnalysisPairLegCuts.h:22
PairAnalysisPairLegCuts::fFilterLeg2
AnalysisFilter fFilterLeg2
Definition: PairAnalysisPairLegCuts.h:45
PairAnalysisPairLegCuts::CutType
CutType
Definition: PairAnalysisPairLegCuts.h:22
PairAnalysisPairLegCuts::~PairAnalysisPairLegCuts
virtual ~PairAnalysisPairLegCuts()
Definition: PairAnalysisPairLegCuts.h:26
AnalysisCuts
Definition: AnalysisCuts.h:12
PairAnalysisPairLegCuts::PairAnalysisPairLegCuts
PairAnalysisPairLegCuts()
PairAnalysisPairLegCuts::GetLeg1Filter
AnalysisFilter & GetLeg1Filter()
Definition: PairAnalysisPairLegCuts.h:37
AnalysisCuts.h