Belle II Software prerelease-11-00-00a
PrefilterCalculator.cc
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#include <hlt/softwaretrigger/calculations/PrefilterCalculator.h>
9#include <framework/logging/Logger.h>
10
11using namespace Belle2;
12using namespace SoftwareTrigger;
13
17
21
22void PrefilterCalculator::doCalculation(SoftwareTriggerObject& calculationResult)
23{
24 //..Filters lines for HLTPrefilter decision
25 calculationResult["EventsOfDoom"] = 0;
26 calculationResult["InjectionStrip"] = 0;
27
28 // EventsOfDoomBuster mode decision
29 if (m_eodbPrefilter.computeDecision()) {
30 calculationResult["EventsOfDoom"] = 1;
31 }
32 // Injection time mode decision
33 if (m_timingPrefilter.computeDecision()) {
34 calculationResult["InjectionStrip"] = 1;
35 }
36
37}
void requireStoreArrays() override
Require the particle list. We do not need more here.
void doCalculation(SoftwareTriggerObject &calculationResult) override
Actually write out the variables into the map.
PrefilterCalculator()
Set the default names for the store object particle lists.
HLTPrefilter::EventsOfDoomBusterState m_eodbPrefilter
Helper instance for EventsOfDoom prefilter.
HLTPrefilter::TimingCutState m_timingPrefilter
Helper instance for timing based prefilter.
Abstract base class for different kinds of events.