Belle II Software development
FinalTriggerDecisionCalculator.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9#include <mdst/dataobjects/SoftwareTriggerResult.h>
10
11namespace Belle2 {
16 namespace SoftwareTrigger {
19 public:
34 static bool getFinalTriggerDecision(const SoftwareTriggerResult& result, bool forgetTotalResult = false);
35
41 static SoftwareTriggerCutResult getModuleResult(const SoftwareTriggerResult& result, const std::string& baseIdentifier,
42 bool acceptOverridesReject);
43 };
44 }
46}
Dataobject to store the results of the cut calculations performed by the SoftwareTriggerModule.
Helper class to give the getFinalTriggerDecision to python.
static SoftwareTriggerCutResult getModuleResult(const SoftwareTriggerResult &result, const std::string &baseIdentifier, bool acceptOverridesReject)
Calculate the "total_result" for a given base identifier by looping through all results with the give...
static bool getFinalTriggerDecision(const SoftwareTriggerResult &result, bool forgetTotalResult=false)
Calculate the final cut decision using all "total_results" of all sub triggers in the software trigge...
SoftwareTriggerCutResult
Enumeration with all possible results of the SoftwareTriggerCut.
Abstract base class for different kinds of events.