]>
Commit | Line | Data |
---|---|---|
b2a297fa | 1 | #ifndef ALIDIELECTRONVARCUTS_H |
2 | #define ALIDIELECTRONVARCUTS_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 AliDielectronVarCuts # | |
10 | //# Provide cuts for all variables handled in # | |
11 | //# AliDielectronVarManager # | |
12 | //# # | |
13 | //# Authors: # | |
14 | //# Anton Andronic, GSI / A.Andronic@gsi.de # | |
15 | //# Ionut C. Arsene, GSI / I.C.Arsene@gsi.de # | |
16 | //# Julian Book, Uni Ffm / Julian.Book@cern.ch # | |
17 | //# Frederick Kramer, Uni Ffm, / Frederick.Kramer@cern.ch # | |
18 | //# Magnus Mager, CERN / Magnus.Mager@cern.ch # | |
19 | //# WooJin J. Park, GSI / W.J.Park@gsi.de # | |
20 | //# Jens Wiechula, Uni HD / Jens.Wiechula@cern.ch # | |
21 | //# # | |
22 | //############################################################# | |
23 | ||
24 | #include <Rtypes.h> | |
25 | #include <AliAnalysisCuts.h> | |
26 | #include <AliDielectronVarManager.h> | |
27 | ||
28 | class AliDielectronVarCuts : public AliAnalysisCuts { | |
29 | public: | |
e123f993 | 30 | // Whether all cut criteria have to be fulfilled of just any |
31 | enum CutType { kAll=0, kAny }; | |
32 | ||
b2a297fa | 33 | AliDielectronVarCuts(); |
34 | AliDielectronVarCuts(const char* name, const char* title); | |
35 | virtual ~AliDielectronVarCuts(); | |
36 | //TODO: make copy constructor and assignment operator public | |
e123f993 | 37 | void AddCut(AliDielectronVarManager::ValueTypes type, Double_t min, Double_t max); |
38 | ||
39 | // setters | |
40 | void SetCutOnMCtruth(Bool_t mc=kTRUE) { fCutOnMCtruth=mc; } | |
41 | void SetCutType(CutType type) { fCutType=type; } | |
42 | ||
43 | // getters | |
44 | Bool_t GetCutOnMCtruth() const { return fCutOnMCtruth; } | |
45 | CutType GetCutType() const { return fCutType; } | |
b2a297fa | 46 | |
e123f993 | 47 | |
b2a297fa | 48 | // |
49 | //Analysis cuts interface | |
50 | // | |
51 | virtual Bool_t IsSelected(TObject* track); | |
52 | virtual Bool_t IsSelected(TList* /* list */ ) {return kFALSE;} | |
53 | ||
54 | // virtual Bool_t IsSelected(TObject* track, TObject */*event*/=0); | |
55 | // virtual Long64_t Merge(TCollection* /* list */) { return 0; } | |
56 | ||
57 | // | |
58 | // Cut information | |
59 | // | |
60 | virtual UInt_t GetSelectedCutsMask() const { return fSelectedCutsMask; } | |
b2a297fa | 61 | |
78091935 | 62 | virtual void Print(const Option_t* option = "") const; |
63 | ||
b2a297fa | 64 | private: |
65 | ||
e123f993 | 66 | UShort_t fActiveCuts[AliDielectronVarManager::kNMaxValues]; // list of activated cuts |
67 | UShort_t fNActiveCuts; // number of acive cuts | |
68 | UInt_t fActiveCutsMask; // mask of active cuts | |
b2a297fa | 69 | |
70 | UInt_t fSelectedCutsMask; // Maks of selected cuts, is available after calling IsSelected | |
e123f993 | 71 | |
72 | Bool_t fCutOnMCtruth; // whether to cut on the MC truth of the particle | |
73 | ||
74 | CutType fCutType; // type of the cut: any, all | |
b2a297fa | 75 | |
76 | Double_t fCutMin[AliDielectronVarManager::kNMaxValues]; // minimum values for the cuts | |
77 | Double_t fCutMax[AliDielectronVarManager::kNMaxValues]; // maximum values for the cuts | |
b2a297fa | 78 | |
79 | AliDielectronVarCuts(const AliDielectronVarCuts &c); | |
80 | AliDielectronVarCuts &operator=(const AliDielectronVarCuts &c); | |
81 | ||
e123f993 | 82 | ClassDef(AliDielectronVarCuts,2) //Cut class providing cuts to all infomation available for the AliVParticle interface |
b2a297fa | 83 | }; |
84 | ||
85 | ||
86 | // | |
87 | //Inline functions | |
88 | // | |
b2a297fa | 89 | |
90 | #endif | |
91 |