AliPhysics  63e47e1 (63e47e1)
MakeMultTrain.C
Go to the documentation of this file.
1 
12 #include "TrainSetup.C"
13 
14 //====================================================================
23 class MakeMultTrain : public TrainSetup
24 {
25 public:
31  MakeMultTrain(const char* name)
32  : TrainSetup(name)
33  {
34  fOptions.Add("trig", "TYPE", "Trigger type", "V0AND");
35  fOptions.Add("ipz-min", "CENTIMETER", "Min Ip Z", -4);
36  fOptions.Add("ipz-max", "CENTIMETER", "Max Ip Z", +4);
37  // fOptions.Add("cent-min","%", "Min Centrality", 0);
38  // fOptions.Add("cent-max","%", "Max Centrality", 0);
39  fOptions.Add("max-mult","N", "Max Multiplicity", 500);
40  }
41 protected:
46  {
47  // --- Output file name ------------------------------------------
48  AliAnalysisManager::SetCommonFileName("forward_multiplicity.root");
49 
50  // --- Load libraries/pars ---------------------------------------
51  fRailway->LoadLibrary("PWGLFforward2");
52 
53  // --- Set load path ---------------------------------------------
54  gROOT->SetMacroPath(Form("%s:$(ALICE_PHYSICS)/PWGLF/FORWARD/analysis2",
55  gROOT->GetMacroPath()));
56 
57  // --- Add the task ----------------------------------------------
58  AliAnalysisTaskSE* tsk =
59  CoupleSECar("AddTaskMultDistributions.C", "", AliVEvent::kAny);
60  FromOption(tsk, "TriggerMask", "trig", "V0AND");
61  FromOption(tsk, "IpZMin", "ipz-min", -4.);
62  FromOption(tsk, "IpZMax", "ipz-max", +4.);
63  FromOption(tsk, "MaxMult", "max-mult", 500);
64  // FromOption(tsk, "CentMin", "cent-min", 0);
65  // FromOption(tsk, "CentMax", "cent-max", 100);
66 
67  }
68  //__________________________________________________________________
73  //__________________________________________________________________
79  AliVEventHandler* CreateOutputHandler(UShort_t) { return 0; }
80  //__________________________________________________________________
81  const char* ClassName() const { return "MakeMultTrain"; }
82 };
83 //
84 // EOF
85 //
MakeMultTrain(const char *name)
Definition: MakeMultTrain.C:31
Railway * fRailway
Definition: TrainSetup.C:1674
const char * ClassName() const
Definition: MakeMultTrain.C:81
void CreateTasks(AliAnalysisManager *)
Definition: MakeMultTrain.C:45
AliVEventHandler * CreateOutputHandler(UShort_t)
Definition: MakeMultTrain.C:79
void CreateCentralitySelection(Bool_t)
Definition: MakeMultTrain.C:72
Base classs for train specifications.
Option * Add(const TString &name, const TString &arg, const TString &desc, const TString &val="")
Definition: Option.C:421
void FromOption(AliAnalysisTaskSE *task, const char *what, const char *opt, Double_t defval)
Definition: TrainSetup.C:1236
OptionList fOptions
Definition: TrainSetup.C:1673
unsigned short UShort_t
Definition: External.C:28
bool Bool_t
Definition: External.C:53
virtual AliAnalysisTaskSE * CoupleSECar(const TString &macro, const TString &args, UInt_t mask=0)
Definition: TrainSetup.C:883
virtual Bool_t LoadLibrary(const TString &name, Bool_t slave=true, Bool_t forcePar=false)=0