9#include <tracking/modules/trackingDQM/TrackingExpressRecoDQMModule.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 ExpressReco.");
33 addParam(
"produceTRClusterPlots",
m_produceTRCluster,
"If True, produce 2D track-related Cluster plots (correlations and hitmaps)",
39 "Optional suffix to be appended to the title of the histograms."
40 " Applied only to those histograms whose content depend on the track StoreArray chosen.",
59 B2FATAL(
"Missing geometry for VXD.");
62 TDirectory* originalDirectory = gDirectory;
84 originalDirectory->cd();
93 if (hist->GetName() == std::string(
"NumberTrackingErrorFlags"))
95 if (hist->GetName() == std::string(
"TrackingErrorFlagsReasons"))
98 hist->SetTitle(newTitle.c_str());
121 eventProcessor.
Run();
148 Create(
"NumberTrackingErrorFlags",
149 "Tracking error summary. Mean = errors/event (should be 0 or very close to 0);Error occurred yes or no;Number of events",
150 2, -0.5, 1.5,
"Error occurred yes or no",
"Number of events");
156 Create(
"TrackingErrorFlagsReasons",
157 "Tracking errors by reason. A single event may fall in multiple bins.;Type of error occurred;Number of events",
158 6, -0.5, 5.5,
"Type of error occurred",
"Number of events");
void produce1Dres()
Call this if you want to produce 1D Track Residual plots for each VXD sensor.
void produceTRClusters()
Call this if you want to produce 2D Track-Related Cluster plots.
virtual void Run()
Call this to start processing the event data and filling histograms.
void produce2Dres()
Call this if you want to produce 2D Track Residual plots for each VXD sensor.
This class serves as a base for the TrackDQMModule and AlignDQMModule (and possibly other DQM histogr...
virtual void Define1DSensors()
Define 1D histograms with unbiased residuals for individual sensors.
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 DefineHalfShellsVXD()
Define histograms with unbiased residuals for half-shells for PXD and SVD sensors.
virtual void initialize() override
Initializer.
virtual void DefineUBResidualsVXD()
Define histograms with unbiased residuals in PXD and SVD sensors.
std::vector< TH1 * > m_histograms
All histograms created via the Create- functions are automatically added to this set.
virtual void DefineTRClusters()
Define histograms with correlations between neighbor layers and cluster hitmap in IP angle range.
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 DefineTracks()
All the following Define- functions should be used in the defineHisto() function to define histograms...
virtual void Define2DSensors()
Define 2D histograms with unbiased residuals for individual sensors.
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.
TH1F * m_trackingErrorFlagsReasons
Monitors the Error flags set by the tracking code.
bool m_produce1Dres
if True, the module produces the 1D Track Residual plot for each VXD sensor
bool m_produceTRCluster
if True, the module produces the 2D Track-Related Cluster plots
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
TH1F * m_trackingErrorFlags
Monitors the Error flags set by the tracking code.
bool m_produce2Dres
if True, the module produces the 2D Track Residual plot for each VXD sensor
std::string m_histogramDirectoryName
Name of the directory for the histograms.
TrackingExpressRecoDQMModule()
Constructor.
virtual void DefineAbortFlagsHistograms()
Defines the histograms for the tracking abort flags.
std::string m_histogramTitleSuffix
Optional suffix for the histogram's title.
void defineHisto() override
Histogram definitions such as TH1(), TH2(), TNtuple(), TTree()....
static GeoCache & getInstance()
Return a reference to the singleton instance.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.