]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGHF/hfe/macros/AddTaskHFEtpctofv2.C
-updates
[u/mrichter/AliRoot.git] / PWGHF / hfe / macros / AddTaskHFEtpctofv2.C
CommitLineData
6733d981 1AliAnalysisTask *AddTaskHFEtpctofv2(Int_t tpcCls=110, Double_t tpcClsr=50, Int_t tpcClspid=60, Double_t tpcsharedfraction=10, Int_t itsCls=4, Double_t chi2peritscl=36, Int_t pixellayer=2, Double_t dcaxy=100,Double_t dcaz=200, Double_t tofsig=30., Double_t tpceff=50., Int_t vzero=1, Int_t debuglevel=3, Bool_t algorithmMA=kFALSE, Bool_t massconstraint=kFALSE){
15492d66 2
1723c7d8 3 //
4 // Define TPC cut for 2011 data
5 //
6 Double_t tpcdedx[8] = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; //0-5,5-10,10-20,20-30,30-40,40-50,50-60,60-100
7 // -0.2 0-5%
8 // -0.15 5-10%
9 // -0.1 10-20%
10 // -0.0 20-30%
11 // 0.156 30-40%
12 // 0.2 40-50%
13 // 0.2 50-60%
14 // 0.2 60-80%
15 tpcdedx[0]=-0.2;
16 tpcdedx[1]=-0.15;
17 tpcdedx[2]=-0.1;
18 tpcdedx[3]=0.0;
19 tpcdedx[4]=0.156;
20 tpcdedx[5]=0.2;
21 tpcdedx[6]=0.2;
22 tpcdedx[7]=0.2;
23 if(TMath::Abs(tpceff-55)<0.01) {
24 tpcdedx[0]=-0.365;
25 tpcdedx[1]=-0.314;
26 tpcdedx[2]=-0.267;
27 tpcdedx[3]=-0.17;
28 tpcdedx[4]=-0.022;
29 tpcdedx[5]=-0.018;
90aa28e9 30 tpcdedx[6]=-0.018;
31 tpcdedx[7]=-0.018;
1723c7d8 32 }
33 if(TMath::Abs(tpceff-45)<0.01) {
34 tpcdedx[0]=-0.062;
35 tpcdedx[1]=-0.015;
36 tpcdedx[2]=0.035;
37 tpcdedx[3]=0.13;
38 tpcdedx[4]=0.278;
39 tpcdedx[5]=0.32;
40 tpcdedx[6]=0.32;
41 tpcdedx[7]=0.32;
42 }
43 if(TMath::Abs(tpceff-60)<0.01) {
44 tpcdedx[0]=-0.518;
45 tpcdedx[1]=-0.47;
46 tpcdedx[2]=-0.42;
47 tpcdedx[3]=-0.325;
48 tpcdedx[4]=-0.178;
49 tpcdedx[5]=-0.135;
50 tpcdedx[6]=-0.135;
51 tpcdedx[7]=-0.135;
52 }
53 if(TMath::Abs(tpceff-40)<0.01) {
54 tpcdedx[0]=0.09;
55 tpcdedx[1]=0.14;
56 tpcdedx[2]=0.188;
57 tpcdedx[3]=0.282;
58 tpcdedx[4]=0.43;
59 tpcdedx[5]=0.473;
60 tpcdedx[6]=0.473;
61 tpcdedx[7]=0.473;
62 }
13a553c9 63
1723c7d8 64 // Name
90aa28e9 65 TString appendixx("tpctofv2");
1723c7d8 66
13a553c9 67
15492d66 68 //set config file name
69 TString configFile("$ALICE_ROOT/PWGHF/hfe/macros/configs/PbPb/ConfigHFE_FLOW_TOFTPC.C");
26c85092 70 //TString configFile("/d/alice12/bailhache/AliRootInstallations/07_06_2012/AliRoot/PWGHF/hfe/macros/configs/PbPb/ConfigHFE_FLOW_TOFTPC.C");
15492d66 71 TString checkconfig="ConfigHFE_FLOW_TOFTPC";
72 if (!gROOT->GetListOfGlobalFunctions()->FindObject(checkconfig.Data()))
73 gROOT->LoadMacro(configFile.Data());
74
75 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
76 AliAnalysisDataContainer *cinput = mgr->GetCommonInputContainer();
1723c7d8 77 AliAnalysisTaskHFEFlow *task = ConfigHFE_FLOW_TOFTPC(kFALSE,appendixx,tpcCls, tpcClsr, tpcClspid, tpcsharedfraction, itsCls, chi2peritscl, pixellayer, dcaxy, dcaz,tofsig,&tpcdedx[0],vzero,debuglevel,algorithmMA,massconstraint);
15492d66 78
7f695a7b 79 task->SetNbBinsCentralityQCumulant(4);
15492d66 80 //task->SetBinCentralityLess(0,0.0);
81 task->SetBinCentralityLess(0,0.0);
82 task->SetBinCentralityLess(1,10.0);
83 task->SetBinCentralityLess(2,20.0);
84 task->SetBinCentralityLess(3,40.0);
85 task->SetBinCentralityLess(4,50.0);
7f695a7b 86 //task->SetBinCentralityLess(5,60.0);
15492d66 87 //task->SetBinCentralityLess(7,80.0);
88
15492d66 89 task->SetHFEVZEROEventPlane(0x0);
1723c7d8 90 task->SelectCollisionCandidates(AliVEvent::kSemiCentral);
7f695a7b 91 AliLog::SetClassDebugLevel("AliAnalysisTaskHFEFlow",2);
15492d66 92
93 mgr->AddTask(task);
94
95 TString containerName = mgr->GetCommonFileName();
96 containerName += ":";
97 containerName += appendixx.Data();
98
99 AliAnalysisDataContainer *cinput = mgr->GetCommonInputContainer();
90aa28e9 100 mgr->ConnectOutput(task,1, mgr->CreateContainer("testtpctofv2", TList::Class(),AliAnalysisManager::kOutputContainer,containerName.Data()));
15492d66 101 mgr->ConnectInput(task,0, cinput );
102
13a553c9 103 return NULL;
362a1d0c 104
15492d66 105
106}