AliPhysics  aaf9c62 (aaf9c62)
MakeRespMatrTrain.C
Go to the documentation of this file.
1 
12 #include "TrainSetup.C"
13 
14 //====================================================================
24 {
25 public:
31  MakeRespMatrTrain(const char* name)
32  : TrainSetup(name)
33  {
34  fOptions.Add("trig", "TYPE", "Trigger type", "V0AND");
35  fOptions.Add("filter", "TYPE", "Filter type", "OUTLIER|PILEUP-BIN");
36  fOptions.Add("ipz-min", "CENTIMETER", "Min Ip Z", -4);
37  fOptions.Add("ipz-max", "CENTIMETER", "Max Ip Z", +4);
38  fOptions.Add("max-mult","NUMBER", "Max of histograms", 500);
39  fOptions.Add("assume-nsd", "If set, assume MC events are NSD", false);
40  }
41 protected:
47  {
48  // --- Output file name ------------------------------------------
49  AliAnalysisManager::SetCommonFileName("forward_response.root");
50 
51  // --- Load libraries/pars ---------------------------------------
52  fRailway->LoadLibrary("PWGLFforward2");
53 
54  // --- Set load path ---------------------------------------------
55  gROOT->SetMacroPath(Form("%s:$(ALICE_PHYSICS)/PWGLF/FORWARD/analysis2",
56  gROOT->GetMacroPath()));
57 
58  // --- Add the task ----------------------------------------------
59  AliAnalysisTaskSE* tsk = CoupleSECar("AddTaskCreateRespMatr.C",
60  AliVEvent::kAny);
61 
62  // --- Set options -----------------------------------------------
63  FromOption(tsk, "TriggerMask", "trig", "V0AND");
64  FromOption(tsk, "FilterMask", "filter", "OUTLIER|PILEUP-BIN");
65  FromOption(tsk, "IpZMin", "ipz-min", -4.);
66  FromOption(tsk, "IpZMax", "ipz-max", +4.);
67  FromOption(tsk, "MaxMult", "max-mult", 500);
68  FromOption(tsk, "MCIsNSD", "assume-nsd", false);
69  }
70  //__________________________________________________________________
75  //__________________________________________________________________
81  AliVEventHandler* CreateOutputHandler(UShort_t) { return 0; }
86  AliVEventHandler* CreateMCHandler(UShort_t type, bool mc) { return 0; }
87  //__________________________________________________________________
88  const char* ClassName() const { return "MakeRespMatrTrain"; }
89  //__________________________________________________________________
90 
91 };
92 //
93 // EOF
94 //
Railway * fRailway
Definition: TrainSetup.C:1674
void CreateCentralitySelection(Bool_t)
MakeRespMatrTrain(const char *name)
const char * ClassName() const
void CreateTasks(AliAnalysisManager *)
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)
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
AliVEventHandler * CreateOutputHandler(UShort_t)