10#include <framework/core/Module.h>
12#include <mdst/dataobjects/SoftwareTriggerResult.h>
13#include <mdst/dataobjects/TRGSummary.h>
14#include <framework/datastore/StoreObjPtr.h>
15#include <framework/dataobjects/EventMetaData.h>
28 namespace SoftwareTrigger {
44 void event()
override;
Write out the software trigger results in an easily accessible summary table.
StoreObjPtr< TRGSummary > m_l1Result
Store Object for reading the l1 result.
std::map< std::string, std::map< SoftwareTriggerCutResult, unsigned int > > m_passedEventsPerTriggerNonPrescaled
Internal map of summed results.
void initialize() override
Require the needed store object.
void event() override
Write out the cuts if wanted and sum them up.
std::string m_param_outputFileName
Output file name for the debug output.
void terminate() override
Store and delete the ttree if it was created. Print out the summed results.
std::map< std::string, std::map< SoftwareTriggerCutResult, unsigned int > > m_passedEventsPerTrigger
Internal map of summed results.
std::map< std::string, unsigned int > m_prescales
Internal map of prescales.
StoreObjPtr< EventMetaData > m_eventMetaDataPtr
EventMetaData is used by processEvent()/processCore().
virtual ~SoftwareTriggerResultPrinterModule()=default
default virtual constructor because this is a derived class using virtual methods
StoreObjPtr< SoftwareTriggerResult > m_resultStoreObjectPointer
Store Object for reading the trigger decision.
std::unique_ptr< TFile > m_debugOutputFile
TFile to store the debug TTree.
unsigned int m_numberOfEvents
Internal counter for the number of seen events.
std::unique_ptr< TTree > m_debugTTree
TTree to store the debug output.
SoftwareTriggerResultPrinterModule()
Create a new module instance and set the parameters.
Type-safe access to single objects in the data store.
Abstract base class for different kinds of events.