]>
Commit | Line | Data |
---|---|---|
c2690925 | 1 | #ifndef ALIHFEEXTRAEVENTCUTS_H |
2 | #define ALIHFEEXTRAEVENTCUTS_H | |
3 | /************************************************************************** | |
4 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * * | |
6 | * Author: The ALICE Off-line Project. * | |
7 | * Contributors are mentioned in the code where appropriate. * | |
8 | * * | |
9 | * Permission to use, copy, modify and distribute this software and its * | |
10 | * documentation strictly for non-commercial purposes is hereby granted * | |
11 | * without fee, provided that the above copyright notice appears in all * | |
12 | * copies and that both the copyright notice and this permission notice * | |
13 | * appear in the supporting documentation. The authors make no claims * | |
14 | * about the suitability of this software for any purpose. It is * | |
15 | * provided "as is" without express or implied warranty. * | |
16 | **************************************************************************/ | |
17 | // Cut on the Event at reconstructed level: for the moment | |
18 | // just the requirements on the number of charged tracks and on | |
19 | // the vertex position and resolution are implemented | |
20 | // The argument of IsSelected member function (passed object) is cast into | |
21 | // an AliESDEvent. In the future may be modified to use AliVEvent interface | |
22 | // and include more cut variables. | |
23 | // The class derives from AliCFCutBase | |
24 | // Author:R.Bailhache | |
25 | ||
26 | ||
27 | #include "AliCFCutBase.h" | |
28 | class TH1F; | |
29 | class TBits; | |
30 | //_____________________________________________________________________________ | |
31 | class AliHFEextraEventCuts: public AliCFCutBase | |
32 | { | |
33 | public : | |
34 | AliHFEextraEventCuts() ; | |
35 | AliHFEextraEventCuts(Char_t* name, Char_t* title) ; | |
36 | AliHFEextraEventCuts(const AliHFEextraEventCuts& c) ; | |
37 | AliHFEextraEventCuts& operator=(const AliHFEextraEventCuts& c) ; | |
38 | ~AliHFEextraEventCuts(); | |
39 | Bool_t IsSelected(TObject* obj); | |
40 | Bool_t IsSelected(TList* /*list*/) {return kTRUE;} | |
41 | ||
42 | void SetRequireVtxCuts(Bool_t vtx=kFALSE) {fRequireVtxCuts=vtx;} // cut values setter | |
43 | void SetVertexZCut(Double_t zMin=-1.e99, Double_t zMax=1.e99) { fVtxZMin=zMin; fVtxZMax=zMax;} // cut values setter | |
44 | ||
45 | void SetVertexNContributors(Int_t min) {fVtxNCtrbMin=min;} | |
46 | void SetUseMixedVertex() {fVtxMixed=kTRUE ;} //default is vertex from tracks | |
47 | ||
48 | Bool_t GetRequireVtxCuts() const {return fRequireVtxCuts;} // cut value getter | |
49 | Double_t GetVertexZMax() const {return fVtxZMax;} // cut values getter | |
50 | Double_t GetVertexZMin() const {return fVtxZMin;} // cut values getter | |
51 | ||
52 | // QA histogram setter | |
53 | // please use indices from the enumeration below | |
54 | void SetHistogramBins(Int_t index, Int_t nbins, Double_t *bins); | |
55 | void SetHistogramBins(Int_t index, Int_t nbins, Double_t xmin, Double_t xmax); | |
56 | enum{kVtxPosZ, | |
57 | kVtxNCtrb, | |
58 | kNCuts, | |
59 | kNStepQA=2 | |
60 | }; | |
61 | ||
62 | protected: | |
63 | void SelectionBitMap(TObject* obj); | |
64 | void AddQAHistograms(TList *qaList) ; | |
65 | void DefineHistograms(); // books histograms | |
66 | void Initialise(); // sets everything to 0 | |
67 | void FillHistograms(TObject* obj, Bool_t b); | |
68 | ||
69 | Bool_t fRequireVtxCuts ; //The type of trigger to be checked | |
70 | Double_t fVtxZMax ; //Z vertex position, maximum value | |
71 | Double_t fVtxZMin ; //Z vertex position, minimum value | |
72 | Int_t fVtxNCtrbMin; //Min number of contributors to vertex | |
73 | Bool_t fVtxMixed; //Flag for use of mixed vertex (primary vertex with track, if not SPD vertex) | |
74 | ||
75 | TBits *fBitMap ; //cut mask | |
76 | ||
77 | TH1F* fhQA[kNCuts][kNStepQA]; // QA Histograms | |
78 | ||
79 | ClassDef(AliHFEextraEventCuts,3); | |
80 | }; | |
81 | ||
82 | #endif |