#include "AliRunInfo.h"
#include "AliGRPObject.h"
#include "AliRawReaderMemory.h"
+#include "AliGeomManager.h"
#include "AliVZERORecoParam.h"
#include "AliVZEROReconstructor.h"
Int_t iResult=0;
+ // -- Load GeomManager
+ if(AliGeomManager::GetGeometry()==NULL){
+ AliGeomManager::LoadGeometry();
+ }
+
// -- Read configuration object : HLT/ConfigVZERO/VZEROReconstruction
TString cdbPath="HLT/ConfigVZERO/";
cdbPath+=GetComponentID();
// -- 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
#include "AliHLTZDCESDRecoComponent.h"
#include "AliHLTDefinitions.h"
#include "AliRawReaderMemory.h"
+#include "AliGeomManager.h"
#include "AliGRPObject.h"
#include "AliZDCReconstructor.h"
#include "AliZDCRecoParam.h"
// 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();
AliGRPObject* pGRP = pOCDBEntry?dynamic_cast<AliGRPObject*>(pOCDBEntry):NULL;
Float_t beamEnergy=0.;
if(pGRP) beamEnergy = pGRP->GetBeamEnergy();
+
TString beamType="";
if(pGRP) beamType = pGRP->GetBeamType();
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);
}
// 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