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,
44 kStepRecKineITSTPC = 3,
50 kEventStepGenerated = 0,
51 kEventStepReconstructed = 1
56 }; // Additional constants
59 AliHFEcuts(const AliHFEcuts &c);
60 AliHFEcuts &operator=(const AliHFEcuts &c);
63 void Initialize(AliCFManager *cfm);
66 Bool_t CheckParticleCuts(CutStep_t step, TObject *o);
68 TList *GetQAhistograms() const { return fHistQA; }
71 void SetEventInfo(TObject *ev);
72 void UnsetDebugMode() { SetBit(kDebugMode, kFALSE); }
73 Bool_t IsInDebugMode() const { return TestBit(kDebugMode); };
76 Bool_t IsRequireITSpixel() const { return TESTBIT(fRequirements, kITSPixel); };
77 Bool_t IsRequireMaxImpactParam() const { return TESTBIT(fRequirements, kMaxImpactParam); };
78 Bool_t IsRequirePrimary() const { return TESTBIT(fRequirements, kPrimary); };
79 Bool_t IsRequireProdVertex() const { return TESTBIT(fRequirements, kProductionVertex); };
80 Bool_t IsRequireSigmaToVertex() const { return TESTBIT(fRequirements, kSigmaToVertex); };
81 Bool_t IsRequireDCAToVertex() const {return TESTBIT(fRequirements, kDCAToVertex); };
84 inline void SetCutITSpixel(UChar_t cut);
85 void SetCheckITSLayerStatus(Bool_t checkITSLayerStatus) { fCheckITSLayerStatus = checkITSLayerStatus; }
86 void SetMinNClustersTPC(UChar_t minClustersTPC) { fMinClustersTPC = minClustersTPC; }
87 void SetMinNTrackletsTRD(UChar_t minNtrackletsTRD) { fMinTrackletsTRD = minNtrackletsTRD; }
88 void SetMaxChi2perClusterTPC(Double_t chi2) { fMaxChi2clusterTPC = chi2; };
89 inline void SetMaxImpactParam(Double_t radial, Double_t z);
90 void SetMinRatioTPCclusters(Double_t minRatioTPC) { fMinClusterRatioTPC = minRatioTPC; };
91 void SetPtRange(Double_t ptmin, Double_t ptmax){fPtRange[0] = ptmin; fPtRange[1] = ptmax;};
92 inline void SetProductionVertex(Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax);
93 inline void SetSigmaToVertex(Double_t sig);
95 inline void CreateStandardCuts();
98 void SetRequireDCAToVertex() { SETBIT(fRequirements, kDCAToVertex); };
99 void SetRequireIsPrimary() { SETBIT(fRequirements, kPrimary); };
100 void SetRequireITSPixel() { SETBIT(fRequirements, kITSPixel); }
101 void SetRequireProdVertex() { SETBIT(fRequirements, kProductionVertex); };
102 void SetRequireSigmaToVertex() { SETBIT(fRequirements, kSigmaToVertex); };
104 void SetDebugLevel(Int_t level) { fDebugLevel = level; };
105 Int_t GetDebugLevel() const { return fDebugLevel; };
113 kProductionVertex = 1,
119 void SetParticleGenCutList();
120 void SetAcceptanceCutList();
121 void SetRecKineITSTPCCutList();
122 void SetRecPrimaryCutList();
123 void SetHFElectronITSCuts();
124 void SetHFElectronTRDCuts();
125 void SetEventCutList(Int_t istep);
127 ULong64_t fRequirements; // Bitmap for requirements
128 Double_t fDCAtoVtx[2]; // DCA to Vertex
129 Double_t fProdVtx[4]; // Production Vertex
130 Double_t fPtRange[2]; // pt range
131 UChar_t fMinClustersTPC; // Min.Number of TPC clusters
132 UChar_t fMinTrackletsTRD; // Min. Number of TRD tracklets
133 UChar_t fCutITSPixel; // Cut on ITS pixel
134 Bool_t fCheckITSLayerStatus; // Check ITS layer status
135 Double_t fMaxChi2clusterTPC; // Max Chi2 per TPC cluster
136 Double_t fMinClusterRatioTPC; // Min. Ratio findable / found TPC clusters
137 Double_t fSigmaToVtx; // Sigma To Vertex
139 TList *fHistQA; //! QA Histograms
140 TObjArray *fCutList; //! List of cut objects(Correction Framework Manager)
142 Int_t fDebugLevel; // Debug Level
144 ClassDef(AliHFEcuts, 1) // Container for HFE cuts
147 //__________________________________________________________________
148 void AliHFEcuts::SetProductionVertex(Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax){
149 // Set the production vertex constraint
150 SetRequireProdVertex();
157 //__________________________________________________________________
158 void AliHFEcuts::SetSigmaToVertex(Double_t sig){
159 SetRequireSigmaToVertex();
163 //__________________________________________________________________
164 void AliHFEcuts::SetMaxImpactParam(Double_t radial, Double_t z){
165 SetRequireDCAToVertex();
166 fDCAtoVtx[0] = radial;
170 //__________________________________________________________________
171 void AliHFEcuts::SetCutITSpixel(UChar_t cut){
172 SetRequireITSPixel();
176 //__________________________________________________________________
177 void AliHFEcuts::CreateStandardCuts(){
179 // Standard Cuts defined by the HFE Group
181 SetRequireProdVertex();
186 SetRequireDCAToVertex();
189 fMinClustersTPC = 50;
190 fMinTrackletsTRD = 0;
191 SetRequireITSPixel();
192 fCutITSPixel = AliHFEextraCuts::kFirst;
193 fMaxChi2clusterTPC = 3.5;
194 fMinClusterRatioTPC = 0.6;