AliPhysics  32b88a8 (32b88a8)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MakeTestADTrain.C
Go to the documentation of this file.
1 
10 #include "TrainSetup.C"
11 #include <sstream>
12 
13 //====================================================================
22 {
23 public:
29  MakeTestADTrain(const TString& name)
30  : TrainSetup(name)
31  {
32  fOptions.Set("type", "ESD");
33  fOptions.Set("ocdb", true);
34  fOptions.Set("friends",true);
35  }
36 protected:
43  {
44  // --- Output file name ------------------------------------------
45  AliAnalysisManager::SetCommonFileName("ad.root");
46 
47  // --- Load libraries/pars ---------------------------------------
48  fRailway->LoadLibrary("PWGLFforward2");
49 
50  // --- Add the task ----------------------------------------------
51  Printf("AliTestAD: %p", gROOT->GetClass("AliTestAD"));
52  gROOT->ProcessLine("{AliTestAD* t = new AliTestAD(\"\"); t->Connect();}");
53  }
54  virtual AliVEventHandler* CreateOutputHandler(UShort_t) { return 0; }
55  //__________________________________________________________________
62  {
63  if (!fOptions.Has("cent")) return;
65  }
66  //__________________________________________________________________
67  const char* ClassName() const { return "MakeTestADTrain"; }
68 };
69 //
70 // EOF
71 //
virtual void CreateCentralitySelection(Bool_t mc)
Definition: TrainSetup.C:758
Railway * fRailway
Definition: TrainSetup.C:1664
void CreateTasks(AliAnalysisManager *mgr)
const char * ClassName() const
Bool_t Has(const TString &name) const
Definition: Option.C:584
void CreateCentralitySelection(Bool_t mc)
MakeTestADTrain(const TString &name)
void Set(const TString &name, const TString &value)
Definition: Option.C:736
Base classs for train specifications.
virtual AliVEventHandler * CreateOutputHandler(UShort_t)
OptionList fOptions
Definition: TrainSetup.C:1663
unsigned short UShort_t
Definition: External.C:28
bool Bool_t
Definition: External.C:53
virtual Bool_t LoadLibrary(const TString &name, Bool_t slave=true, Bool_t forcePar=false)=0