Belle II Software  release-08-01-10
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 
17 namespace Belle2 {
28 
29  public:
34 
36  void initialize() override;
38  void event() override;
39 
42  void defineHisto() override;
43 
44  protected:
45  /* All the following Define- functions should be used in the defineHisto() function to define histograms.
46  * The convention is that every Define- function is responsible for creating its
47  * own TDirectory (if it's needed). In any case the function must then return to the original gDirectory.
48  * For the creation of histograms the THFFactory or the Create- functions should be used. */
50  virtual void DefineAbortFlagsHistograms();
51 
54 
57  TH1F* m_trackingErrorFlags = nullptr;
58 
61  TH1F* m_trackingErrorFlagsReasons = nullptr;
62 
63  private:
65  bool m_produce1Dres = true;
67  bool m_produce2Dres = false;
69  std::string m_histogramDirectoryName = "TrackingERDQM";
71  std::string m_histogramTitleSuffix = "";
72 
73  };
75 }
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
void initialize() override
Module functions.
StoreObjPtr< EventLevelTrackingInfo > m_eventLevelTrackingInfo
Acccess 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.