]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
handle option 'ignore-hltout' for reconstruction from digits; code clean up
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 6 Jun 2011 06:59:48 +0000 (06:59 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 6 Jun 2011 06:59:48 +0000 (06:59 +0000)
HLT/rec/AliHLTOUTDigitReader.cxx
HLT/rec/AliHLTReconstructor.cxx

index 49e24e62d414bd6a9a9c86fd185e7d599da1f893..c42693b67970ac97c5fe240ffcfa2055a48da880 100644 (file)
@@ -139,6 +139,10 @@ bool AliHLTOUTDigitReader::ReadArrays()
     return false;
   }
 
+  // 2011-06-06 in order to support AliHLTReconstructor option 'ignore-hltout' for
+  // digits, the file name can be set to NULL, nothing done in that case 
+  if (!fDigitFileName) return false;
+
   if (!fpDigitFile) {
     fpDigitFile=new TFile(fDigitFileName);
   }
index bcdb166fed28af191f7080e6041955327cc11340..41b55d1c58f1fc1f0d955726116315085d5bc5b9 100644 (file)
@@ -275,9 +275,7 @@ void AliHLTReconstructor::Reconstruct(TTree* /*digitsTree*/, TTree* /*clustersTr
 {
   // reconstruct simulated data
 
-  // all reconstruction has been moved to FillESD
-  //AliReconstructor::Reconstruct(digitsTree,clustersTree);
-  AliInfo("running digit data reconstruction");
+  // all data processing has been moved to FillESD
 }
 
 void AliHLTReconstructor::FillESD(TTree* /*digitsTree*/, TTree* /*clustersTree*/, AliESDEvent* esd) const
@@ -290,10 +288,12 @@ void AliHLTReconstructor::FillESD(TTree* /*digitsTree*/, TTree* /*clustersTree*/
   TString option = GetOption();
   if (!option.IsNull() && 
       (option.Contains("config=") || option.Contains("chains="))) {
-    AliWarning(Form("HLT reconstruction can be run embedded into Alireconstruction from\n"
-                   "raw data (real or simulated)). Reconstruction of of digit data takes\n"
-                   "place in AliSimulation, appropriate input conversion is needed.\n"
-                   "Consider running embedded into AliSimulation."
+    AliWarning(Form("You are trying to run a custom HLT chain on digits data.\n\n"
+                   "HLT reconstruction can be run embedded into AliReconstruction from\n"
+                   "raw data (real or simulated)). Reconstruction of digit data takes\n"
+                   "place in AliSimulation, appropriate input conversion is needed to\n"
+                   "feed data from the detector digits into the HLT chain.\n"
+                   "Consider running embedded into AliSimulation.\n"
                    "        /***  run macro *****************************************/\n"
                    "        AliSimulation sim;\n"
                    "        sim.SetRunHLT(\"%s\");\n"
@@ -302,7 +302,8 @@ void AliHLTReconstructor::FillESD(TTree* /*digitsTree*/, TTree* /*clustersTree*/
                    "        sim.SetMakeSDigits(\"\");\n"
                    "        sim.SetMakeDigitsFromHits(\"\");\n"
                    "        sim.Run();\n"
-                   "        /*********************************************************/", option.Data()));
+                   "        /*********************************************************/\n\n",
+                   option.Data()));
   }
   if (!fpPluginBase) {
     AliError("internal memory error: can not get AliHLTSystem instance from plugin");
@@ -320,7 +321,12 @@ void AliHLTReconstructor::FillESD(TTree* /*digitsTree*/, TTree* /*clustersTree*/
       return;
     }
 
-    AliHLTOUTDigitReader* pHLTOUT=new AliHLTOUTDigitReader(esd->GetEventNumberInFile(), fpEsdManager);
+    const char* digitfile=NULL;
+    if ((fFlags&kAliHLTReconstructorIgnoreHLTOUT) == 0 ) {
+      digitfile="HLT.Digits.root";
+    }
+
+    AliHLTOUTDigitReader* pHLTOUT=new AliHLTOUTDigitReader(esd->GetEventNumberInFile(), fpEsdManager, digitfile);
     if (pHLTOUT) {
       ProcessHLTOUT(pHLTOUT, esd, (pSystem->GetGlobalLoggingLevel()&kHLTLogDebug)!=0);
       delete pHLTOUT;