]>
Commit | Line | Data |
---|---|---|
4d097162 | 1 | // $Id$ |
2 | /** | |
3 | * @file rec-upc-trigger.C | |
4 | * @brief Test macro for UPC trigger | |
5 | * | |
6 | * Usage: | |
7 | * <pre> | |
8 | * aliroot -b -q rec-upc-trigger.C | tee rec-upc-trigger.log | |
9 | * </pre> | |
10 | * | |
11 | * The macro asumes raw data to be available in the rawx folders, either | |
12 | * simulated or real data. A different input can be specified as parameter | |
13 | * <pre> | |
14 | * aliroot -b -q rec-upc-trigger.C'("input.root")' | |
15 | * </pre> | |
16 | * | |
17 | * | |
18 | * @author Kyrre Skjerdal (kyrre.skjerdal@cern.ch) | |
19 | */ | |
20 | ||
21 | void rec_upc_trigger(const char *filename="raw.root"){ | |
22 | ||
23 | if(!gSystem->AccessPathName("galice.root")){ | |
24 | cerr << "Remove galice.root or run in a different folder." << endl; | |
25 | return; | |
26 | } | |
27 | ||
28 | if (!filename) { | |
29 | cerr << "please specify input or run without arguments" << endl; | |
30 | return; | |
31 | } | |
32 | ||
33 | // Set the CDB storage location | |
34 | AliCDBManager *man = AliCDBManager::Instance(); | |
35 | man->SetDefaultStorage("local://$ALICE_ROOT/OCDB/"); | |
36 | ||
37 | ||
38 | /////////////////////////////////////////////////////////////////////////////////////////////////// | |
39 | // | |
40 | // init the HLT system in order to define the analysis chain below | |
41 | // | |
42 | AliHLTSystem *gHLT = AliHLTPluginBase::GetInstance(); | |
43 | ||
44 | ||
45 | ||
46 | /////////////////////////////////////////////////////////////////////////////////////////////////// | |
47 | // | |
48 | // define the analysis chain to be run | |
49 | // | |
50 | ||
51 | // AliHLTConfiguration pubconf("hltesd-publisher", "ESDMCEventPublisher", NULL , "-entrytype HLTESD -datapath .."); | |
52 | ||
53 | AliHLTConfiguration triggerconf("upc", "UpcTrigger", "GLOBAL-esd-converter", ""); | |
54 | //AliHLTConfiguration globaltriggerconf("global-trigger", "HLTGlobalTrigger", "multiplicity-trigger" , ""); | |
55 | ||
56 | // Reconstruction settings | |
57 | AliReconstruction rec; | |
58 | ||
59 | // QA options | |
60 | rec.SetRunQA(":") ; | |
61 | ||
62 | // AliReconstruction settings | |
63 | rec.SetInput(filename); | |
64 | rec.SetSpecificStorage("GRP/GRP/Data",Form("local://%s",gSystem->pwd())); | |
65 | ||
66 | rec.SetEventRange(0,100); | |
67 | ||
68 | rec.SetRunVertexFinder(kFALSE); | |
69 | ||
70 | rec.SetRunLocalReconstruction("HLT"); | |
71 | rec.SetRunTracking(""); | |
72 | rec.SetFillESD(""); | |
73 | ||
74 | //rec.SetRunReconstruction("HLT"); | |
75 | //rec.SetLoadAlignFromCDB(0); | |
76 | ||
77 | rec.SetOption("HLT", "loglevel=0x7c chains=upc"); | |
78 | ||
79 | rec.Run(); | |
80 | ||
81 | } |