 |
Belle II Software
release-05-02-19
|
12 #include <framework/datastore/RelationsObject.h>
45 std::pair<SoftwareTriggerCutResult, SoftwareTriggerCutResult>
getResultPair(
const std::string& triggerIdentifier)
const;
57 const std::map<std::string, std::pair<int, int>>&
getResultPairs()
const
82 std::map<std::string, std::pair<int, int>>
m_results;
std::map< std::string, int > getNonPrescaledResults() const
Return all stored cut tags with their non-prescaled results as a map identifier -> cut result.
std::string getInfoHTML() const override
Return a short summary of this object's contents in HTML format.
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,...
@ c_accept
Accept this event.
std::map< std::string, std::pair< int, int > > m_results
Internal storage of the cut decisions with names.
void addResult(const std::string &triggerIdentifier, const SoftwareTriggerCutResult &result, const SoftwareTriggerCutResult &nonPrescaledResult=SoftwareTriggerCutResult::c_noResult)
Add a new cut result to the storage or override the result with the same name.
ClassDefOverride(SoftwareTriggerResult, 5)
Making this class a ROOT class.
Abstract base class for different kinds of events.
@ c_reject
Reject this event.
Dataobject to store the results of the cut calculations performed by the SoftwareTriggerModule.
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
void clear()
Clear all results.
std::map< std::string, int > getResults() const
Return all stored cut tags with their results as a map identifier -> cut result.
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.
SoftwareTriggerCutResult
Enumeration with all possible results of the SoftwareTriggerCut.
SoftwareTriggerCutResult getResult(const std::string &triggerIdentifier) const
Return the cut result with the given name or throw an error if no result is there.
@ c_noResult
There were not enough information to decide on what to do with the event.
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...