]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/trigger/macros/rec-BarrelMultiplicityTrigger.C
Update master to aliroot
[u/mrichter/AliRoot.git] / HLT / trigger / macros / rec-BarrelMultiplicityTrigger.C
CommitLineData
5299dd39 1void rec_BarrelMultiplicityTrigger(const char *filename="../raw.root")
2{
3 if(!gSystem->AccessPathName("galice.root")){
4 cerr << "You have to run in a subfolder of the original data directory. If so, please delete the galice.root." << endl;
5 return;
6 }
7
8 if (!filename) {
9 cerr << "please specify input or run without arguments" << endl;
10 return;
11 }
12 // Set the CDB storage location
13 AliCDBManager * man = AliCDBManager::Instance();
14 man->SetDefaultStorage("local:///opt/HLT-public/OCDB/LHC09c");
15
16 ///////////////////////////////////////////////////////////////////////////////////////////////////
17 //
18 // init the HLT system in order to define the analysis chain below
19 //
20 AliHLTSystem* gHLT=AliHLTPluginBase::GetInstance();
21
22 ///////////////////////////////////////////////////////////////////////////////////////////////////
23 //
24 // define the analysis chain to be run
25 //
26 AliHLTConfiguration pubconf("hltesd-publisher", "ESDMCEventPublisher", NULL , "-entrytype HLTESD -datapath ..");
27
28 AliHLTConfiguration triggerconf("multiplicity-trigger", "BarrelMultiplicityTrigger", "hltesd-publisher" , "-max-tdca 60");
29 AliHLTConfiguration globaltriggerconf("global-trigger", "HLTGlobalTrigger", "multiplicity-trigger" , "");
30
31 // Reconstruction settings
32 AliReconstruction rec;
33
34 // QA options
35 rec.SetRunQA(":") ;
36
37 // AliReconstruction settings
38 rec.SetInput(filename);
39 //rec.SetEventRange(0,20);
40 rec.SetRunReconstruction("HLT TPC");
41 rec.SetOption("HLT", "loglevel=0x7c chains=hltesd-publisher,global-trigger ignore-hltout");
42
43 rec.Run();
44
45}