#endif
#include "initGRP.h"
+#include "readCDBentry.h"
void aliHLTTRDrun(const TString inDir = gSystem->pwd());
int main(int argc, char** argv)
Int_t TRDmodules[18] = {0,1,7,8,9,10,17,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1};
// Use custom arguments for components? i.e.: not reading OCDB arguments
- Bool_t customArgs=kTRUE;
+ Bool_t customArgs=kFALSE;
// Disable HLT flag?
Bool_t disableHLTflag=kFALSE;
gHLT.LoadComponentLibraries("libAliHLTUtil.so libAliHLTTRD.so libAliHLTMUON.so libAliHLTGlobal.so libAliHLTTrigger.so");
- InitGRP("local://$ALICE_ROOT/OCDB",inDir.Data());
+ InitGRP("local://$ALICE_ROOT/OCDB","local:///software/data/ppbench"/*inDir.Data()*/);
+ //TString sGeomPath = " -geometry "+inDir+"/geometry.root";
TString inFolder = inDir+"/raw", inFile = "/TRD_", inExt = ".ddl";
TString sinput = " -datatype 'DDL_RAW ' 'TRD '";
TString temp1, temp2;
- Int_t spec, startEvent=10, nEvents=30, ddl; //KR: start=10, nEvents=20;
+ Int_t spec, startEvent=0, nEvents=240, ddl; //KR: start=10, nEvents=30;
for(Int_t Event=startEvent; Event<(nEvents+startEvent); Event++){
temp1=inFolder;
temp1+=Event;
sinput+=" -nextevent";
}
printf("%s\n",sinput.Data());
- TString sCFArgs = "";//"output_percentage 700 -lowflux -simulation -tailcancellation -yPosMethod LUT"; //-processTracklets
- TString sTrackerArgs = "";//"output_percentage 100 -lowflux -NTimeBins 24";
+ TString sCFArgs = "";
+ TString sTrackerArgs = "";
if(customArgs || disableHLTflag){
- sCFArgs = "output_percentage 700 -lowflux -experiment -tailcancellation -faststreamer -yPosMethod LUT";
- sTrackerArgs = "output_percentage 100 -lowflux -PIDmethod NN"; // -highLevelOutput yes -emulateHLTTracks yes
+ sCFArgs = readCDBentry("HLT/ConfigTRD/ClusterizerComponent"); //output_percentage 100 -lowflux -experiment -tailcancellation -faststreamer -yPosMethod LUT
+ sTrackerArgs = readCDBentry("HLT/ConfigTRD/TrackerV1Component"); //"output_percentage 100 -lowflux -NTimeBins 24";
+ sCFArgs += ""; // -processTracklets
+ sTrackerArgs += ""; // -highLevelOutput yes -emulateHLToutput no
if(disableHLTflag){
sCFArgs +=" -HLTflag no";
sTrackerArgs +=" -HLTflag no";
AliHLTConfiguration HClustMultTrig("HClustMultTrig", "TrdClusterMultiplicityTrigger", "HClusterizer", "-MultiplicityThresh 400");
AliHLTConfiguration HTracker("HTracker", "TRDTrackerV1", "HClusterizer", sTrackerArgs);
- AliHLTConfiguration HCalib("HCalib", "TRDCalibration", "HTracker", "-TrgStr hi -rejectTrgStr");
- AliHLTConfiguration HWriterCalib("HWriterCalib", "ROOTFileWriter", "HCalib", "-directory output/ -datafile calib.root -concatenate-events -concatenate-blocks -write-all-events");
+ AliHLTConfiguration HCalib("HCalib", "TRDCalibration", "HTracker", "-pushback-period=10 -TrgStr hi -rejectTrgStr");
+ AliHLTConfiguration HWriterCalib("HWriterCalib", "ROOTFileWriter", "HCalib", "-directory output/ -datafile calib.root -concatenate-events -concatenate-blocks -write-all-events");
AliHLTConfiguration HESDMaker("HESDMaker", "GlobalEsdConverter", "HTracker", "-notree");
AliHLTConfiguration HTrackMerger("HTrackMerger", "GlobalTrackMerger", "HTracker", "");
AliHLTConfiguration HClHisto("HClHisto", "TRDClusterHisto", "HClusterizer", "-pushback-period=10");
- AliHLTConfiguration HWriterHisto("HWriterHisto", "ROOTFileWriter", "HClHisto", "-directory output/ -datafile histo.root -concatenate-events -concatenate-blocks");
+ AliHLTConfiguration HClWriterHisto("HClWriterHisto", "ROOTFileWriter", "HClHisto", "-directory output/ -datafile clHisto.root -concatenate-events -concatenate-blocks");
+
+ AliHLTConfiguration HTrHisto("HTrHisto", "TRDTrackHisto", "HTracker", "-pushback-period=10");
+ AliHLTConfiguration HTrWriterHisto("HTrWriterHisto", "ROOTFileWriter", "HTrHisto", "-directory output/ -datafile trHisto.root -concatenate-events -concatenate-blocks");
AliHLTConfiguration writerOffConf("esdWriter", "TRDEsdWriter", "HTracker", "-datafile AliHLTTRDESDs.root -concatenate-events -concatenate-blocks");
gHLT.BuildTaskList(&HTracker);
- //gHLT.BuildTaskList(&HClHisto);
+ //gHLT.BuildTaskList(&HESDMaker);
//gHLT.BuildTaskList(&writerOffConf);
//gHLT.BuildTaskList(&HCalib);
//------------------------------------
AliCDBManager::Instance()->SetDefaultStorage(OCDBpath.Data());
- AliCDBManager::Instance()->SetSpecificStorage("GRP/GRP/Data", Form("local://%s",GRPpath.Data()));
+ AliCDBManager::Instance()->SetSpecificStorage("GRP/GRP/Data", GRPpath.Data());
AliCDBManager::Instance()->SetRun(0);
AliCDBEntry* entry = AliCDBManager::Instance()->Get("GRP/GRP/Data");
--- /dev/null
+#if !defined (__CINT__) || defined (__MAKECINT__)
+
+#include "AliCDBManager.h"
+#include "AliCDBPath.h"
+#include "AliCDBEntry.h"
+#include "TObjString.h"
+#endif
+
+TString readCDBentry(TString arg){
+ AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+ AliCDBEntry* entry = AliCDBManager::Instance()->Get(arg.Data());
+ TObjString* objstr = dynamic_cast<TObjString*>(entry->GetObject());
+ return objstr->GetString();
+}
// This macro is used to make performace studies with MC info
// usage: aliroot rec-hlt-trd-digits.cxx("/data/run/") reconstruct local digits file
-// or copy into folder and aliroot rec-hlt-trd.cxx reconstruct local digits file in pwd
+// or copy into folder and aliroot rec-hlt-trd.cxx reconstruct local digits file in pwd
#if !defined (__CINT__) || defined (__MAKECINT__)
#endif
#include "initGRP.h"
+#include "readCDBentry.h"
int rec_hlt_trd_digits(const TString input = gSystem->pwd());
int main(int argc, char** argv)
int rec_hlt_trd_digits(const TString input){
// Use custom arguments for components? i.e.: not reading OCDB arguments
- Bool_t customArgs=kTRUE;
+ Bool_t customArgs=kFALSE;
// Disable HLT flag?
Bool_t disableHLTflag=kFALSE;
gSystem->ChangeDirectory(input.Data());
- InitGRP("local://$ALICE_ROOT/OCDB",gSystem->pwd());
+ InitGRP("local://$ALICE_ROOT/OCDB",Form("local://",gSystem->pwd()));
AliRunLoader* runLoader = AliRunLoader::Open("galice.root");
AliHLTOfflineInterface::SetParamsToComponents(runLoader, NULL);
TString arg="";
if(customArgs || disableHLTflag){
- arg="output_percentage 700 -lowflux -experiment -tailcancellation -faststreamer -yPosMethod LUT -highLevelOutput yes -emulateHLTClusters yes";
+ arg = readCDBentry("HLT/ConfigTRD/ClusterizerComponent"); //output_percentage 100 -lowflux -experiment -tailcancellation -faststreamer -yPosMethod LUT
+ arg += " -highLevelOutput yes -emulateHLToutput no";
if(disableHLTflag)
- arg+=" -HLTflag no";
+ arg += " -HLTflag no";
}
// clusterizer which processes digits
AliHLTConfiguration cfDigiConf("TRD-DigiCF", "TRDOfflineClusterizer", "TRD-DigiP", arg.Data());
arg="";
if(customArgs || disableHLTflag){
- arg="output_percentage 100 -lowflux -PIDmethod NN -highLevelOutput yes -emulateHLTTracks yes";
+ arg = readCDBentry("HLT/ConfigTRD/TrackerV1Component"); //"output_percentage 100 -lowflux -NTimeBins 24";
+ arg += " -highLevelOutput yes -emulateHLToutput no";
if(disableHLTflag)
arg+=" -HLTflag no";
}
-// This macro is used to simulate the HLT reconstruction
+// This macro is used to simulate the HLT::TRD reconstruction
// usage: aliroot rec-hlt-trd.cxx("/data/run/raw.root") reconstruct local raw root file (you might add "alien://" to reconstruct remotely)
// or: aliroot rec-hlt-trd.cxx("/data/run/") reconstruct local raw ddls *1
// or copy into folder and aliroot rec-hlt-trd.cxx reconstruct raw.root in pwd
#include "AliExternalTrackParam.h"
#endif
+#include "readCDBentry.h"
int rec_hlt_trd(const TString input ="raw.root", TString outPath=gSystem->pwd());
Int_t ExtractRunNumber(const TString str);
//
// What chains should be run? (usually would be: TRD-OffEsdFile)
- TString chains="TRD-CalibFile";
+ TString chains="TRD-OffEsdFile";
// cosmics or not
Bool_t bCosmics=kFALSE;
Int_t TRDmodules[18] = {0,1,7,8,9,10,17,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1};
// Use custom arguments for components? i.e.: not reading OCDB arguments
- Bool_t customArgs=kTRUE;
+ Bool_t customArgs=kFALSE;
// Disable HLT flag?
Bool_t disableHLTflag=kFALSE;
// Clusterizer
arg = "";
if(customArgs || disableHLTflag){
- arg="output_percentage 700 -lowflux -experiment -tailcancellation -faststreamer -yPosMethod LUT";
+ arg = readCDBentry("HLT/ConfigTRD/ClusterizerComponent"); //output_percentage 100 -lowflux -experiment -tailcancellation -faststreamer -yPosMethod LUT
+ arg += "";
if(disableHLTflag)
- arg+=" -HLTflag no";
+ arg += " -HLTflag no";
}
cf.Form("TRD-CF_%02d", TRDmodules[module]);
// Tracker
arg="";
if(customArgs || disableHLTflag){
- arg="output_percentage 100 -lowflux -PIDmethod NN";
+ arg = readCDBentry("HLT/ConfigTRD/TrackerV1Component"); //"output_percentage 100 -lowflux -NTimeBins 24";
+ arg += "";
if(disableHLTflag)
- arg+=" -HLTflag no";
+ arg += " -HLTflag no";
}
tr.Form("TRD-TR_%02d", TRDmodules[module]);
afterTr+=tr;
// Offline Tracker (for debug purposes only)
- arg="";
- if(customArgs || disableHLTflag){
- arg="output_percentage 100 -lowflux -PIDmethod NN -highLevelOutput yes -emulateHLTTracks yes";
- if(disableHLTflag)
- arg+=" -HLTflag no";
- }
+ arg = readCDBentry("HLT/ConfigTRD/TrackerV1Component"); //"output_percentage 100 -lowflux -NTimeBins 24";
+ arg += " -highLevelOutput yes -emulateHLToutput no";
+ if(disableHLTflag)
+ arg+=" -HLTflag no";
trOff.Form("TRD-TROFF_%02d", TRDmodules[module]);
AliHLTConfiguration trOffConf(trOff.Data(), "TRDOfflineTrackerV1", cf.Data(), arg.Data());