]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
- Add loading of GeomManager
authorjthaeder <jthaeder@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 3 Nov 2010 14:08:02 +0000 (14:08 +0000)
committerjthaeder <jthaeder@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 3 Nov 2010 14:08:02 +0000 (14:08 +0000)
- fix of handling of empty blocks

HLT/VZERO/AliHLTVZERORecoComponent.cxx
HLT/ZDC/AliHLTZDCESDRecoComponent.cxx

index 1d1387a12959ed27ed73e0480b9ff0e851af6bfe..f5eca8b0b62fbdd6e40c51046d21b9b26bcc4cfb 100644 (file)
@@ -33,6 +33,7 @@ using namespace std;
 #include "AliRunInfo.h"
 #include "AliGRPObject.h"
 #include "AliRawReaderMemory.h"
+#include "AliGeomManager.h"
 
 #include "AliVZERORecoParam.h"
 #include "AliVZEROReconstructor.h"
@@ -154,6 +155,11 @@ Int_t AliHLTVZERORecoComponent::DoInit( Int_t argc, const Char_t** argv ) {
 
   Int_t iResult=0;
 
+  // -- Load GeomManager
+  if(AliGeomManager::GetGeometry()==NULL){
+    AliGeomManager::LoadGeometry();
+  }
+  
   // -- Read configuration object : HLT/ConfigVZERO/VZEROReconstruction
   TString cdbPath="HLT/ConfigVZERO/";
   cdbPath+=GetComponentID();
@@ -320,8 +326,8 @@ Int_t AliHLTVZERORecoComponent::DoEvent(const AliHLTComponentEventData& /*evtDat
   // -- Get VZERO raw dat a input block and set up the rawreader
   const AliHLTComponentBlockData* pBlock = GetFirstInputBlock(kAliHLTDataTypeDDLRaw|kAliHLTDataOriginVZERO);
   if (!pBlock) {
-    HLTError("No VZERO input block !!!");
-    return -1;
+    HLTInfo("No VZERO input block !!!");
+    return 0;
   }
   
   // -- Add input block to raw reader
index 19479e9773d334933e5e9eff868d9a02b73e500d..fe901537df3a527116ca49cad2cda8450429b37a 100644 (file)
@@ -30,6 +30,7 @@ using namespace std;
 #include "AliHLTZDCESDRecoComponent.h"
 #include "AliHLTDefinitions.h"
 #include "AliRawReaderMemory.h"
+#include "AliGeomManager.h"
 #include "AliGRPObject.h"
 #include "AliZDCReconstructor.h"
 #include "AliZDCRecoParam.h"
@@ -100,6 +101,11 @@ int AliHLTZDCESDRecoComponent::DoInit( int argc, const char** argv )
   // see header file for class documentation
   int iResult=0;
 
+  // -- Load GeomManager
+  if(AliGeomManager::GetGeometry()==NULL){
+    AliGeomManager::LoadGeometry();
+  }
+  
   // read configuration object : HLT/ConfigZDC/
   TString cdbPath="HLT/ConfigZDC/";
   cdbPath+=GetComponentID();
@@ -116,6 +122,7 @@ int AliHLTZDCESDRecoComponent::DoInit( int argc, const char** argv )
   AliGRPObject* pGRP = pOCDBEntry?dynamic_cast<AliGRPObject*>(pOCDBEntry):NULL;
   Float_t  beamEnergy=0.;
   if(pGRP) beamEnergy = pGRP->GetBeamEnergy(); 
+
   TString beamType="";
   if(pGRP) beamType = pGRP->GetBeamType();
 
@@ -162,6 +169,9 @@ int AliHLTZDCESDRecoComponent::DoInit( int argc, const char** argv )
     else if((beamType.CompareTo("A-A"))==0) fReconstructor->SetRecoParam(AliZDCRecoParamPbPb::GetHighFluxParam(2*beamEnergy));
     else HLTWarning(" Beam type not known by ZDC!");
   
+    if((beamType.CompareTo("A-A"))==0)
+      beamEnergy = 2760.;
+
     fReconstructor->Init(beamType, beamEnergy);
   }
 
@@ -210,8 +220,8 @@ int AliHLTZDCESDRecoComponent::DoEvent(const AliHLTComponentEventData& /*evtData
   // get ZDC raw input data block and set up the rawreader
   const AliHLTComponentBlockData* pBlock = GetFirstInputBlock(kAliHLTDataTypeDDLRaw|kAliHLTDataOriginZDC);
   if (!pBlock) {
-    HLTError("No ZDC input block !!!");
-    return -1;
+    HLTInfo("No ZDC input block !!!");
+    return 0;
   }
 
   // add input block to raw reader