9#include <tracking/modules/trackingDQM/TrackingHLTDQMModule.h>
10#include <tracking/modules/trackingDQM/TrackDQMEventProcessor.h>
11#include <tracking/dqmUtils/HistogramFactory.h>
13#include <TDirectory.h>
16using namespace Belle2::HistogramFactory;
32 setDescription(
"Data Quality Monitoring of the tracking run on HLT. ");
55 B2FATAL(
"Missing geometry for VXD.");
58 TDirectory* originalDirectory = gDirectory;
61 TDirectory* TracksDQM = originalDirectory->GetDirectory(
"TrackingHLTDQM");
63 TracksDQM = originalDirectory->mkdir(
"TrackingHLTDQM");
75 originalDirectory->cd();
102 auto difference = it.GetTimeSinceLastInjection(0);
104 if (difference != 0x7FFFFFFF) {
106 double timeSinceInj = it.GetTimeSinceLastInjection(0) /
c_globalClock;
131 const char* flagTitle =
132 "Tracking error summary. Mean = errors/event (should be 0 or very close to 0); Error occurred yes or no; Number of events";
142 "Number of Events with Tracking Aborts vs HER injection;Time since last injection [#mus];Time in beam cycle [#mus];Events / bin",
147 "Number of Events with Tracking Aborts vs LER injection;Time since last injection [#mus];Time in beam cycle [#mus];Events / bin",
153 "Number Of Events vs HER injection;Time since last injection [#mus];Time in beam cycle [#mus];Events / bin",
158 "Number of Events vs LER injection;Time since last injection [#mus];Time in beam cycle [#mus];Events / bin",
virtual void Run()
Call this to start processing the event data and filling histograms.
This class serves as a base for the TrackDQMModule and AlignDQMModule (and possibly other DQM histogr...
bool histogramsDefined
True if the defineHisto() was called.
std::vector< std::tuple< std::string, std::string, std::string > > m_histogramParameterChanges
Used for changing parameters of histograms via the ProcessHistogramParameterChange function.
virtual void initialize() override
Initializer.
void ProcessHistogramParameterChange(const std::string &name, const std::string ¶meter, const std::string &value)
Process one change in histogram parameters.
virtual void event() override
This method is called for each event.
virtual void DefineTrackFitStatus()
Define histograms which require FitStatus.
std::string m_tracksStoreArrayName
StoreArray name where Tracks are written.
virtual TH1F * Create(std::string name, std::string title, int nbinsx, double xlow, double xup, std::string xTitle, std::string yTitle)
Function to create TH1F and add it to the vector of histograms (m_histograms).
virtual void DefineHits()
Define histograms with numbers of hits.
virtual void DefineMomentumCoordinates()
Define histograms with track momentum Pt.
virtual void DefineTracks()
All the following Define- functions should be used in the defineHisto() function to define histograms...
virtual void DefineMomentumAngles()
Define histograms with track momentum Pt.
void runningOnHLT()
function called when the module is run on HLT
std::string m_recoTracksStoreArrayName
StoreArray name where RecoTracks are written.
virtual void DefineHelixParametersAndCorrelations()
Define histograms with helix parameters and their correlations.
virtual void defineHisto() override
Histogram definitions such as TH1(), TH2(), TNtuple(), TTree()....
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
The purpose of this class is to process one event() in TrackDQMModule.
void initialize() override
Module functions.
StoreObjPtr< EventLevelTrackingInfo > m_eventLevelTrackingInfo
Access to the EventLevelTrackingInfo object in the datastore.
void event() override
fill of the histograms happens here
StoreArray< RawFTSW > m_rawTTD
Input array for DAQ Status.
TH1F * m_trackingErrorFlags
Monitors the Error flags set by the tracking code.
TH2F * m_allVStimeLER
number of events as a function of time after injection and time within a beam cycle - LER
static constexpr double c_revolutionTime
Beam revolution time in microseconds (approximated).
static constexpr double c_globalClock
Approximated global clock frequency in MHz.
TH2F * m_abortVStimeLER
abort rate as a function of time after injection and time within a beam cycle - LER
TrackingHLTDQMModule()
Constructor.
TH2F * m_allVStimeHER
number of events as a function of time after injection and time within a beam cycle - HER
virtual void DefineAbortFlagsHistograms()
All the following Define- functions should be used in the defineHisto() function to define histograms...
TH2F * m_abortVStimeHER
abort rate as a function of time after injection and time within a beam cycle - HER
static constexpr double c_noInjectionTime
Defines the range of the x axis of the 2D time histogram.
virtual void defineHisto() override
Histogram definitions such as TH1(), TH2(), TNtuple(), TTree()....
static GeoCache & getInstance()
Return a reference to the singleton instance.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.