Sumarises the decision of the trigger in user friendly form. More...
#include <TriggerDecision.h>
Public Types | |
enum | TrigLevel { L1 = 1, L2, EF } |
Public Member Functions | |
TriggerDecision (bool l1, bool l2, bool ef) | |
custom c'tor | |
void | print () const |
void | printAccepted () const |
bool | isDefinedL1 () const |
bool | isDefinedL2 () const |
bool | isDefinedEF () const |
bool | isDefined (std::string) const |
bool | isDefined (std::string, unsigned int) const |
bool | isTriggerPassed () const |
global decision | |
bool | isPassedL1 () const |
bool | isPassedL2 () const |
bool | isPassedEF () const |
bool | isTriggered (std::string name) const |
checks if given signature is satisfied | |
bool | isTriggered (std::string name, unsigned int level) const |
checks if given signature is satisfied | |
std::vector< std::string > | signatures () const |
list of all defined signatures | |
std::vector< std::string > | signatures (unsigned int level) const |
list of defined signatures in level | |
std::map< std::string, bool > | L1map () const |
all signatures to satisfied/unsatisfied map for Lvl1 This map contains mapping from signature name to the boolean which is true if given signature was active false otherwise. | |
std::map< std::string, bool > | L2map () const |
all signatures to satisfied/unsatisfied map for Lvl2 | |
std::map< std::string, bool > | EFmap () const |
all signatures to satisfied/unsatisfied map for Lvl2 | |
std::vector< std::string > | ignoredSigs () const |
list of signatures which were ignored during TriggerDecision object creation (do not enter to the map) | |
void | set_TriggerItem (std::string, bool, unsigned int) |
sets the active/inactive state for a signature | |
void | set_ignore_TriggerItem (std::string) |
adds signature to the list of this to be ignored | |
bool | ignore_TriggerItem (std::string) |
checki if signature is ignored |
Sumarises the decision of the trigger in user friendly form.
Prototype to provide Trigger Decision to end-user
TriggerDecision::TriggerDecision | ( | bool | l1, | |
bool | l2, | |||
bool | ef | |||
) |
custom c'tor
l1 | enabled LVL1 | |
l2 | enabled LVL2 | |
ef | enabled EF |
std::map< std::string, bool > TriggerDecision::EFmap | ( | ) | const |
all signatures to satisfied/unsatisfied map for Lvl2
bool TriggerDecision::isTriggered | ( | std::string | name, | |
unsigned int | level | |||
) | const |
checks if given signature is satisfied
name | signature name | |
levle | further details in which level, |
bool TriggerDecision::isTriggered | ( | std::string | name | ) | const |
checks if given signature is satisfied
name | signature name |
std::map< std::string, bool > TriggerDecision::L2map | ( | ) | const |
all signatures to satisfied/unsatisfied map for Lvl2
std::vector< std::string > TriggerDecision::signatures | ( | unsigned int | level | ) | const |
list of defined signatures in level