1 ///*******************************************************
3 //configIndex = 0 ---> Default cuts and PID
4 //configIndex = 1 ---> Non-HFE, Op Angle < 0.1
6 ///*******************************************************
8 AliAnalysisTaskEMCalHFEpA* ConfigEMCalHFEpA(
13 Int_t centralityIndex=0,
14 Bool_t isAOD = kFALSE,
15 Bool_t isEMCal = kFALSE,
16 Int_t EMCalThreshould = 0 //0 == EG1, 1 == EG2
20 ///_______________________________________________________________________________________________________________
21 ///Track selection: Cuts used to ensure a minimum quality level of the tracks selected to perform the analysis
22 AliHFEcuts *hfecuts = new AliHFEcuts("hfeCutsMinBias","HFE Cuts");
23 hfecuts->CreateStandardCuts();
26 hfecuts->SetTPCmodes(AliHFEextraCuts::kFound, AliHFEextraCuts::kFoundOverFindable);
27 if(configIndex==2) hfecuts->SetMinNClustersTPC(90); //Minimum number of clusters on TPC
28 else if(configIndex==3) hfecuts->SetMinNClustersTPC(110); //Minimum number of clusters on TPC
29 else hfecuts->SetMinNClustersTPC(100); //Minimum number of clusters on TPC
31 hfecuts->SetMinNClustersTPCPID(80); //Minimum number of clusters for dE/dx
32 hfecuts->SetMinRatioTPCclusters(0.6); //Number of clusters (Found/Findable)
35 //hfecuts->SetCutITSpixel(AliHFEextraCuts::kBoth); //Require at least one cluster on SPD
36 hfecuts->SetCutITSpixel(AliHFEextraCuts::kAny); //Require at least one cluster on SPD
37 //hfecuts->SetCutITSdrift(AliHFEextraCuts::kAny); //Require at least one cluster on SDD
38 hfecuts->SetCheckITSLayerStatus(kFALSE);
40 if(configIndex==4) hfecuts->SetMinNClustersITS(2); //Minimum number of clusters on ITS
41 else if(configIndex==5) hfecuts->SetMinNClustersITS(4); //Minimum number of clusters on ITS
42 else hfecuts->SetMinNClustersITS(3); //Minimum number of clusters on ITS
45 hfecuts->SetPtRange(2, 1e6); //Transversal momentum range in GeV/c
46 //hfecuts->SetMaxImpactParam(1,2); //DCA to vertex
49 hfecuts->SetVertexRange(10.); //
50 //hfecuts->SetProductionVertex(0,0.3,0,0.3); //
51 ///_______________________________________________________________________________________________________________
53 ///_________________________________________________________________________________________________________________________
55 AliAnalysisTaskEMCalHFEpA *task = new AliAnalysisTaskEMCalHFEpA(Form("HFECuts%d_%d_%d",triggerIndex,configIndex,centralityIndex));
56 printf("task ------------------------ %p\n ", task);
57 task->SetHFECuts(hfecuts);
58 task->SetCorrelationAnalysis();
59 task->SetAODanalysis(isAOD);
60 task->SetEventMixing(kTRUE);
62 //to separate trigger threshould
63 if(EMCalThreshould==0 && triggerIndex==2) task->SetEMCalTriggerEG1();
64 if(EMCalThreshould==1 && triggerIndex==2) task->SetEMCalTriggerEG2();
66 if(isEMCal) task->SetUseEMCal();
68 if(configIndex==6) task->SetNonHFEmassCut(0.05);
69 else task->SetNonHFEmassCut(0.1);
71 //if(isEMCal) task->SetEtaCut(-0.6,0.6);
72 //else task->SetEtaCut(-0.9,0.9);
74 task->SetEtaCut(-0.6,0.6);
76 if (configIndex==7) task->SetEoverPCut(0.85,1.2);
77 else if (configIndex==8) task->SetEoverPCut(0.75,1.25);
78 else task->SetEoverPCut(0.8,1.2);
80 if(configIndex==1) task->SetNonHFEangleCut(0.1);
82 if(centralityIndex==0) task->SetCentrality(0,20);
83 if(centralityIndex==1) task->SetCentrality(20,40);
84 if(centralityIndex==2) task->SetCentrality(40,60);
85 if(centralityIndex==3) task->SetCentrality(60,80);
86 if(centralityIndex==4) task->SetCentrality(80,100);
87 if(centralityIndex==5) task->SetCentrality(0,100);
88 ///_______________________________________________________________________________________________________________
90 ///_______________________________________________________________________________________________________________
91 ///Particle identification
92 AliHFEpid *pid = task->GetPID();
94 //______________________________________
95 //In the case of a simulation
98 pid->SetHasMCData(kTRUE);
99 task->SetMCanalysis();
101 //______________________________________
103 //______________________________________________________
105 //_________________________
107 pid->AddDetector("TPC", 1); //Add TPC PID
109 //_________________________
111 //Defaul = -1 to 3 sigmas
112 //Note that it is also possible to define a model instead of a constant
113 //--------->For this change the "cut model"
119 if(configIndex==9) params[0] = -1.5;
120 else if (configIndex==10) params[0] = -0.5;
121 else if (configIndex==11) params[0] = 0;
124 pid->ConfigureTPCdefaultCut(cutmodel,params,3.0);
125 //_______________________________________________________
126 ///_______________________________________________________________________________________________________________
128 printf("*************************************\n");
129 printf("Configuring standard Task:\n");
131 printf("*************************************\n");