AliPhysics  608b256 (608b256)
MakeTriggerBiasTrain.C
Go to the documentation of this file.
1 
12 #include "TrainSetup.C"
13 
14 //====================================================================
24 {
25 public:
31  MakeTriggerBiasTrain(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("max-mult","NUMBER", "Max of histograms", 500);
38  }
39 protected:
45  {
46  // --- Output file name ------------------------------------------
47  AliAnalysisManager::SetCommonFileName("forward_trigger.root");
48 
49  // --- Load libraries/pars ---------------------------------------
50  fRailway->LoadLibrary("PWGLFforward2");
51 
52  // --- Set load path ---------------------------------------------
53  gROOT->SetMacroPath(Form("%s:$(ALICE_PHYSICS)/PWGLF/FORWARD/analysis2",
54  gROOT->GetMacroPath()));
55 
56  // --- Add the task ----------------------------------------------
57  AliAnalysisTaskSE* tsk = CoupleSECar("AddTaskTriggerCorrection.C",
58  AliVEvent::kAny);
59 
60  // --- Set options -----------------------------------------------
61  FromOption(tsk, "TriggerMask", "trig", "V0AND");
62  FromOption(tsk, "IpZMin", "ipz-min", -4.);
63  FromOption(tsk, "IpZMax", "ipz-max", +4.);
64  FromOption(tsk, "MaxMult", "max-mult", 500);
65  }
66  //__________________________________________________________________
71  //__________________________________________________________________
77  AliVEventHandler* CreateOutputHandler(UShort_t) { return 0; }
82  AliVEventHandler* CreateMCHandler(UShort_t type, bool mc) { return 0; }
83  //__________________________________________________________________
84  const char* ClassName() const { return "MakeTriggerBiasTrain"; }
85  //__________________________________________________________________
86 
87 };
88 //
89 // EOF
90 //
MakeTriggerBiasTrain(const char *name)
AliVEventHandler * CreateOutputHandler(UShort_t)
Railway * fRailway
Definition: TrainSetup.C:1674
const char * ClassName() const
AliVEventHandler * CreateMCHandler(UShort_t type, bool mc)
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
void CreateCentralitySelection(Bool_t)
void CreateTasks(AliAnalysisManager *)
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