3 * @file rec-upc-trigger.C
4 * @brief Test macro for UPC trigger
8 * aliroot -b -q rec-upc-trigger.C | tee rec-upc-trigger.log
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
14 * aliroot -b -q rec-upc-trigger.C'("input.root")'
18 * @author Kyrre Skjerdal (kyrre.skjerdal@cern.ch)
21 void rec_upc_trigger(const char *filename="raw.root"){
23 if(!gSystem->AccessPathName("galice.root")){
24 cerr << "Remove galice.root or run in a different folder." << endl;
29 cerr << "please specify input or run without arguments" << endl;
33 // Set the CDB storage location
34 AliCDBManager *man = AliCDBManager::Instance();
35 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB/");
38 ///////////////////////////////////////////////////////////////////////////////////////////////////
40 // init the HLT system in order to define the analysis chain below
42 AliHLTSystem *gHLT = AliHLTPluginBase::GetInstance();
46 ///////////////////////////////////////////////////////////////////////////////////////////////////
48 // define the analysis chain to be run
51 // AliHLTConfiguration pubconf("hltesd-publisher", "ESDMCEventPublisher", NULL , "-entrytype HLTESD -datapath ..");
53 AliHLTConfiguration triggerconf("upc", "UpcTrigger", "GLOBAL-esd-converter", "");
54 //AliHLTConfiguration globaltriggerconf("global-trigger", "HLTGlobalTrigger", "multiplicity-trigger" , "");
56 // Reconstruction settings
57 AliReconstruction rec;
62 // AliReconstruction settings
63 rec.SetInput(filename);
64 rec.SetSpecificStorage("GRP/GRP/Data",Form("local://%s",gSystem->pwd()));
66 rec.SetEventRange(0,100);
68 rec.SetRunVertexFinder(kFALSE);
70 rec.SetRunLocalReconstruction("HLT");
71 rec.SetRunTracking("");
74 //rec.SetRunReconstruction("HLT");
75 //rec.SetLoadAlignFromCDB(0);
77 rec.SetOption("HLT", "loglevel=0x7c chains=upc");