10#include <framework/datastore/RelationsObject.h>
43 std::pair<SoftwareTriggerCutResult, SoftwareTriggerCutResult>
getResultPair(
const std::string& triggerIdentifier)
const;
80 std::map<std::string, std::pair<int, int>>
m_results;
Defines interface for accessing relations of objects in StoreArray.
Dataobject to store the results of the cut calculations performed by the SoftwareTriggerModule.
ClassDefOverride(SoftwareTriggerResult, 5)
Making this class a ROOT class.
SoftwareTriggerCutResult getNonPrescaledResult(const std::string &triggerIdentifier) const
Return the non-prescaled cut result with the given name or throw an error if no result is there.
std::map< std::string, std::pair< int, int > > m_results
Internal storage of the cut decisions with names.
SoftwareTriggerCutResult getResult(const std::string &triggerIdentifier) const
Return the cut result with the given name or throw an error if no result is there.
std::string getInfoHTML() const override
Return a short summary of this object's contents in HTML format.
std::map< std::string, int > getResults() const
Return all stored cut tags with their results as a map identifier -> cut result.
void addResult(const std::string &triggerIdentifier, SoftwareTriggerCutResult result, SoftwareTriggerCutResult nonPrescaledResult=SoftwareTriggerCutResult::c_noResult)
Add a new cut result to the storage or override the result with the same name.
const std::map< std::string, std::pair< int, int > > & getResultPairs() const
Return all stored cut tags with their results as a map identifier -> [prescaled cut result,...
std::map< std::string, int > getNonPrescaledResults() const
Return all stored cut tags with their non-prescaled results as a map identifier -> cut result.
void clear()
Clear all results.
std::pair< SoftwareTriggerCutResult, SoftwareTriggerCutResult > getResultPair(const std::string &triggerIdentifier) const
Return the cut result and the non-prescaled cut result with the given name or throw an error if no re...
SoftwareTriggerCutResult
Enumeration with all possible results of the SoftwareTriggerCut.
@ c_accept
Accept this event.
@ c_reject
Reject this event.
@ c_noResult
There were not enough information to decide on what to do with the event.
Abstract base class for different kinds of events.