1 // This macro is used to make performace studies with MC info
2 // usage: aliroot rec-hlt-trd-digits.cxx("/data/run/") reconstruct local digits file
3 // or copy into folder and aliroot rec-hlt-trd.cxx reconstruct local digits file in pwd
5 #if !defined (__CINT__) || defined (__MAKECINT__)
14 #include "AliHLTSystem.h"
16 #include "AliHLTDataTypes.h"
17 #include "AliHLTConfiguration.h"
19 #include <valgrind/callgrind.h>
22 #include "AliHLTOfflineInterface.h"
23 #include "AliRunLoader.h"
24 #include "AliReconstructor.h"
28 #include "readCDBentry.h"
30 int rec_hlt_trd_digits(const TString input = gSystem->pwd());
31 int main(int argc, char** argv)
33 if(argc==2) return rec_hlt_trd_digits(argv[1]);
34 else return rec_hlt_trd_digits();
37 int rec_hlt_trd_digits(const TString input){
39 // Use custom arguments for components? i.e.: not reading OCDB arguments
40 Bool_t customArgs=kFALSE;
43 Bool_t disableHLTflag=kFALSE;
47 ////////////////////////////////
49 gSystem->ChangeDirectory(input.Data());
51 InitGRP("local://$ALICE_ROOT/OCDB",Form("local://",gSystem->pwd()));
53 AliRunLoader* runLoader = AliRunLoader::Open("galice.root");
54 AliHLTOfflineInterface::SetParamsToComponents(runLoader, NULL);
57 AliLog::SetGlobalDebugLevel(1);
58 //AliLog::SetClassDebugLevel("AliTRDrawStream", 11);
59 /* enum ETpye {kFatal=0, kError, kWarning, kInfo, kDebug, kMaxType}; */
60 gHLT.SetGlobalLoggingLevel((AliHLTComponentLogSeverity)0x7f);
61 /* enum AliHLTComponentLogSeverity {
63 kHLTLogBenchmark = 0x1,
69 few important messages not to be filtered out.
70 redirected to kHLTLogInfo in AliRoot
71 kHLTLogImportant = 0x40,
72 special value to enable all messages
74 the default logging filter
79 gHLT.LoadComponentLibraries("libAliHLTUtil.so libAliHLTTRD.so libAliHLTMUON.so libAliHLTGlobal.so libAliHLTTrigger.so");
82 AliHLTConfiguration pubDigiConf("TRD-DigiP", "AliLoaderPublisher", NULL , "-loader TRDLoader -tree digits -datatype 'ALITREED' 'TRD '");
85 if(customArgs || disableHLTflag){
86 arg = readCDBentry("HLT/ConfigTRD/ClusterizerComponent"); //output_percentage 100 -lowflux -experiment -tailcancellation -faststreamer -yPosMethod LUT
87 arg += " -highLevelOutput yes -emulateHLToutput no";
89 arg += " -HLTflag no";
91 // clusterizer which processes digits
92 AliHLTConfiguration cfDigiConf("TRD-DigiCF", "TRDOfflineClusterizer", "TRD-DigiP", arg.Data());
95 if(customArgs || disableHLTflag){
96 arg = readCDBentry("HLT/ConfigTRD/TrackerV1Component"); //"output_percentage 100 -lowflux -NTimeBins 24";
97 arg += " -highLevelOutput yes -emulateHLToutput no";
101 // tracker reading the output from the clusterizer which processes the digits
102 AliHLTConfiguration trDigiConf("TRD-DigiTR", "TRDOfflineTrackerV1", "TRD-DigiCF", arg.Data());
104 // root file writer (with esd friends and MC)
105 AliHLTConfiguration writerDigiConf("TRD-DigiEsdFile", "TRDEsdWriter", "TRD-DigiTR", "-concatenate-events -concatenate-blocks");
107 gHLT.BuildTaskList(&writerDigiConf);
108 gHLT.Run(runLoader->GetNumberOfEvents());