AliPhysics  d84cbc0 (d84cbc0)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MakeRespMatrTrain.C
Go to the documentation of this file.
1 
12 #include "TrainSetup.C"
13 
14 //====================================================================
23 {
24 public:
30  MakeRespMatrTrain(const char* name)
31  : TrainSetup(name)
32  {
33  fOptions.Add("trig", "TYPE", "Trigger type", "V0AND");
34  fOptions.Add("vzMin", "CENTIMETER", "Min Ip Z", -4);
35  fOptions.Add("vzMax", "CENTIMETER", "Max Ip Z", +4);
36  }
37 protected:
43  {
44  // --- Output file name ------------------------------------------
45  AliAnalysisManager::SetCommonFileName("forward_response.root");
46 
47  // --- Load libraries/pars ---------------------------------------
48  fRailway->LoadLibrary("PWGLFforward2");
49 
50  // --- Set load path ---------------------------------------------
51  gROOT->SetMacroPath(Form("%s:$(ALICE_PHYSICS)/PWGLF/FORWARD/analysis2",
52  gROOT->GetMacroPath()));
53 
54  // --- Get parameters --------------------------------------------
55  TString trig = fOptions.Get("trig");
56  Double_t vzMin = fOptions.AsDouble("vzmin", -4);
57  Double_t vzMax = fOptions.AsDouble("vzmax", +4);
58 
59  // --- Form arguments --------------------------------------------
60  TString args;
61  args.Form("\"%s\",%f,%f", trig.Data(), vzMin, vzMax);
62  // --- Add the task ----------------------------------------------
63  CoupleSECar("AddTaskCreateRespMatr.C", args, AliVEvent::kAny);
64  }
65  //__________________________________________________________________
70  //__________________________________________________________________
76  AliVEventHandler* CreateOutputHandler(UShort_t) { return 0; }
81  AliVEventHandler* CreateMCHandler(UShort_t type, bool mc) { return 0; }
82  //__________________________________________________________________
83  const char* ClassName() const { return "MakeRespMatrTrain"; }
84  //__________________________________________________________________
85 
86 };
87 //
88 // EOF
89 //
Double_t AsDouble(const TString &name, Double_t def=0) const
Definition: Option.C:673
double Double_t
Definition: External.C:58
Railway * fRailway
Definition: TrainSetup.C:1664
void CreateCentralitySelection(Bool_t)
MakeRespMatrTrain(const char *name)
const char * ClassName() const
void CreateTasks(AliAnalysisManager *)
const TString & Get(const TString &name) const
Definition: Option.C:596
Base classs for train specifications.
Option * Add(const TString &name, const TString &arg, const TString &desc, const TString &val="")
Definition: Option.C:421
AliVEventHandler * CreateMCHandler(UShort_t type, bool mc)
OptionList fOptions
Definition: TrainSetup.C:1663
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:873
virtual Bool_t LoadLibrary(const TString &name, Bool_t slave=true, Bool_t forcePar=false)=0
AliVEventHandler * CreateOutputHandler(UShort_t)