return fpCTPData->EvaluateCTPTriggerClass(expression, trigData);
}
+int AliHLTComponent::CheckCTPTrigger(const char* name) const
+{
+ // see header file for function documentation
+ if (!fpCTPData) {
+ static bool bWarningThrown=false;
+ if (!bWarningThrown) HLTError("Trigger classes not initialized, use SetupCTPData from DoInit()");
+ bWarningThrown=true;
+ return false;
+ }
+
+ return fpCTPData->CheckTrigger(name);
+}
+
Double_t AliHLTComponent::GetBz()
{
// Returns Bz.
* Check whether a combination of trigger classes is fired.
* The expression can contain trigger class ids and logic operators
* like &&, ||, !, and ^, and may be grouped by parentheses.
+ * @note the function requires the setup of the CTP handling for the component by
+ * invoking SetupCTPData() from DoInit()
* @param expression a logic expression of trigger class ids
* @param trigData the trigger data data
*/
bool EvaluateCTPTriggerClass(const char* expression, AliHLTComponentTriggerData& trigData) const;
+ /**
+ * Check state of a trigger class.
+ * If the class name is not part of the current trigger setup (i.e. ECS parameter
+ * does not contain a trigger definition for this class name) the function
+ * returns -1
+ * @note the function requires the setup of the CTP handling for the component by
+ * invoking SetupCTPData() from DoInit()
+ * @return -1 class name not initialized,
+ * 0 trigger not active
+ * 1 trigger active
+ */
+ int CheckCTPTrigger(const char* name) const;
+
/**
* Get the overall solenoid field.
*/