Belle II Software development
TrackingExpressRecoDQMModule.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <tracking/dqmUtils/DQMHistoModuleBase.h>
12#include <framework/datastore/StoreObjPtr.h>
13#include <mdst/dataobjects/EventLevelTrackingInfo.h>
14#include <TH1.h>
15#include <string>
16
17namespace Belle2 {
25
26 public:
31
33 void initialize() override;
35 void event() override;
36
39 void defineHisto() override;
40
41 protected:
42 /* All the following Define- functions should be used in the defineHisto() function to define histograms.
43 * The convention is that every Define- function is responsible for creating its
44 * own TDirectory (if it's needed). In any case the function must then return to the original gDirectory.
45 * For the creation of histograms the THFFactory or the Create- functions should be used. */
47 virtual void DefineAbortFlagsHistograms();
48
51
54 TH1F* m_trackingErrorFlags = nullptr;
55
59
60 private:
62 bool m_produce1Dres = true;
64 bool m_produce2Dres = false;
66 bool m_produceTRCluster = true;
68 std::string m_histogramDirectoryName = "TrackingERDQM";
70 std::string m_histogramTitleSuffix = "";
71
72 };
74}
This class serves as a base for the TrackDQMModule and AlignDQMModule (and possibly other DQM histogr...
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
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.
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()....
Abstract base class for different kinds of events.