]>
Commit | Line | Data |
---|---|---|
a6ce57c4 | 1 | /* $Id$ */ |
2 | ||
3 | // | |
4 | // Script to run the AliGenTriggerMapSelector | |
5 | // | |
6 | ||
7 | #include "../CreateESDChain.C" | |
8 | #include "../PWG0Helper.C" | |
9 | ||
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") | |
11 | { | |
12 | if (aProof) | |
13 | connectProof(proofServer); | |
14 | ||
15 | TString libraries("libPWG0base"); | |
16 | TString packages("PWG0base"); | |
17 | ||
18 | if (!prepareQuery(libraries, packages, 1)) | |
19 | return; | |
20 | ||
21 | if (aProof) | |
22 | ProofAddAliRootIncludePath(1, "ITS"); | |
23 | ||
24 | TChain* chain = CreateESDChain(data, nRuns, offset); | |
25 | ||
26 | TList inputList; | |
27 | ||
28 | TString selectorName = "AliGenTriggerMapSelector"; | |
29 | AliLog::SetClassDebugLevel(selectorName, AliLog::kInfo); | |
30 | ||
31 | selectorName += ".cxx+"; | |
32 | ||
33 | if (aDebug != kFALSE) | |
34 | selectorName += "+g"; | |
35 | ||
36 | executeQuery(chain, &inputList, selectorName, option); | |
37 | } | |
38 | ||
9cb768f2 | 39 | void generateTriggerMap(Bool_t clean = kFALSE) |
40 | { | |
41 | gSystem->Load("libPWG0base"); | |
42 | gROOT->ProcessLine(".L AliGenTriggerMapSelector.cxx+"); | |
43 | AliGenTriggerMapSelector selector; | |
44 | selector.ReadHistograms(); | |
45 | selector.GenerateTriggerMap(clean); | |
46 | } |