Belle II Software  release-05-01-25
FinalTriggerDecisionCalculator.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Nils Braun *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 #include <mdst/dataobjects/SoftwareTriggerResult.h>
12 
13 namespace Belle2 {
18  namespace SoftwareTrigger {
20  class FinalTriggerDecisionCalculator {
21  public:
36  static bool getFinalTriggerDecision(const SoftwareTriggerResult& result, bool forgetTotalResult = false);
37 
43  static SoftwareTriggerCutResult getModuleResult(const SoftwareTriggerResult& result, const std::string& baseIdentifier,
44  bool acceptOverridesReject);
45  };
46  }
48 }
Belle2::SoftwareTrigger::FinalTriggerDecisionCalculator::getFinalTriggerDecision
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...
Definition: FinalTriggerDecisionCalculator.cc:17
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SoftwareTrigger::FinalTriggerDecisionCalculator::getModuleResult
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...
Definition: FinalTriggerDecisionCalculator.cc:72
Belle2::SoftwareTriggerCutResult
SoftwareTriggerCutResult
Enumeration with all possible results of the SoftwareTriggerCut.
Definition: SoftwareTriggerResult.h:31