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 **************************************************************************/
22 #ifndef ALIHFEEXTRACUTS_H
23 #include "AliHFEextraCuts.h"
33 class AliHFEcuts : public TObject{
39 kProductionVertex = 1,
50 kStepMCInAcceptance = 2,
51 kStepRecKineITSTPC = 3,
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 UnsetDebugMode() { SetBit(kDebugMode, kFALSE); }
75 Bool_t IsInDebugMode() const { return TestBit(kDebugMode); };
78 Bool_t IsRequireITSpixel() const { return TESTBIT(fRequirements, kITSPixel); };
79 Bool_t IsRequireMaxImpactParam() const { return TESTBIT(fRequirements, kMaxImpactParam); };
80 Bool_t IsRequirePrimary() const { return TESTBIT(fRequirements, kPrimary); };
81 Bool_t IsRequireProdVertex() const { return TESTBIT(fRequirements, kProductionVertex); };
82 Bool_t IsRequireSigmaToVertex() const { return TESTBIT(fRequirements, kSigmaToVertex); };
83 Bool_t IsRequireDCAToVertex() const {return TESTBIT(fRequirements, kDCAToVertex); };
86 inline void SetCutITSpixel(UChar_t cut);
87 void SetMinNClustersTPC(UChar_t minClustersTPC) { fMinClustersTPC = minClustersTPC; }
88 void SetMinNTrackletsTRD(UChar_t minNtrackletsTRD) { fMinTrackletsTRD = minNtrackletsTRD; }
89 void SetMaxChi2perClusterTPC(Double_t chi2) { fMaxChi2clusterTPC = chi2; };
90 inline void SetMaxImpactParam(Double_t radial, Double_t z);
91 void SetMinRatioTPCclusters(Double_t minRatioTPC) { fMinClusterRatioTPC = minRatioTPC; };
92 void SetPtRange(Double_t ptmin, Double_t ptmax){fPtRange[0] = ptmin; fPtRange[1] = ptmax;};
93 inline void SetProductionVertex(Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax);
94 inline void SetSigmaToVertex(Double_t sig);
96 inline void CreateStandardCuts();
99 void SetRequireDCAToVertex() { SETBIT(fRequirements, kDCAToVertex); };
100 void SetRequireIsPrimary() { SETBIT(fRequirements, kPrimary); };
101 void SetRequireITSPixel() { SETBIT(fRequirements, kITSPixel); }
102 void SetRequireProdVertex() { SETBIT(fRequirements, kProductionVertex); };
103 void SetRequireSigmaToVertex() { SETBIT(fRequirements, kSigmaToVertex); };
105 void SetDebugLevel(Int_t level) { fDebugLevel = level; };
106 Int_t GetDebugLevel() const { return fDebugLevel; };
109 void SetParticleGenCutList();
110 void SetAcceptanceCutList();
111 void SetRecKineITSTPCCutList();
112 void SetRecPrimaryCutList();
113 void SetHFElectronITSCuts();
114 void SetHFElectronTRDCuts();
116 ULong64_t fRequirements; // Bitmap for requirements
117 Double_t fDCAtoVtx[2]; // DCA to Vertex
118 Double_t fProdVtx[4]; // Production Vertex
119 Double_t fPtRange[2]; // pt range
120 UChar_t fMinClustersTPC; // Min.Number of TPC clusters
121 UChar_t fMinTrackletsTRD; // Min. Number of TRD tracklets
122 UChar_t fCutITSPixel; // Cut on ITS pixel
123 Double_t fMaxChi2clusterTPC; // Max Chi2 per TPC cluster
124 Double_t fMinClusterRatioTPC; // Min. Ratio findable / found TPC clusters
125 Double_t fSigmaToVtx; // Sigma To Vertex
127 TList *fHistQA; //! QA Histograms
128 TObjArray *fCutList; //! List of cut objects(Correction Framework Manager)
130 Int_t fDebugLevel; // Debug Level
132 ClassDef(AliHFEcuts, 1) // Container for HFE cuts
135 //__________________________________________________________________
136 void AliHFEcuts::SetProductionVertex(Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax){
137 // Set the production vertex constraint
138 SetRequireProdVertex();
145 //__________________________________________________________________
146 void AliHFEcuts::SetSigmaToVertex(Double_t sig){
147 SetRequireSigmaToVertex();
151 //__________________________________________________________________
152 void AliHFEcuts::SetMaxImpactParam(Double_t radial, Double_t z){
153 SetRequireDCAToVertex();
154 fDCAtoVtx[0] = radial;
158 //__________________________________________________________________
159 void AliHFEcuts::SetCutITSpixel(UChar_t cut){
160 SetRequireITSPixel();
164 //__________________________________________________________________
165 void AliHFEcuts::CreateStandardCuts(){
167 // Standard Cuts defined by the HFE Group
169 SetRequireProdVertex();
174 SetRequireDCAToVertex();
177 fMinClustersTPC = 50;
178 fMinTrackletsTRD = 0;
179 SetRequireITSPixel();
180 fCutITSPixel = AliHFEextraCuts::kFirst;
181 fMaxChi2clusterTPC = 3.5;
182 fMinClusterRatioTPC = 0.6;