updated to use a finter eta binning and asymmetric eta range
authorssakai <ssakai@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 6 May 2013 13:33:30 +0000 (13:33 +0000)
committerssakai <ssakai@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 6 May 2013 13:33:30 +0000 (13:33 +0000)
PWGHF/hfe/macros/configs/pPb/ConfigHFEpPb.C

index e16cff5..f5c18a5 100644 (file)
@@ -21,7 +21,8 @@ AliAnalysisTaskHFE* ConfigHFEpPb(Bool_t useMC, Bool_t isAOD, TString appendix,
                                 UChar_t ITScl=3, Double_t DCAxy=1000., Double_t DCAz=1000.,\r
                                 Double_t* tpcdEdxcutlow=NULL,Double_t* tpcdEdxcuthigh=NULL,\r
                                 Double_t TOFs=3., Int_t TOFmis=0,\r
-                                Int_t itshitpixel = 0, Int_t icent = 1){\r
+                                Int_t itshitpixel = 0, Int_t icent = 1,\r
+         Double_t etami=-0.8, Double_t etama=0.8){\r
   \r
   Bool_t kAnalyseTaggedTracks = isAOD ? kFALSE : kTRUE;\r
   \r
@@ -40,6 +41,7 @@ AliAnalysisTaskHFE* ConfigHFEpPb(Bool_t useMC, Bool_t isAOD, TString appendix,
   hfecuts->SetTPCmodes(AliHFEextraCuts::kFound, AliHFEextraCuts::kFoundOverFindable);\r
   hfecuts->SetCutITSpixel(itshitpixel);\r
   hfecuts->SetCheckITSLayerStatus(kFALSE);\r
+  hfecuts->SetEtaRange(etami,etama);\r
   if(isAOD) hfecuts->SetAODFilterBit(4);\r
   \r
   //if((iPixelAny==AliHFEextraCuts::kAny) || (iPixelAny==AliHFEextraCuts::kSecond))     \r
@@ -91,8 +93,8 @@ AliAnalysisTaskHFE* ConfigHFEpPb(Bool_t useMC, Bool_t isAOD, TString appendix,
   // Define Variables\r
   Double_t ptbinning[36] = {0., 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1., 1.1, 1.2, 1.3, 1.4, 1.5, 1.75, 2., 2.25, 2.5, 2.75, 3., 3.5, 4., 4.5, 5., 5.5, 6., 7., 8., 10., 12., 14., 16., 18., 20.};\r
 \r
-  Double_t etabinning[9] = {-0.8, -0.6, -0.4, -0.2, 0., 0.2, 0.4, 0.6, 0.8};\r
-  //Double_t etabinning[17] = {-0.8, -0.7, -0.6, -0.5, -0.4, -0.3, -0.2, -0.1, 0., 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8};\r
+  //Double_t etabinning[9] = {-0.8, -0.6, -0.4, -0.2, 0., 0.2, 0.4, 0.6, 0.8};\r
+  Double_t etabinning[17] = {-0.8, -0.7, -0.6, -0.5, -0.4, -0.3, -0.2, -0.1, 0., 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8};\r
 \r
   Int_t sizept=(sizeof(ptbinning)/sizeof(double))-1;\r
   Int_t sizeeta=(sizeof(etabinning)/sizeof(double))-1;\r