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 **************************************************************************/
15 #ifndef ALIHFEEXTRACUTS_H
16 #define ALIHFEEXTRACUTS_H
18 // #ifndef ALICFCUTBASE_H
19 #include "AliCFCutBase.h"
27 class AliHFEextraCuts : public AliCFCutBase{
36 AliHFEextraCuts(const Char_t *name, const Char_t *title);
37 AliHFEextraCuts(const AliHFEextraCuts &c);
38 AliHFEextraCuts &operator=(const AliHFEextraCuts &c);
39 virtual ~AliHFEextraCuts();
41 virtual Bool_t IsSelected(TObject *o);
42 virtual Bool_t IsSelected(TList *) { return kTRUE; };
44 inline void SetClusterRatioTPC(Double_t ratio);
45 inline void SetRequireITSpixel(ITSPixel_t pixel);
46 inline void SetMinImpactParamR(Double_t impactParam);
47 inline void SetMaxImpactParamR(Double_t impactParam);
48 inline void SetMinImpactParamZ(Double_t impactParam);
49 inline void SetMaxImpactParamZ(Double_t impactParam);
50 inline void SetMinTrackletsTRD(Int_t minTracklets);
52 void SetCheckITSstatus(Bool_t check) { fCheck = check; };
53 Bool_t GetCheckITSstatus() const { return fCheck; };
55 void SetDebugLevel(Int_t level) { fDebugLevel = level; };
56 Int_t GetDebugLevel() const { return fDebugLevel; };
59 virtual void AddQAHistograms(TList *qaList);
60 Bool_t CheckESDCuts(AliESDtrack *track);
61 Bool_t CheckMCCuts(AliMCParticle * /*track*/) const;
62 Bool_t CheckITSstatus(Int_t itsStatus) const;
63 void FillQAhistosESD(AliESDtrack *track, UInt_t when);
64 // void FillQAhistosMC(AliMCParticle *track, UInt_t when);
65 void FillCutCorrelation(ULong64_t survivedCut);
66 void PrintBitMap(Int_t bitmap);
86 ULong64_t fCutCorrelation; // Cut Correlation
87 ULong64_t fRequirements; // Cut Requirements
88 Float_t fImpactParamCut[4]; // Impact Parmameter Cut
89 Float_t fClusterRatioTPC; // Ratio of findable vs. found clusters in TPC
90 UChar_t fMinTrackletsTRD; // Min. Number of Tracklets inside TRD
91 UChar_t fPixelITS; // Cut on ITS Pixels
93 Bool_t fCheck; // check
95 TList *fQAlist; //! Directory for QA histograms
97 Int_t fDebugLevel; // Debug Level
99 ClassDef(AliHFEextraCuts, 1) // Additional cuts implemented by the ALICE HFE group
102 //__________________________________________________________
103 void AliHFEextraCuts::SetClusterRatioTPC(Double_t ratio) {
104 SETBIT(fRequirements, kClusterRatioTPC);
105 fClusterRatioTPC = ratio;
108 //__________________________________________________________
109 void AliHFEextraCuts::SetRequireITSpixel(ITSPixel_t pixel) {
110 SETBIT(fRequirements, kPixelITS);
114 //__________________________________________________________
115 void AliHFEextraCuts::SetMinImpactParamR(Double_t impactParam){
116 SETBIT(fRequirements, kMinImpactParamR);
117 fImpactParamCut[0] = impactParam;
120 //__________________________________________________________
121 void AliHFEextraCuts::SetMaxImpactParamR(Double_t impactParam){
122 SETBIT(fRequirements, kMaxImpactParamR);
123 fImpactParamCut[2] = impactParam;
126 //__________________________________________________________
127 void AliHFEextraCuts::SetMinImpactParamZ(Double_t impactParam){
128 SETBIT(fRequirements, kMinImpactParamZ);
129 fImpactParamCut[1] = impactParam;
132 //__________________________________________________________
133 void AliHFEextraCuts::SetMaxImpactParamZ(Double_t impactParam){
134 SETBIT(fRequirements, kMaxImpactParamZ);
135 fImpactParamCut[3] = impactParam;
138 //__________________________________________________________
139 void AliHFEextraCuts::SetMinTrackletsTRD(Int_t minTracklets){
140 SETBIT(fRequirements, kMinTrackletsTRD);
141 fMinTrackletsTRD = minTracklets;