4 // Script to run the AliGenTriggerMapSelector
7 #include "../CreateESDChain.C"
8 #include "../PWG0Helper.C"
10 void runGenTriggerMapSelector(Char_t* data, Int_t nRuns=20, Int_t offset=0, Bool_t aDebug = kFALSE, Bool_t aProof = kFALSE, const char* option = "", const char* proofServer = "lxb6046")
13 connectProof(proofServer);
15 TString libraries("libPWG0base");
16 TString packages("PWG0base");
18 if (!prepareQuery(libraries, packages, 1))
22 ProofAddAliRootIncludePath(1, "ITS");
24 TChain* chain = CreateESDChain(data, nRuns, offset);
28 TString selectorName = "AliGenTriggerMapSelector";
29 AliLog::SetClassDebugLevel(selectorName, AliLog::kInfo);
31 selectorName += ".cxx+";
36 executeQuery(chain, &inputList, selectorName, option);
39 void generateTriggerMap(Bool_t clean = kFALSE)
41 gSystem->Load("libPWG0base");
42 gROOT->ProcessLine(".L AliGenTriggerMapSelector.cxx+");
43 AliGenTriggerMapSelector selector;
44 selector.ReadHistograms();
45 selector.GenerateTriggerMap(clean);