1 AliAnalysisTaskCMEv2A *AddTaskCMEv2A
5 /* ULong64_t trigger = AliVEvent::kMB|AliVEvent::kCentral|AliVEvent::kSemiCentral, */
6 ULong64_t trigger = AliVEvent::kMB,
15 float dcacutxy = 50.0,
16 bool dodcacuts = false,
27 bool dopaircut = false,
30 char *name = "TaskCMEv2A"
35 // --- get analysis manager
36 AliAnalysisManager *aam = AliAnalysisManager::GetAnalysisManager();
39 cout<<"No analysis manager, now dying..."<<endl;
42 cout<<"Memory address of AliAnalysisManager is "<<aam<<endl;
45 // --- check that input handler exists
46 if(!aam->GetInputEventHandler())
48 cout<<"No input even handler, now dying..."<<endl;
53 // --- instantiate analysis task
54 AliAnalysisTaskCMEv2A *task = new AliAnalysisTaskCMEv2A(name);
55 cout<<"Memory address of task is "<<task<<endl;
57 task->SetParameters();
58 // --- set task methods as needed
59 task->SetDebug(debug);
61 task->SetTrigger(trigger);
62 task->SetDoEffCorrection(doeffcorr);
63 task->SetCentHandle(centhandle);
64 task->SetFilterBit(fbit);
65 task->SetZvtxCut(zvtxcut);
66 task->SetCentCut(centcut);
67 task->SetNclsCut(nclscut);
68 task->SetDCAcutZ(dcacutz);
69 task->SetDCAcutXY(dcacutxy);
70 task->SetDoDCAcuts(dodcacuts);
71 task->SetOutEta(outeta);
72 task->SetInEta(ineta);
73 task->SetExclEta(excleta);
74 task->SetPtMin(ptmin);
75 task->SetPtMax(ptmax);
76 task->SetDoAcuts(doacuts);
77 task->SetSigmaPID(nspid);
78 task->SetCentBinLow(cbinlo);
79 task->SetCentBinHigh(cbinhi);
80 task->SetDoNested(donested);
81 task->SetDoPairCut(dopaircut);
82 task->SetCentDCLow(centlo);
83 task->SetCentDCHigh(centhi);
86 // --- get input and output managers
88 TString outputFileName = AliAnalysisManager::GetCommonFileName();
89 outputFileName += Form(":Out%s",name);
91 AliAnalysisDataContainer *aadci = aam->GetCommonInputContainer();
92 AliAnalysisDataContainer *aadco = aam->CreateContainer
96 AliAnalysisManager::kOutputContainer,
99 // observe that ".root" is automatically appended
102 // --- add task and connect input and output managers
104 aam->ConnectInput(task,0,aadci);
105 aam->ConnectOutput(task,1,aadco);
107 // --- return pointer to Task