AliTRDTriggerL0::AliTRDTriggerL0()
{
+ // constructor
+
SetName("TRD");
}
AliTRDTriggerL0::~AliTRDTriggerL0()
{
-
+ // destructor
}
void AliTRDTriggerL0::CreateInputs()
{
+ // create the L0 inputs which are provided by the TRD
+
if (fInputs.GetEntriesFast() > 0)
return;
void AliTRDTriggerL0::Trigger()
{
+ // do the actual trigger calculation
AliRunLoader *runLoader = AliRunLoader::Instance();
if (!runLoader)
AliTRDptrgParam* param = AliTRDptrgParam::Instance();
- AliTRDptrgCBB* ptrgCBB = new AliTRDptrgCBB(runLoader, param, kDigits);
+ AliTRDptrgCBB* ptrgCBB = new AliTRDptrgCBB(runLoader, param, AliTRDptrgParam::kDigits);
Int_t* simulationResult;
simulationResult = ptrgCBB->Simulate();
for (Int_t iResult = 1; iResult <= simulationResult[0]; iResult++) {
AliDebug(5, Form("Result[%d]=0x%x\n",iResult,simulationResult[iResult]));
}
- if ((simulationResult[0] > 0) || (simulationResult[1] > 0)) {
+ if ((simulationResult[0] > 0) || (simulationResult[1] > 0)) {
AliInfo("Fired single gap trigger");
SetInput("0HSG");
}