1 #ifndef ALIHLTGLOBALTRIGGERDECISION_H
2 #define ALIHLTGLOBALTRIGGERDECISION_H
3 /* This file is property of and copyright by the ALICE HLT Project *
4 * ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 /// @file AliHLTGlobalTriggerDecision.h
8 /// @author Artur Szostak <artursz@iafrica.com>
10 /// @brief Declaration of the AliHLTGlobalTriggerDecision class storing the global HLT decision.
12 #include "AliHLTTriggerDecision.h"
15 class AliHLTGlobalTriggerDecision : public AliHLTTriggerDecision
20 * Default constructor.
22 AliHLTGlobalTriggerDecision();
25 * Constructor specifying multiple information fields.
26 * \param result The result of the global trigger decision.
27 * \param readoutList The DDL readout list for the global trigger decision.
28 * \param triggerDomain The trigger domain for the global trigger decision.
29 * \param description The description of (reason for) the global trigger decision.
31 AliHLTGlobalTriggerDecision(
32 bool result, const AliHLTReadoutList& readoutList,
33 const AliHLTTriggerDomain& triggerDomain, const char* description = ""
39 virtual ~AliHLTGlobalTriggerDecision();
42 * Inherited from TObject, this prints the contents of the trigger decision.
43 * \param option Can be "short" which will print the short format.
45 virtual void Print(Option_t* option = "") const;
48 * Returns the number of trigger inputs that contributed to this global trigger decision.
50 Int_t NumberOfTriggerInputs() const { return fContributingTriggers.GetEntriesFast(); }
53 * Returns the i'th trigger input object in fContributingTriggers.
55 const AliHLTTriggerDecision* TriggerInput(Int_t i) const
57 return static_cast<const AliHLTTriggerDecision*>( fContributingTriggers[i] );
61 * Returns the list of trigger inputs used when making the global HLT trigger decision.
63 const TClonesArray& TriggerInputs() const { return fContributingTriggers; }
66 * Adds a trigger input to the list of triggers that were considered when making
67 * this global trigger decision.
68 * \param decision The trigger decision object to add.
70 void AddTriggerInput(const AliHLTTriggerDecision& decision)
72 new (fContributingTriggers[fContributingTriggers.GetEntriesFast()]) AliHLTTriggerDecision(decision);
76 * Returns the event trigger counters associated with the global trigger classes.
78 const TArrayL& Counters() const { return fCounters; }
82 TClonesArray fContributingTriggers; /// The list of contributing trigger decisions from all AliHLTTrigger components that were considered.
83 TArrayL fCounters; /// Event trigger counters. One counter for each trigger class in the global trigger.
85 ClassDef(AliHLTGlobalTriggerDecision, 1) // Contains the HLT global trigger decision and information contributing to the decision.
88 #endif // ALIHLTGLOBALTRIGGERDECISION_H