#include "AliHLTPHOSClusterAnalyserComponent.h"
#include "AliHLTPHOSClusterAnalyser.h"
#include "AliHLTPHOSRecPointHeaderStruct.h"
+#include "AliHLTPHOSDigitDataStruct.h"
#include "AliHLTCaloClusterDataStruct.h"
#include "AliPHOSGeoUtils.h"
#include "TGeoManager.h"
continue;
}
specification = specification|iter->fSpecification;
- fClusterAnalyserPtr->SetRecPointDataPtr(reinterpret_cast<AliHLTPHOSRecPointHeaderStruct*>(iter->fPtr));
- // HLTDebug("Number of rec points: %d", (reinterpret_cast<AliHLTPHOSRecPointHeaderStruct*>(iter->fPtr))->fNRecPoints);
-
+ AliHLTPHOSDigitHeaderStruct *digitHeader = reinterpret_cast<AliHLTPHOSDigitHeaderStruct*>(iter->fPtr);
+ fClusterAnalyserPtr->SetRecPointDataPtr(reinterpret_cast<AliHLTPHOSRecPointHeaderStruct*>(reinterpret_cast<Long_t>(iter->fPtr) + sizeof(AliHLTPHOSDigitHeaderStruct) + digitHeader->fNDigits*sizeof(AliHLTPHOSDigitDataStruct)), digitHeader);
if(fDoDeconvolution)
{
fClusterAnalyserPtr->DeconvoluteClusters();
//See headerfile for documentation
+ HLTError("Doing init...");
+
fClusterAnalyserPtr = new AliHLTPHOSClusterAnalyser();
- const char *path = "HLT/ConfigPHOS/ClusterAnalyserComponent";
+ // const char *path = "HLT/ConfigPHOS/ClusterAnalyserComponent";
GetGeometryFromCDB();
- ConfigureFromCDBTObjString(path);
+ // ConfigureFromCDBTObjString(path);
for (int i = 0; i < argc; i++)
{
int
AliHLTPHOSClusterAnalyserComponent::GetGeometryFromCDB()
{
+ HLTError("Getting geometry...");
+
+ AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
AliCDBPath path("GRP","Geometry","Data");
if(path.GetPath())
{
- HLTInfo("configure from entry %s", path.GetPath());
+ // HLTInfo("configure from entry %s", path.GetPath());
AliCDBEntry *pEntry = AliCDBManager::Instance()->Get(path/*,GetRunNo()*/);
if (pEntry)
{
}
gGeoManager = (TGeoManager*) pEntry->GetObject();
-
- fPHOSGeometry = new AliPHOSGeoUtils("PHOS", "noCPV");
- fClusterAnalyserPtr->SetGeometry(fPHOSGeometry);
+ HLTError("gGeoManager = 0x%x", gGeoManager);
+ if(gGeoManager)
+ {
+ fPHOSGeometry = new AliPHOSGeoUtils("PHOS", "noCPV");
+ fClusterAnalyserPtr->SetGeometry(fPHOSGeometry);
+ }
}
else
{
- HLTError("can not fetch object \"%s\" from OCDB", path);
+ // HLTError("can not fetch object \"%s\" from OCDB", path);
}
}
+ return 0;
}