Belle II Software development
PXDEventPlotModule.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 <framework/core/Module.h>
12#include <framework/datastore/DataStore.h>
13#include <framework/datastore/StoreArray.h>
14#include <framework/datastore/StoreObjPtr.h>
15#include <vxd/geometry/GeoCache.h>
16#include <vxd/geometry/SensorInfoBase.h>
17#include <framework/dataobjects/EventMetaData.h>
18#include <pxd/dataobjects/PXDRawHit.h>
19#include <pxd/dataobjects/PXDDAQStatus.h>
20#include <rawdata/dataobjects/RawFTSW.h>
21#include <TCanvas.h>
22#include <TH2F.h>
23#include <TLine.h>
24#include <string>
25
26
27namespace Belle2 {
33 namespace PXD {
37 class PXDEventPlotModule : public Module {
38
39 public:
40
43
44 private:
46 void initialize() override final;
47
49 void event() override final;
50
51 private:
52
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{},
75 *m_l2{},
76 *m_l3{};
78 };//end class declaration
79
80 } //end PXD namespace;
82} // end namespace Belle2
83
Base class for Modules.
Definition: Module.h:72
Plot each event with ROI and Pixels.
bool m_gateModeFlag
Flag for creating extra GM plots.
TLine * m_l1
Lines to guide the eye in plots/canvases.
void initialize() override final
Initialize.
StoreObjPtr< PXDDAQStatus > m_storeDAQEvtStats
Input array for DAQ Status.
StoreArray< RawFTSW > m_rawTTD
Input array for DAQ Status.
std::map< VxdID, TH2F * > m_histos_gm2
map for plots per modules with gm-
PXDEventPlotModule()
Constructor defining the parameters.
std::string m_storeRawHitsName
PXDRawHits StoreArray name.
TLine * m_l3
Lines to guide the eye in plots/canvases.
std::map< VxdID, TH2F * > m_histos
map for plots per modules
StoreObjPtr< EventMetaData > m_eventMetaData
Event Metadata StorePtr.
void event() override final
Event.
std::map< VxdID, TH2F * > m_histos_gm
map for plots per modules with gm+
VXD::GeoCache & m_vxdGeometry
the geometry
TCanvas * m_c
list of canvases
StoreArray< PXDRawHit > m_storeRawHits
Storearray for raw pixels
TLine * m_l2
Lines to guide the eye in plots/canvases.
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Class to faciliate easy access to sensor information of the VXD like coordinate transformations or pi...
Definition: GeoCache.h:39
Abstract base class for different kinds of events.