Belle II Software  release-05-02-19
PXDEventPlotModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2018 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Bjoern Spruck *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/core/Module.h>
14 #include <framework/datastore/DataStore.h>
15 #include <framework/datastore/StoreArray.h>
16 #include <framework/datastore/StoreObjPtr.h>
17 #include <vxd/geometry/GeoCache.h>
18 #include <vxd/geometry/SensorInfoBase.h>
19 #include <framework/dataobjects/EventMetaData.h>
20 #include <pxd/dataobjects/PXDRawHit.h>
21 #include <pxd/dataobjects/PXDDAQStatus.h>
22 #include <rawdata/dataobjects/RawFTSW.h>
23 #include <TCanvas.h>
24 #include <TH2F.h>
25 #include <TLine.h>
26 #include <string>
27 
28 
29 namespace Belle2 {
35  namespace PXD {
39  class PXDEventPlotModule : public Module {
40 
41  public:
42 
45 
46  private:
47  void initialize() override final;
48 
49  void event() override final;
50 
51  private:
52 
53  VXD::GeoCache& m_vxdGeometry;
55  std::string m_storeRawHitsName;
56  bool m_gateModeFlag{false};
62 
65 
68 
69  TCanvas* m_c{};
70  std::map <VxdID, TH2F*> m_histos;
71  std::map <VxdID, TH2F*> m_histos_gm;
72  std::map <VxdID, TH2F*> m_histos_gm2;
74  TLine* m_l1{}, *m_l2{}, *m_l3{};
76  };//end class declaration
77 
78  } //end PXD namespace;
80 } // end namespace Belle2
81 
Belle2::PXD::PXDEventPlotModule::PXDEventPlotModule
PXDEventPlotModule()
Constructor defining the parameters.
Definition: PXDEventPlotModule.cc:31
Belle2::PXD::PXDEventPlotModule::m_vxdGeometry
VXD::GeoCache & m_vxdGeometry
the geometry
Definition: PXDEventPlotModule.h:61
Belle2::PXD::PXDEventPlotModule::m_storeRawHits
StoreArray< PXDRawHit > m_storeRawHits
Storearray for raw pixels
Definition: PXDEventPlotModule.h:72
Belle2::PXD::PXDEventPlotModule::m_storeRawHitsName
std::string m_storeRawHitsName
PXDRawHits StoreArray name.
Definition: PXDEventPlotModule.h:63
Belle2::PXD::PXDEventPlotModule::event
void event() override final
This method is the core of the module.
Definition: PXDEventPlotModule.cc:71
Belle2::PXD::PXDEventPlotModule::m_eventMetaData
StoreObjPtr< EventMetaData > m_eventMetaData
Event Metadata StorePtr.
Definition: PXDEventPlotModule.h:66
Belle2::PXD::PXDEventPlotModule::m_l3
TLine * m_l3
Lines to guide the eye in plots/canvases.
Definition: PXDEventPlotModule.h:82
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::StoreObjPtr
Type-safe access to single objects in the data store.
Definition: ParticleList.h:33
Belle2::PXD::PXDEventPlotModule::m_rawTTD
StoreArray< RawFTSW > m_rawTTD
Input array for DAQ Status.
Definition: PXDEventPlotModule.h:75
Belle2::PXD::PXDEventPlotModule::m_gateModeFlag
bool m_gateModeFlag
Flag for creating extra GM plots.
Definition: PXDEventPlotModule.h:64
Belle2::PXD::PXDEventPlotModule::m_histos
std::map< VxdID, TH2F * > m_histos
map for plots per modules
Definition: PXDEventPlotModule.h:78
Belle2::PXD::PXDEventPlotModule::m_histos_gm
std::map< VxdID, TH2F * > m_histos_gm
map for plots per modules with gm+
Definition: PXDEventPlotModule.h:79
Belle2::PXD::PXDEventPlotModule::m_histos_gm2
std::map< VxdID, TH2F * > m_histos_gm2
map for plots per modules with gm-
Definition: PXDEventPlotModule.h:80
Belle2::PXD::PXDEventPlotModule::initialize
void initialize() override final
Initialize the Module.
Definition: PXDEventPlotModule.cc:40
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::PXD::PXDEventPlotModule::m_storeDAQEvtStats
StoreObjPtr< PXDDAQStatus > m_storeDAQEvtStats
Input array for DAQ Status.
Definition: PXDEventPlotModule.h:69
Belle2::PXD::PXDEventPlotModule::m_c
TCanvas * m_c
list of canvases
Definition: PXDEventPlotModule.h:77