#include "AliHLTCaloClusterDataStruct.h"
#include "TRefArray.h"
#include "TString.h"
+#include "TMap.h"
/** ROOT macro for the implementation of ROOT specific class methods */
ClassImp(AliHLTTriggerCaloClusterEnergy)
fClustersRefs(NULL),
fDetector(detector),
fClusterReader(NULL),
- fgkOCDBEntry(""),
- fgkInputDataType()
+ fOCDBEntry(""),
+ fInputDataType()
{
// see header file for class documentation
// or
}
-//const char* AliHLTTriggerCaloClusterEnergy::fgkOCDBEntry="HLT/ConfigHLT/CaloClusterEnergyTrigger";
AliHLTTriggerCaloClusterEnergy::~AliHLTTriggerCaloClusterEnergy() {
// see header file for class documentation
//Try the caloclusterstruct input
- for (const AliHLTComponentBlockData* pBlock=GetFirstInputBlock(fgkInputDataType); pBlock!=NULL; pBlock=GetNextInputBlock()) {
+ for (const AliHLTComponentBlockData* pBlock=GetFirstInputBlock(fInputDataType); pBlock!=NULL; pBlock=GetNextInputBlock()) {
AliHLTCaloClusterHeaderStruct *caloClusterHeader = reinterpret_cast<AliHLTCaloClusterHeaderStruct*>(pBlock->fPtr);
fClusterReader->SetMemory(caloClusterHeader);
description.Form("Event contains at least one %s cluster with energy > %.02f GeV.", fDetector.Data(), fEThreshold);
SetDescription(description.Data());
+
// Enable the detectors for readout.
- GetReadoutList().Enable( AliHLTReadoutList::kPHOS );
-
+
+ //GetReadoutList().Enable(AliHLTReadoutList::kPHOS);
+ SetCaloReadoutList(); //FR
+
// Add the available HLT information for readout too.
GetTriggerDomain().Add(kAliHLTAnyDataTypeID, fDetector.Data());
// see header file for class documentation
// first configure the default
- int iResult=ConfigureFromCDBTObjString(fgkOCDBEntry);
+ int iResult=ConfigureFromCDBTObjString(fOCDBEntry);
// configure from the command line parameters if specified
if (iResult>=0 && argc>0) {
// configure from the specified antry or the default one
const char* entry=cdbEntry;
- if (!entry || entry[0]==0) entry=fgkOCDBEntry;
+ if (!entry || entry[0]==0) entry=fOCDBEntry;
return ConfigureFromCDBTObjString(entry);
}
}
void AliHLTTriggerCaloClusterEnergy::GetOutputDataSize(unsigned long& constBase, double& inputMultiplier) {
- // see header file for class documentation
+ // see header file for documentation
constBase = sizeof(AliHLTTriggerDecision) + sizeof(AliHLTDomainEntry)*14;
inputMultiplier = 1;
}
+
+
+void AliHLTTriggerCaloClusterEnergy::GetOCDBObjectDescription( TMap* const targetMap) {
+ // Get a list of OCDB object description.
+ if (!targetMap) return;
+ targetMap->Add(new TObjString(fOCDBEntry),
+ new TObjString(Form("%s threshold trigger OCDB object", fDetector.Data()) )
+ );
+}