 |
Belle II Software
release-05-02-19
|
12 #include <hlt/softwaretrigger/core/SoftwareTriggerObject.h>
13 #include <hlt/softwaretrigger/dataobjects/SoftwareTriggerVariables.h>
14 #include <framework/datastore/StoreObjPtr.h>
22 namespace SoftwareTrigger {
31 class SoftwareTriggerCalculation {
void addDebugOutput(const StoreObjPtr< SoftwareTriggerVariables > &storeObject, const std::string &prefix)
Function to write out debug output into the given StoreObject.
virtual ~SoftwareTriggerCalculation()=default
Default but virtual desctructor.
bool m_debugPrepared
Flag to not add the branches twice to the TTree.
Abstract base class for different kinds of events.
Type-safe access to single objects in the data store.
virtual void doCalculation(SoftwareTriggerObject &m_calculationResult)=0
Override this function to implement your calculation.
SoftwareTriggerObject m_calculationResult
Internal storage of the result of the calculation.
virtual void requireStoreArrays()=0
Function to be called in the initialize phase of the module, in which all later needed StoreArrays ca...
const SoftwareTriggerObject & fillInCalculations()
Main function of this class: calculate the needed variables using the overwritten doCalculation funct...
void writeDebugOutput(const std::unique_ptr< TTree > &debugOutputTTree)
Function to write out debug output into the given TTree.