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);
// 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::GetOCDBObjectDescription( TMap* const targetMap) {
// Get a list of OCDB object description.
if (!targetMap) return;
- targetMap->Add(new TObjString(fgkOCDBEntry),
+ targetMap->Add(new TObjString(fOCDBEntry),
new TObjString(Form("%s threshold trigger OCDB object", fDetector.Data()) )
);
}
AliHLTCaloClusterReader * fClusterReader; //!transient
/// the default configuration entry for this component
- const char* fgkOCDBEntry; //!transient
+ const char* fOCDBEntry; //!transient
- AliHLTComponentDataType fgkInputDataType; ///Input data type for calo struct input, must be set in child class
+ AliHLTComponentDataType fInputDataType; ///Input data type for calo struct input, must be set in child class
ClassDef(AliHLTTriggerCaloClusterEnergy, 0)
// or
// visit http://web.ift.uib.no/~kjeks/doc/alice-hlts
- fgkOCDBEntry = "HLT/ConfigHLT/EmcalClusterEnergyTrigger";
- fgkInputDataType = kAliHLTDataTypeCaloCluster | kAliHLTDataOriginEMCAL;
+ fOCDBEntry = "HLT/ConfigHLT/EmcalClusterEnergyTrigger";
+ fInputDataType = kAliHLTDataTypeCaloCluster | kAliHLTDataOriginEMCAL;
}
AliHLTTriggerEmcalClusterEnergy::~AliHLTTriggerEmcalClusterEnergy() {
// or
// visit http://web.ift.uib.no/~kjeks/doc/alice-hlts
- fgkOCDBEntry = "HLT/ConfigHLT/PhosClusterEnergyTrigger";
- fgkInputDataType = kAliHLTDataTypeCaloCluster | kAliHLTDataOriginPHOS;
+ fOCDBEntry = "HLT/ConfigHLT/PhosClusterEnergyTrigger";
+ fInputDataType = kAliHLTDataTypeCaloCluster | kAliHLTDataOriginPHOS;
}
AliHLTTriggerPhosClusterEnergy::~AliHLTTriggerPhosClusterEnergy() {
//cluster.SetClusterType(nuOfmTracks);
event.AddCaloCluster(&cluster);
- event.SetFirstPHOSCluster(0);
event.Write();
delete file;
gSystem->Load("libAliHLTMUON.so");
gSystem->Load("libAliHLTTRD.so");
gSystem->Load("libAliHLTTrigger.so");
- CreateInput("PhosClusterEnergyTriggerTestInput1.root", -2, 0.1, 1.99);
+ CreateInput("PhosClusterEnergyTriggerTestInput1.root", -2, 0.1, 0.99);
CreateInput("PhosClusterEnergyTriggerTestInput2.root", 0, 2.1, 4.0);
AliHLTSystem sys;
sys.LoadComponentLibraries("libAliHLTUtil.so");
sys.LoadComponentLibraries("libAliHLTTrigger.so");
const char* cmdline = " -datatype ROOTTOBJ 'HLT ' -datafile PhosClusterEnergyTriggerTestInput1.root -nextevent -datafile PhosClusterEnergyTriggerTestInput2.root";
AliHLTConfiguration pub("pub", "ROOTFilePublisher", NULL, cmdline);
- AliHLTConfiguration proc("proc", "PhosClusterEnergyTrigger", "pub", "-energy 2");
+ AliHLTConfiguration proc("proc", "PhosClusterEnergyTrigger", "pub", "");
AliHLTConfiguration sink("sink", "ROOTFileWriter", "proc", "-datafile PhosClusterEnergyTriggerTestOutput.root -concatenate-events");
sys.BuildTaskList("sink");
sys.Run(2);