AliPhysics  9b6b435 (9b6b435)
MakeMultClassTrain.C
Go to the documentation of this file.
1 
10 #include "TrainSetup.C"
11 #include <sstream>
12 
13 //====================================================================
22 {
23 public:
30  : TrainSetup(name)
31  {
32  fOptions.Set("type", "ESD");
33  }
34 protected:
41  {
42  // --- Output file name ------------------------------------------
43  AliAnalysisManager::SetCommonFileName("multClass.root");
44 
45  // --- Load libraries/pars ---------------------------------------
46  fRailway->LoadLibrary("PWGLFforward2");
47 
48  // --- Set load path ---------------------------------------------
49  gROOT->SetMacroPath(Form("%s:$(ALICE_PHYSICS)/PWGLF/FORWARD/analysis2",
50  gROOT->GetMacroPath()));
51  gROOT->SetMacroPath(Form("%s:$(ALICE_ROOT)/ANALYSIS/macros",
52  gROOT->GetMacroPath()));
53 
54  // --- Check if this is MC ---------------------------------------
55  Bool_t mc = mgr->GetMCtruthEventHandler() != 0;
56 
57  gROOT->ProcessLine("AliMultEventClassifierTask* task = "
58  "new AliMultEventClassifierTask(\"MultEvent\"); "
59  "task->Connect(0)");
60  }
61  //__________________________________________________________________
62  const char* ClassName() const { return "MakeMultClassTrain"; }
63 };
64 //
65 // EOF
66 //
Railway * fRailway
Definition: TrainSetup.C:1674
MakeMultClassTrain(const TString &name)
void Set(const TString &name, const TString &value)
Definition: Option.C:736
Base classs for train specifications.
OptionList fOptions
Definition: TrainSetup.C:1673
void CreateTasks(AliAnalysisManager *mgr)
bool Bool_t
Definition: External.C:53
virtual Bool_t LoadLibrary(const TString &name, Bool_t slave=true, Bool_t forcePar=false)=0
const char * ClassName() const