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