AliPhysics  1168478 (1168478)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AddTaskCentralMCCorr.C
Go to the documentation of this file.
1 
22 AddTaskCentralMCCorr(Bool_t satellite=false, Bool_t eff=false)
23 {
24  // --- Load libraries ----------------------------------------------
25  gROOT->LoadClass("AliAODForwardMult", "libPWGLFforward2");
26 
27  // --- Creating the manager and handlers ---------------------------
28  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
29  if (!mgr->GetMCtruthEventHandler()) {
30  Error("AddTaskCentralMCCorr",
31  "No MC input handler defined - cannot continue");
32  return 0;
33  }
34 
35  // --- Add our task ------------------------------------------------
37  new AliCentralMCCorrectionsTask("CentralCorr");
38  // This has to match the binning used in the AliAODCentralMult
39  // class. Currently, this is set to 20.
40  task->SetSatellite(satellite);
41  task->SetNPhiBins(20);
42  task->SetEffectiveCorrection(eff);
43  // task->SetVertexAxis(40, -20., 20.);
44 
45  // --- create containers for input/output --------------------------
46  task->Connect(0,0);
47 
48  return task;
49 }
50 //
51 // EOF
52 //
virtual Bool_t Connect(const char *sumFile=0, const char *resFile=0)
AliAnalysisTask * AddTaskCentralMCCorr(Bool_t satellite=false, Bool_t eff=false)
bool Bool_t
Definition: External.C:53