1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
16 // Cut container class for the ALICE HFE group
17 // Serves also as interface to the correction Framework
18 // Provides a set of standard cuts
27 #ifndef ALIHFEEXTRACUTS_H
28 #include "AliHFEextraCuts.h"
38 class AliHFEcuts : public TObject{
43 kStepMCInAcceptance = 2,
45 kStepRecKineITSTPC = 4,
52 kEventStepGenerated = 0,
53 kEventStepReconstructed = 1
58 kNcutStepsESDtrack = 6
59 }; // Additional constants
62 AliHFEcuts(const AliHFEcuts &c);
63 AliHFEcuts &operator=(const AliHFEcuts &c);
66 void Initialize(AliCFManager *cfm);
69 Bool_t CheckParticleCuts(CutStep_t step, TObject *o);
71 TList *GetQAhistograms() const { return fHistQA; }
74 void SetAOD() { SetBit(kAOD, kTRUE); }
75 void SetESD() { SetBit(kAOD, kFALSE); }
76 void UnsetDebugMode() { SetBit(kDebugMode, kFALSE); }
77 Bool_t IsInDebugMode() const { return TestBit(kDebugMode); };
78 Bool_t IsAOD() const { return TestBit(kAOD); }
79 Bool_t IsESD() const { return !TestBit(kAOD); }
82 Bool_t IsRequireITSpixel() const { return TESTBIT(fRequirements, kITSPixel); };
83 Bool_t IsRequireMaxImpactParam() const { return TESTBIT(fRequirements, kMaxImpactParam); };
84 Bool_t IsRequirePrimary() const { return TESTBIT(fRequirements, kPrimary); };
85 Bool_t IsRequireProdVertex() const { return TESTBIT(fRequirements, kProductionVertex); };
86 Bool_t IsRequireSigmaToVertex() const { return TESTBIT(fRequirements, kSigmaToVertex); };
87 Bool_t IsRequireDCAToVertex() const {return TESTBIT(fRequirements, kDCAToVertex); };
90 inline void SetCutITSpixel(UChar_t cut);
91 void SetCheckITSLayerStatus(Bool_t checkITSLayerStatus) { fCheckITSLayerStatus = checkITSLayerStatus; }
92 void SetMinNClustersTPC(UChar_t minClustersTPC) { fMinClustersTPC = minClustersTPC; }
93 void SetMinNTrackletsTRD(UChar_t minNtrackletsTRD) { fMinTrackletsTRD = minNtrackletsTRD; }
94 void SetMaxChi2perClusterTPC(Double_t chi2) { fMaxChi2clusterTPC = chi2; };
95 inline void SetMaxImpactParam(Double_t radial, Double_t z);
96 void SetMinRatioTPCclusters(Double_t minRatioTPC) { fMinClusterRatioTPC = minRatioTPC; };
97 void SetPtRange(Double_t ptmin, Double_t ptmax){fPtRange[0] = ptmin; fPtRange[1] = ptmax;};
98 inline void SetProductionVertex(Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax);
99 inline void SetSigmaToVertex(Double_t sig);
101 inline void CreateStandardCuts();
104 void SetRequireDCAToVertex() { SETBIT(fRequirements, kDCAToVertex); };
105 void SetRequireIsPrimary() { SETBIT(fRequirements, kPrimary); };
106 void SetRequireITSPixel() { SETBIT(fRequirements, kITSPixel); }
107 void SetRequireProdVertex() { SETBIT(fRequirements, kProductionVertex); };
108 void SetRequireSigmaToVertex() { SETBIT(fRequirements, kSigmaToVertex); };
110 void SetDebugLevel(Int_t level) { fDebugLevel = level; };
111 Int_t GetDebugLevel() const { return fDebugLevel; };
115 kDebugMode = BIT(14),
120 kProductionVertex = 1,
126 void SetParticleGenCutList();
127 void SetAcceptanceCutList();
128 void SetRecKineITSTPCCutList();
129 void SetRecPrimaryCutList();
130 void SetHFElectronITSCuts();
131 void SetHFElectronTRDCuts();
132 void SetEventCutList(Int_t istep);
134 ULong64_t fRequirements; // Bitmap for requirements
135 Double_t fDCAtoVtx[2]; // DCA to Vertex
136 Double_t fProdVtx[4]; // Production Vertex
137 Double_t fPtRange[2]; // pt range
138 UChar_t fMinClustersTPC; // Min.Number of TPC clusters
139 UChar_t fMinTrackletsTRD; // Min. Number of TRD tracklets
140 UChar_t fCutITSPixel; // Cut on ITS pixel
141 Bool_t fCheckITSLayerStatus; // Check ITS layer status
142 Double_t fMaxChi2clusterTPC; // Max Chi2 per TPC cluster
143 Double_t fMinClusterRatioTPC; // Min. Ratio findable / found TPC clusters
144 Double_t fSigmaToVtx; // Sigma To Vertex
146 TList *fHistQA; //! QA Histograms
147 TObjArray *fCutList; //! List of cut objects(Correction Framework Manager)
149 Int_t fDebugLevel; // Debug Level
151 ClassDef(AliHFEcuts, 1) // Container for HFE cuts
154 //__________________________________________________________________
155 void AliHFEcuts::SetProductionVertex(Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax){
156 // Set the production vertex constraint
157 SetRequireProdVertex();
164 //__________________________________________________________________
165 void AliHFEcuts::SetSigmaToVertex(Double_t sig){
166 SetRequireSigmaToVertex();
170 //__________________________________________________________________
171 void AliHFEcuts::SetMaxImpactParam(Double_t radial, Double_t z){
172 SetRequireDCAToVertex();
173 fDCAtoVtx[0] = radial;
177 //__________________________________________________________________
178 void AliHFEcuts::SetCutITSpixel(UChar_t cut){
179 SetRequireITSPixel();
183 //__________________________________________________________________
184 void AliHFEcuts::CreateStandardCuts(){
186 // Standard Cuts defined by the HFE Group
188 SetRequireProdVertex();
193 SetRequireDCAToVertex();
196 fMinClustersTPC = 50;
197 fMinTrackletsTRD = 0;
198 SetRequireITSPixel();
199 fCutITSPixel = AliHFEextraCuts::kFirst;
200 fMaxChi2clusterTPC = 3.5;
201 fMinClusterRatioTPC = 0.6;