#include "AliHLTLogging.h"
#include "AliHLTSystem.h"
#include "AliHLTDefinitions.h"
+#include "AliHLTCDHWrapper.h"
#include <cstdlib>
#include <cerrno>
#include <cassert>
fHitRec->GenerateClusterInfo(makeClusters);
fHitRec->GenerateChannelInfo(makeChannels);
fHitRec->DDLNumber(fDDL);
+ //The DDL number has to be set before the following InitDetElemInDDLArray() method
+ fHitRec->InitDetElemInDDLArray();
HLTDebug("dHLT hit reconstruction component is initialized.");
return 0;
}
///
/// Inherited from AliHLTComponent. Performs a cleanup of the component.
///
-
+ fHitRec->DeInitDetElemInDDLArray();
HLTInfo("Deinitialising dHLT hit reconstruction component.");
FreeMemory();
return 0;
/// cut parameter if 'cdbEntry' equals "HLT/ConfigMUON/HitReconstructor".
/// \param componentId The name of the component in the current chain.
- bool startsWithMUON = TString(cdbEntry).Index("MUON/", 5, 0, TString::kExact) == 0;
- bool givenConfigPath = strcmp(cdbEntry, AliHLTMUONConstants::HitReconstructorCDBPath()) == 0;
+ TString path = cdbEntry;
+ bool startsWithMUON = path.Index("MUON/", 5, 0, TString::kExact) == 0;
+ bool givenConfigPath = (path == AliHLTMUONConstants::HitReconstructorCDBPath());
if (cdbEntry == NULL or startsWithMUON or givenConfigPath)
{
break;
}
+ AliHLTCDHWrapper cdh(blocks[n].fPtr);
+
+ AliHLTUInt32_t headerSize = cdh.GetHeaderSize();
+
AliHLTUInt32_t totalDDLSize = blocks[n].fSize / sizeof(AliHLTUInt32_t);
- AliHLTUInt32_t ddlRawDataSize = totalDDLSize - fHitRec->GetkDDLHeaderSize();
+ AliHLTUInt32_t ddlRawDataSize = totalDDLSize - headerSize / sizeof(AliHLTUInt32_t);
AliHLTUInt32_t* buffer = reinterpret_cast<AliHLTUInt32_t*>(blocks[n].fPtr)
- + fHitRec->GetkDDLHeaderSize();
+ + headerSize/sizeof(AliHLTUInt32_t);
AliHLTUInt32_t nofHit = block.MaxNumberOfEntries();
#ifdef DEBUG
}
int result = sscanf(
- str.c_str(), "%d\t%d\t%d\t%d\t%e\t%e\t%e\t%e\t%d\t%e\t%e\t%e\t%e\t%d\t%d",
+ str.c_str(), "%14d\t%14d\t%14d\t%14d\t%23e\t%23e\t%23e\t%23e\t%14d\t%23e\t%23e\t%23e\t%23e\t%14d\t%14d",
&idManuChannel, &fLut[i].fDetElemId, &fLut[i].fIX,
&fLut[i].fIY, &fLut[i].fRealX,
&fLut[i].fRealY, &fLut[i].fRealZ,
}
MaxEntryPerBusPatch::iterator it;
- for(it=fMaxEntryPerBusPatch.begin();it!=fMaxEntryPerBusPatch.end();it++){
- HLTDebug("fMaxEntryPerBusPatch[%d] : %d",it->first,it->second);
- fMaxEntryPerBusPatch[it->first] = AliHLTInt32_t(0.05*(it->second));///< for 10% occupancy
- HLTDebug("fMaxEntryPerBusPatch[%d] : %d",it->first,it->second);
-
+ for(it=fMaxEntryPerBusPatch.begin(); it!=fMaxEntryPerBusPatch.end(); it++){
+ HLTDebug("fMaxEntryPerBusPatch[%d] : %d",it->first,it->second);
+ fMaxEntryPerBusPatch[it->first] = AliHLTInt32_t(0.05*(it->second));///< for 10% occupancy
+ HLTDebug("fMaxEntryPerBusPatch[%d] : %d",it->first,it->second);
}
return 0;
HLTError("Failed to load geomerty data.");
return -ENOENT;
}
-
+
AliMUONCalibrationData calibData(AliCDBManager::Instance()->GetRun());
bool skippedPads = false;
Int_t idManuChannel, manuId, channelId, buspatchId;
AliHLTFloat32_t padSizeX, padSizeY;
AliHLTFloat32_t halfPadSize;
+ AliHLTFloat32_t padSizeXY;
Double_t realX, realY, realZ;
Double_t localX, localY, localZ;
Float_t calibA0Coeff,calibA1Coeff,pedestal,sigma;
continue;
}
- if (plane == 0)
+
+ if (plane == 0){
halfPadSize = padSizeX;
- else
+ padSizeXY = padSizeY;
+ }else{
halfPadSize = padSizeY;
-
+ padSizeXY = padSizeX;
+ }
+
fIdToEntry[idManuChannel] = iEntry+1;
fMaxEntryPerBusPatch[buspatchId] = fMaxEntryPerBusPatch[buspatchId] + 1;
lut.fRealY = realY;
lut.fRealZ = realZ;
lut.fHalfPadSize = halfPadSize;
+ lut.fPadSizeXY = padSizeXY;
lut.fPlane = plane;
lut.fPed = pedestal;
lut.fSigma = sigma;
fLut[0].fRealY = 0.0;
fLut[0].fRealZ = 0.0;
fLut[0].fHalfPadSize = 0.0;
+ fLut[0].fPadSizeXY = 0.0;
fLut[0].fPlane = -1;
fLut[0].fPed = -1;
fLut[0].fSigma = -1;
lutList.clear();
MaxEntryPerBusPatch::iterator it;
- for(it=fMaxEntryPerBusPatch.begin();it!=fMaxEntryPerBusPatch.end();it++){
- HLTDebug("fMaxEntryPerBusPatch[%d] : %d",it->first,it->second);
- fMaxEntryPerBusPatch[it->first] = AliHLTInt32_t(0.05*(it->second));///< for 10% occupancy
- HLTDebug("fMaxEntryPerBusPatch[%d] : %d",it->first,it->second);
+ for(it=fMaxEntryPerBusPatch.begin(); it!=fMaxEntryPerBusPatch.end(); it++){
+ HLTDebug("fMaxEntryPerBusPatch[%d] : %d",it->first,it->second);
+ fMaxEntryPerBusPatch[it->first] = AliHLTInt32_t(0.05*(it->second));///< for 10% occupancy
+ HLTDebug("fMaxEntryPerBusPatch[%d] : %d",it->first,it->second);
}
return 0;