]>
Commit | Line | Data |
---|---|---|
809a4336 | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
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 | **************************************************************************/ | |
50685501 | 15 | // |
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 | |
19 | // | |
c2690925 | 20 | #ifndef ALIHFECUTS_H |
21 | #define ALIHFECUTS_H | |
22 | ||
e3fc062d | 23 | #ifndef ROOT_TNamed |
24 | #include <TNamed.h> | |
809a4336 | 25 | #endif |
26 | ||
75d81601 | 27 | #ifndef ALIHFEEXTRACUTS_H |
809a4336 | 28 | #include "AliHFEextraCuts.h" |
29 | #endif | |
30 | ||
31 | class AliCFManager; | |
32 | class AliESDtrack; | |
e17c1f86 | 33 | class AliMCEvent; |
809a4336 | 34 | class AliMCParticle; |
e17c1f86 | 35 | class AliVEvent; |
809a4336 | 36 | |
37 | class TObjArray; | |
38 | class TList; | |
39 | ||
e3fc062d | 40 | class AliHFEcuts : public TNamed{ |
75d81601 | 41 | public: |
3a72645a | 42 | typedef enum{ |
43 | kStepRecNoCut = 0, | |
44 | kStepRecKineITSTPC = 1, | |
45 | kStepRecPrim = 2, | |
46 | kStepHFEcutsITS = 3, | |
9250ffbf | 47 | kStepHFEcutsTOF = 4, |
8c1c76e9 | 48 | kStepHFEcutsTPC = 5, |
49 | kStepHFEcutsTRD = 6, | |
50 | kNcutStepsRecTrack = 7 | |
3a72645a | 51 | } RecoCutStep_t; |
52 | typedef enum{ | |
53 | kStepHFEcutsDca = 0, | |
54 | kNcutStepsDETrack = 1 | |
55 | } DECutStep_t; | |
c2690925 | 56 | typedef enum{ |
57 | kStepHFEcutsSecvtx = 0, | |
58 | kNcutStepsSecvtxTrack = 1 | |
59 | } SecvtxCutStep_t; | |
75d81601 | 60 | typedef enum{ |
61 | kStepMCGenerated = 0, | |
c2690925 | 62 | kStepMCGeneratedZOutNoPileUpCentralityFine = 1, |
3a72645a | 63 | kStepMCGeneratedEventCut = 2, |
64 | kStepMCInAcceptance = 3, | |
65 | kNcutStepsMCTrack = 4 | |
66 | } MCCutStep_t; | |
0792aa82 | 67 | typedef enum{ |
68 | kEventStepGenerated = 0, | |
e3fc062d | 69 | kEventStepRecNoCut = 1, |
3a72645a | 70 | kEventStepRecNoPileUp = 2, |
c2690925 | 71 | kEventStepRecCentralityOk = 3, |
72 | kEventStepZRange = 4, | |
73 | kEventStepReconstructed = 5, | |
74 | kNcutStepsEvent = 6 | |
0792aa82 | 75 | } EventCutStep_t; |
809a4336 | 76 | |
75d81601 | 77 | AliHFEcuts(); |
e3fc062d | 78 | AliHFEcuts(const Char_t *name, const Char_t *title); |
75d81601 | 79 | AliHFEcuts(const AliHFEcuts &c); |
80 | AliHFEcuts &operator=(const AliHFEcuts &c); | |
e3fc062d | 81 | void Copy(TObject &o) const; |
8c1c76e9 | 82 | Long64_t Merge(const TCollection *list); |
75d81601 | 83 | ~AliHFEcuts(); |
809a4336 | 84 | |
75d81601 | 85 | void Initialize(AliCFManager *cfm); |
86 | void Initialize(); | |
809a4336 | 87 | |
3a72645a | 88 | Bool_t CheckParticleCuts(UInt_t step, TObject *o); |
e156c3bb | 89 | Bool_t CheckEventCuts(const char*namestep, TObject *o); |
e17c1f86 | 90 | void SetRecEvent(const AliVEvent *ev); |
76d0b522 | 91 | void SetMCEvent(const AliVEvent *ev); |
75d81601 | 92 | |
93 | TList *GetQAhistograms() const { return fHistQA; } | |
809a4336 | 94 | |
e3fc062d | 95 | void SetQAOn() {SetBit(kDebugMode, kTRUE); }; |
96 | void UnsetQA() {SetBit(kDebugMode, kFALSE); }; | |
97 | Bool_t IsQAOn() const { return TestBit(kDebugMode); }; | |
9bcfd1ab | 98 | void SetAOD() { SetBit(kAOD, kTRUE); } |
99 | void SetESD() { SetBit(kAOD, kFALSE); } | |
9bcfd1ab | 100 | Bool_t IsAOD() const { return TestBit(kAOD); } |
101 | Bool_t IsESD() const { return !TestBit(kAOD); } | |
3a72645a | 102 | |
103 | // Cut Names | |
104 | static const Char_t *MCCutName(UInt_t step){ | |
105 | if(step >= kNcutStepsMCTrack) return fgkUndefined; | |
106 | return fgkMCCutName[step]; | |
107 | }; | |
108 | static const Char_t *RecoCutName(UInt_t step){ | |
109 | if(step >= kNcutStepsRecTrack) return fgkUndefined; | |
110 | return fgkRecoCutName[step]; | |
111 | } | |
112 | static const Char_t *DECutName(UInt_t step){ | |
113 | if(step >= kNcutStepsDETrack) return fgkUndefined; | |
114 | return fgkDECutName[step]; | |
115 | } | |
c2690925 | 116 | static const Char_t *SecvtxCutName(UInt_t step){ |
117 | if(step >= kNcutStepsSecvtxTrack) return fgkUndefined; | |
118 | return fgkSecvtxCutName[step]; | |
119 | } | |
3a72645a | 120 | static const Char_t *EventCutName(UInt_t step){ |
121 | if(step >= kNcutStepsEvent) return fgkUndefined; | |
122 | return fgkEventCutName[step]; | |
123 | } | |
124 | ||
75d81601 | 125 | // Getters |
126 | Bool_t IsRequireITSpixel() const { return TESTBIT(fRequirements, kITSPixel); }; | |
5cd679b7 | 127 | Bool_t IsRequireITSdrift() const { return TESTBIT(fRequirements, kITSDrift); }; |
75d81601 | 128 | Bool_t IsRequireMaxImpactParam() const { return TESTBIT(fRequirements, kMaxImpactParam); }; |
129 | Bool_t IsRequirePrimary() const { return TESTBIT(fRequirements, kPrimary); }; | |
130 | Bool_t IsRequireProdVertex() const { return TESTBIT(fRequirements, kProductionVertex); }; | |
131 | Bool_t IsRequireSigmaToVertex() const { return TESTBIT(fRequirements, kSigmaToVertex); }; | |
132 | Bool_t IsRequireDCAToVertex() const {return TESTBIT(fRequirements, kDCAToVertex); }; | |
faee3b18 | 133 | Bool_t IsRequireKineMCCuts() const {return TESTBIT(fRequirements, kKineMCCuts); }; |
3a72645a | 134 | Double_t GetVertexRange() const {return fVertexRangeZ; }; |
f9f097c0 | 135 | Int_t GetMinTrackletsTRD() const { return fMinTrackletsTRD; } |
63bdf450 | 136 | Bool_t GetUseMixedVertex() const { return fUseMixedVertex;}; |
809a4336 | 137 | |
75d81601 | 138 | // Setters |
139 | inline void SetCutITSpixel(UChar_t cut); | |
5cd679b7 | 140 | inline void SetCutITSdrift(UChar_t cut); |
0792aa82 | 141 | void SetCheckITSLayerStatus(Bool_t checkITSLayerStatus) { fCheckITSLayerStatus = checkITSLayerStatus; } |
75d81601 | 142 | void SetMinNClustersTPC(UChar_t minClustersTPC) { fMinClustersTPC = minClustersTPC; } |
e17c1f86 | 143 | void SetMinNClustersTPCPID(UChar_t minClustersTPC) { fMinClustersTPCPID = minClustersTPC; } |
3a72645a | 144 | void SetMinNClustersITS(UChar_t minClustersITS) { fMinClustersITS = minClustersITS; } |
e17c1f86 | 145 | void SetMinNTrackletsTRD(UChar_t minNtrackletsTRD, Bool_t exact = kFALSE) { fMinTrackletsTRD = minNtrackletsTRD; fTRDtrackletsExact = exact; } |
cedf0381 | 146 | void SetMaxChi2perTrackletTRD(Float_t maxchi2trackletTRD) { fMaxChi2TRD = maxchi2trackletTRD; } |
8c1c76e9 | 147 | void SetMaxChi2perClusterITS(Double_t chi2) { fMaxChi2clusterITS = chi2; }; |
75d81601 | 148 | void SetMaxChi2perClusterTPC(Double_t chi2) { fMaxChi2clusterTPC = chi2; }; |
149 | inline void SetMaxImpactParam(Double_t radial, Double_t z); | |
63bdf450 | 150 | inline void SetIPcutParam(Float_t p0, Float_t p1, Float_t p2, Float_t p3, Bool_t isIPcharge, Bool_t isipsigma, Bool_t isopp); |
75d81601 | 151 | void SetMinRatioTPCclusters(Double_t minRatioTPC) { fMinClusterRatioTPC = minRatioTPC; }; |
152 | void SetPtRange(Double_t ptmin, Double_t ptmax){fPtRange[0] = ptmin; fPtRange[1] = ptmax;}; | |
1c051dd4 | 153 | void SetTOFsignaldxz(Double_t tofsignaldx, Double_t tofsignaldz){fTOFsignaldx = tofsignaldx; fTOFsignaldz = tofsignaldz;}; |
96167a04 | 154 | void SetAODFilterBit(Int_t bit) { fAODFilterBit = bit; }; |
75d81601 | 155 | inline void SetProductionVertex(Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax); |
156 | inline void SetSigmaToVertex(Double_t sig); | |
8c1c76e9 | 157 | inline void SetSigmaToVertexXY(Double_t sig); |
158 | inline void SetSigmaToVertexZ(Double_t sig); | |
76d0b522 | 159 | void SetTPCmodes(UChar_t clusterDef, UChar_t ratioDef) { |
e3ae862b | 160 | fTPCclusterDef= clusterDef; |
161 | fTPCratioDef = ratioDef; | |
162 | } | |
cddc311d | 163 | void SetEtaRange(Double_t etaRange){fEtaRange[0] = -etaRange; fEtaRange[1] = etaRange;}; |
164 | void SetEtaRange(Double_t etamin, Double_t etamax){fEtaRange[0] = etamin; fEtaRange[1] = etamax;}; | |
e3ae862b | 165 | void SetVertexRange(Double_t zrange){fVertexRangeZ = zrange;}; |
c2690925 | 166 | void SetTOFPIDStep(Bool_t tofPidStep) {fTOFPIDStep = tofPidStep;}; |
167 | void SetTOFMISMATCHStep(Bool_t tofMismatchStep) {fTOFMISMATCHStep = tofMismatchStep;}; | |
8c1c76e9 | 168 | void SetTPCPIDCleanUpStep(Bool_t tpcPIDCleanUpStep) {fTPCPIDCLEANUPStep = tpcPIDCleanUpStep;}; |
cedf0381 | 169 | void SetITSpatternCut() { fITSpatternCut = kTRUE; } |
63bdf450 | 170 | inline void SetUseMixedVertex(Bool_t useMixedVertex); |
171 | inline void SetUseSPDVertex(Bool_t useSPDVertex); | |
172 | void SetUseCorrelationVertex() { fUseCorrelationVertex = kTRUE;}; | |
d87a9d29 | 173 | void SetSPDVtxResolutionCut() {fSPDVtxResolution = kTRUE;} |
4437a0d2 | 174 | void SetpApileupCut() { fPApileupCut = kTRUE; } |
e17c1f86 | 175 | void SetFractionOfSharedTPCClusters(Double_t fractionOfSharedTPCClusters) {fFractionOfSharedTPCClusters = fractionOfSharedTPCClusters;}; |
9250ffbf | 176 | void SetMaxImpactParameterRpar(Bool_t maxImpactParameterRpar) { fMaxImpactParameterRpar = maxImpactParameterRpar; }; |
809a4336 | 177 | |
75d81601 | 178 | inline void CreateStandardCuts(); |
809a4336 | 179 | |
75d81601 | 180 | // Requirements |
11ff28c5 | 181 | void SetAdditionalStatusRequirement(Long_t requirement) {fAdditionalStatusRequirement = requirement;} |
67fe7bd0 | 182 | void SetRequireDCAToVertex() { SETBIT(fRequirements, kDCAToVertex); CLRBIT(fRequirements, kSigmaToVertex); }; |
75d81601 | 183 | void SetRequireIsPrimary() { SETBIT(fRequirements, kPrimary); }; |
184 | void SetRequireITSPixel() { SETBIT(fRequirements, kITSPixel); } | |
5cd679b7 | 185 | void SetRequireITSDrift() { SETBIT(fRequirements, kITSDrift); } |
11ff28c5 | 186 | void UnsetRequireITSPixel() { CLRBIT(fRequirements, kITSPixel); } |
75d81601 | 187 | void SetRequireProdVertex() { SETBIT(fRequirements, kProductionVertex); }; |
67fe7bd0 | 188 | void SetRequireSigmaToVertex() { SETBIT(fRequirements, kSigmaToVertex); CLRBIT(fRequirements, kDCAToVertex); }; |
3a72645a | 189 | void UnsetVertexRequirement() { CLRBIT(fRequirements, kDCAToVertex); CLRBIT(fRequirements, kSigmaToVertex); } |
faee3b18 | 190 | void SetRequireKineMCCuts() { SETBIT(fRequirements, kKineMCCuts); }; |
bbeea05b | 191 | void SetRejectKinkDaughters() { fRejectKinkDaughters = kTRUE; } |
192 | void SetAcceptKinkDaughters() { fRejectKinkDaughters = kFALSE; } | |
193 | void SetRejectKinkMothers() { fRejectKinkMothers = kTRUE; } | |
194 | void SetAcceptKinkMothers() { fRejectKinkMothers = kFALSE; } | |
dbe3abbe | 195 | |
75d81601 | 196 | void SetDebugLevel(Int_t level) { fDebugLevel = level; }; |
197 | Int_t GetDebugLevel() const { return fDebugLevel; }; | |
198 | ||
199 | private: | |
50685501 | 200 | enum{ |
9bcfd1ab | 201 | kDebugMode = BIT(14), |
202 | kAOD = BIT(15) | |
50685501 | 203 | }; |
204 | typedef enum{ | |
205 | kPrimary = 0, | |
206 | kProductionVertex = 1, | |
207 | kSigmaToVertex = 2, | |
208 | kDCAToVertex = 3, | |
209 | kITSPixel = 4, | |
faee3b18 | 210 | kMaxImpactParam = 5, |
5cd679b7 | 211 | kKineMCCuts = 6, |
cedf0381 | 212 | kITSDrift = 7 |
50685501 | 213 | } Require_t; |
75d81601 | 214 | void SetParticleGenCutList(); |
215 | void SetAcceptanceCutList(); | |
722347d8 | 216 | void SetRecKineITSTPCCutList(); |
75d81601 | 217 | void SetRecPrimaryCutList(); |
218 | void SetHFElectronITSCuts(); | |
9250ffbf | 219 | void SetHFElectronTOFCuts(); |
8c1c76e9 | 220 | void SetHFElectronTPCCuts(); |
75d81601 | 221 | void SetHFElectronTRDCuts(); |
3a72645a | 222 | void SetHFElectronDcaCuts(); |
0792aa82 | 223 | void SetEventCutList(Int_t istep); |
3a72645a | 224 | |
225 | static const Char_t* fgkMCCutName[kNcutStepsMCTrack]; // Cut step names for MC single Track cuts | |
226 | static const Char_t* fgkRecoCutName[kNcutStepsRecTrack]; // Cut step names for Rec single Track cuts | |
227 | static const Char_t* fgkDECutName[kNcutStepsDETrack]; // Cut step names for impact parameter cuts | |
c2690925 | 228 | static const Char_t* fgkSecvtxCutName[kNcutStepsSecvtxTrack]; // Cut step names for secondary vertexing cuts |
3a72645a | 229 | static const Char_t* fgkEventCutName[kNcutStepsEvent]; // Cut step names for Event cuts |
230 | static const Char_t* fgkUndefined; // Name for undefined (overflow) | |
dbe3abbe | 231 | |
75d81601 | 232 | ULong64_t fRequirements; // Bitmap for requirements |
76d0b522 | 233 | UChar_t fTPCclusterDef; // TPC cluster definition |
234 | UChar_t fTPCratioDef; // TPC cluster ratio Definition | |
cddc311d | 235 | Double_t fEtaRange[2]; // Eta range |
75d81601 | 236 | Double_t fDCAtoVtx[2]; // DCA to Vertex |
237 | Double_t fProdVtx[4]; // Production Vertex | |
bbeea05b | 238 | Double_t fProdVtxZ[2]; // Production Vertex in Z direction |
75d81601 | 239 | Double_t fPtRange[2]; // pt range |
240 | UChar_t fMinClustersTPC; // Min.Number of TPC clusters | |
e17c1f86 | 241 | UChar_t fMinClustersTPCPID; // Min.Number of TPC clusters |
3a72645a | 242 | UChar_t fMinClustersITS; // Min.Number of TPC clusters |
75d81601 | 243 | UChar_t fMinTrackletsTRD; // Min. Number of TRD tracklets |
cedf0381 | 244 | Float_t fMaxChi2TRD; // Max. Chi2 per TRD tracklet |
75d81601 | 245 | UChar_t fCutITSPixel; // Cut on ITS pixel |
0792aa82 | 246 | Bool_t fCheckITSLayerStatus; // Check ITS layer status |
5cd679b7 | 247 | UChar_t fCutITSDrift; // Cut on ITS drift |
8c1c76e9 | 248 | Double_t fMaxChi2clusterITS; // Max Chi2 per ITS cluster |
75d81601 | 249 | Double_t fMaxChi2clusterTPC; // Max Chi2 per TPC cluster |
250 | Double_t fMinClusterRatioTPC; // Min. Ratio findable / found TPC clusters | |
8c1c76e9 | 251 | Double_t fSigmaToVtx[3]; // Sigma To Vertex |
3a72645a | 252 | Double_t fVertexRangeZ; // Vertex Range reconstructed |
e17c1f86 | 253 | Bool_t fTRDtrackletsExact; // Require exact number of tracklets |
e3ae862b | 254 | Bool_t fTOFPIDStep; // TOF matching step efficiency |
c2690925 | 255 | Bool_t fTOFMISMATCHStep; // TOF mismatch step |
8c1c76e9 | 256 | Bool_t fTPCPIDCLEANUPStep; // TPC PIC cleanup step |
cedf0381 | 257 | Bool_t fITSpatternCut; // Cut on ITS pattern |
63bdf450 | 258 | Bool_t fUseMixedVertex; // Use primary vertex from track if there otherwise SPD vertex |
259 | Bool_t fUseSPDVertex; // Use primary SPD vertex | |
260 | Bool_t fUseCorrelationVertex; // Use the correlation of the vertex in z | |
d87a9d29 | 261 | Bool_t fSPDVtxResolution; // Check resolution of the SPD vertex |
4437a0d2 | 262 | Bool_t fPApileupCut; // Apply pA pileup cut |
c2690925 | 263 | Float_t fIPCutParams[4]; // Parameters of impact parameter cut parametrization |
11ff28c5 | 264 | Bool_t fIsIPSigmacut; // if IP cut or IP sigma cut |
63bdf450 | 265 | Bool_t fIsIPcharge; // if cut on IP * charge (cut using only positive side of distribution, to eliminate conversions) |
266 | Bool_t fIsIPOpp; // if IP*charge cut on side of the photon peak | |
9250ffbf | 267 | Double_t fFractionOfSharedTPCClusters; // Fraction of shared TPC clusters |
268 | Bool_t fMaxImpactParameterRpar; // Max impact parameter | |
11ff28c5 | 269 | Long_t fAdditionalStatusRequirement; // Additional status bit requirement |
1c051dd4 | 270 | Double_t fTOFsignaldx; // TOF signal Dx |
271 | Double_t fTOFsignaldz; // TOF signal Dz | |
96167a04 | 272 | Int_t fAODFilterBit; // AOD Filter Bit Number |
bbeea05b | 273 | Bool_t fRejectKinkDaughters; // Reject Kink Daughters |
274 | Bool_t fRejectKinkMothers; // Reject Kink Daughters | |
809a4336 | 275 | |
75d81601 | 276 | TList *fHistQA; //! QA Histograms |
277 | TObjArray *fCutList; //! List of cut objects(Correction Framework Manager) | |
dbe3abbe | 278 | |
75d81601 | 279 | Int_t fDebugLevel; // Debug Level |
809a4336 | 280 | |
bbeea05b | 281 | ClassDef(AliHFEcuts, 6) // Container for HFE cuts |
75d81601 | 282 | }; |
809a4336 | 283 | |
75d81601 | 284 | //__________________________________________________________________ |
285 | void AliHFEcuts::SetProductionVertex(Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax){ | |
286 | // Set the production vertex constraint | |
287 | SetRequireProdVertex(); | |
288 | fProdVtx[0] = xmin; | |
289 | fProdVtx[1] = xmax; | |
290 | fProdVtx[2] = ymin; | |
291 | fProdVtx[3] = ymax; | |
292 | } | |
809a4336 | 293 | |
294 | //__________________________________________________________________ | |
295 | void AliHFEcuts::SetSigmaToVertex(Double_t sig){ | |
296 | SetRequireSigmaToVertex(); | |
8c1c76e9 | 297 | fSigmaToVtx[0] = sig; |
298 | } | |
299 | ||
300 | //__________________________________________________________________ | |
301 | void AliHFEcuts::SetSigmaToVertexXY(Double_t sig){ | |
302 | SetRequireSigmaToVertex(); | |
303 | fSigmaToVtx[1] = sig; | |
304 | } | |
305 | ||
306 | //__________________________________________________________________ | |
307 | void AliHFEcuts::SetSigmaToVertexZ(Double_t sig){ | |
308 | SetRequireSigmaToVertex(); | |
309 | fSigmaToVtx[2] = sig; | |
809a4336 | 310 | } |
311 | ||
312 | //__________________________________________________________________ | |
313 | void AliHFEcuts::SetMaxImpactParam(Double_t radial, Double_t z){ | |
ad75027f | 314 | SetRequireDCAToVertex(); |
315 | fDCAtoVtx[0] = radial; | |
316 | fDCAtoVtx[1] = z; | |
809a4336 | 317 | } |
318 | ||
c2690925 | 319 | //__________________________________________________________________ |
63bdf450 | 320 | void AliHFEcuts::SetIPcutParam(Float_t p0, Float_t p1, Float_t p2, Float_t p3, Bool_t isipsigma, Bool_t isIPcharge, Bool_t isopp){ |
c2690925 | 321 | // Set parameters for impact parameter cut parametrization |
322 | fIPCutParams[0] = p0; | |
323 | fIPCutParams[1] = p1; | |
324 | fIPCutParams[2] = p2; | |
325 | fIPCutParams[3] = p3; | |
326 | fIsIPSigmacut = isipsigma; | |
63bdf450 | 327 | fIsIPcharge = isIPcharge; |
328 | fIsIPOpp = isopp; | |
c2690925 | 329 | } |
330 | ||
809a4336 | 331 | //__________________________________________________________________ |
332 | void AliHFEcuts::SetCutITSpixel(UChar_t cut){ | |
333 | SetRequireITSPixel(); | |
334 | fCutITSPixel = cut; | |
335 | } | |
336 | ||
5cd679b7 | 337 | //__________________________________________________________________ |
338 | void AliHFEcuts::SetCutITSdrift(UChar_t cut){ | |
339 | SetRequireITSDrift(); | |
340 | fCutITSDrift = cut; | |
341 | } | |
63bdf450 | 342 | //__________________________________________________________________ |
343 | void AliHFEcuts::SetUseMixedVertex(Bool_t useMixedVertex){ | |
344 | // | |
345 | // Choice of a vertex | |
346 | // | |
347 | fUseMixedVertex = useMixedVertex; | |
348 | if(useMixedVertex) fUseSPDVertex = kFALSE; | |
349 | } | |
350 | //__________________________________________________________________ | |
351 | void AliHFEcuts::SetUseSPDVertex(Bool_t useSPDVertex){ | |
352 | // | |
353 | // Choice of a vertex | |
354 | // | |
355 | fUseSPDVertex = useSPDVertex; | |
356 | if(useSPDVertex) fUseMixedVertex = kFALSE; | |
357 | } | |
5cd679b7 | 358 | |
809a4336 | 359 | //__________________________________________________________________ |
360 | void AliHFEcuts::CreateStandardCuts(){ | |
361 | // | |
362 | // Standard Cuts defined by the HFE Group | |
363 | // | |
ad75027f | 364 | SetRequireProdVertex(); |
faee3b18 | 365 | fProdVtx[0] = 0; |
722347d8 | 366 | fProdVtx[1] = 3; |
faee3b18 | 367 | fProdVtx[2] = 0; |
722347d8 | 368 | fProdVtx[3] = 3; |
bbeea05b | 369 | fProdVtxZ[0] = 0; |
370 | fProdVtxZ[1] = 5; | |
faee3b18 | 371 | //SetRequireDCAToVertex(); |
372 | //fDCAtoVtx[0] = 0.5; | |
373 | //fDCAtoVtx[1] = 1.5; | |
374 | fMinClustersTPC = 80; | |
3a72645a | 375 | fMinClustersITS = 4; |
722347d8 | 376 | fMinTrackletsTRD = 0; |
dbe3abbe | 377 | SetRequireITSPixel(); |
722347d8 | 378 | fCutITSPixel = AliHFEextraCuts::kFirst; |
8c1c76e9 | 379 | fMaxChi2clusterITS = -1.; |
3a72645a | 380 | fMaxChi2clusterTPC = 4.; |
809a4336 | 381 | fMinClusterRatioTPC = 0.6; |
382 | fPtRange[0] = 0.1; | |
420bd2ea | 383 | fPtRange[1] = 100.; |
bbeea05b | 384 | fRejectKinkDaughters = kTRUE; |
385 | fRejectKinkMothers = kTRUE; | |
faee3b18 | 386 | SetRequireKineMCCuts(); |
809a4336 | 387 | } |
388 | #endif |