+// $Id$
//**************************************************************************
//* This file is property of and copyright by the ALICE HLT Project *
//* ALICE Experiment at CERN, All rights reserved. *
#include "AliHLTGlobalBarrelTrack.h"
#include "TObjArray.h"
#include "TObjString.h"
-#include "TObjArray.h"
#include "AliCDBEntry.h"
#include "AliCDBManager.h"
#include "TFile.h"
// visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
fDetectorArray = new TObjArray(1);
+ fDetectorArray = new TObjArray(1);
+
fDetectorArray = new TObjArray;
}
// see header file for class documentation
}
-const char* AliHLTTriggerBarrelGeomMultiplicity::GetTriggerName() const
+const char* AliHLTTriggerBarrelGeomMultiplicity::GetTriggerName() const
{
// see header file for class documentation
+
return "BarrelGeomMultiplicityTrigger";
}
int iResult=0;
int numberOfTracks=-1;
+ if (!fTriggerDecisionPars) {
+ iResult=-ENODEV;
+ }
+
// try the ESD as input
const TObject* obj = GetFirstInputObject(kAliHLTAllDataTypes, "AliESDEvent");
- AliESDEvent* esd = dynamic_cast<AliESDEvent*>(const_cast<TObject*>(obj));
+n AliESDEvent* esd = dynamic_cast<AliESDEvent*>(const_cast<TObject*>(obj));
TString description;
if (esd != NULL)
}
}
+ bool condition=false;
+ description="Geometrical conditions not matched";
+ AliHLTReadoutList readout;
+
if (numberOfTracks>=fMinTracks)
{
- if(fTriggerDecisionPars)
- {
-
- SetDescription(fTriggerDecisionPars->GetDescription());
- AliHLTReadoutList readout(fTriggerDecisionPars->GetReadoutListParameter());
- AliHLTTriggerDecision decision(
- true,
- fTriggerDecisionPars->GetTriggerName().Data(),
- AliHLTTriggerDomain(readout),
- fTriggerDecisionPars->GetDescription()
- );
- TriggerEvent(&decision);
- HLTDebug("Geometrical acceptance trigger %s triggered", fTriggerDecisionPars->GetTriggerName().Data());
- }
- else
- {
- HLTError("Trigger decision parameters not set, event not triggered");
- }
+ condition=true;
+ description=fTriggerDecisionPars->GetDescription();
+ readout=fTriggerDecisionPars->GetReadoutListParameter();
+ HLTDebug("Geometrical acceptance trigger %s triggered", fTriggerDecisionPars->GetTriggerName().Data());
}
+
+ AliHLTTriggerDecision decision(
+ condition,
+ fTriggerDecisionPars->GetTriggerName().Data(),
+ AliHLTTriggerDomain(readout),
+ description.Data()
+ );
+ TriggerEvent(&decision, kAliHLTDataTypeTObject|kAliHLTDataOriginOut);
+
return iResult;
}
+
template<class T>
bool AliHLTTriggerBarrelGeomMultiplicity::CheckCondition(T* track, float b)
{
+
bool ret = false;
// see header file for class documentation
if (iResult>=0 && argc>0)
iResult=ConfigureFromArgumentString(argc, argv);
+ if (!fTriggerDecisionPars) {
+ HLTError("decision parameter not initialized");
+ iResult=-ENODEV;
+ }
+
return iResult;
}
int AliHLTTriggerBarrelGeomMultiplicity::ReadPreprocessorValues(const char* /*modules*/)
{
- // see header file for class documentation
+ // see header file for function documentation
+ int nDetectorGeoms=0;
// TODO 2009-10-10: implementation
// for the moment very quick, just reload the magnetic field
}
HLTInfo("received %d detector geometries", nDetectorGeoms);
-
return nDetectorGeoms;
}