Belle II Software  release-05-02-19
PXDInjectionDQMModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2019 - 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/HistoModule.h>
14 #include <vxd/geometry/GeoCache.h>
15 #include <framework/datastore/StoreArray.h>
16 #include <rawdata/dataobjects/RawFTSW.h>
17 #include <pxd/dataobjects/PXDRawHit.h>
18 #include <pxd/dataobjects/PXDCluster.h>
19 #include <TH1.h>
20 #include <TH2.h>
21 #include <string>
22 #include <map>
23 
24 namespace Belle2 {
30  namespace PXD {
39  class PXDInjectionDQMModule : public HistoModule {
40 
41  public:
42 
45 
46  private:
48  std::string m_PXDRawHitsName;
49  std::string m_PXDClustersName;
51  bool m_eachModule{false};
52  bool m_offlineStudy{false};
53  bool m_useClusters{false};
54  bool m_createMaxHist{false};
55 
58 
61 
64 
67 
68  TH1F* hOccAfterInjLER{};
69  TH1F* hOccAfterInjHER{};
71  std::map<VxdID, TH1F*> hOccModAfterInjLER;
72  std::map<VxdID, TH1F*> hOccModAfterInjHER;
74  TH1I* hEOccAfterInjLER{};
75  TH1I* hEOccAfterInjHER{};
78  TH1F* hMaxOccAfterInjHER{};
80  std::map<VxdID, TH1F*> hMaxOccModAfterInjLER;
81  std::map<VxdID, TH1F*> hMaxOccModAfterInjHER;
83 // TH2F* hTrigAfterInjLER{}; /**< Histogram Veto tuning triggers after LER injection */
84 // TH2F* hTrigAfterInjHER{}; /**< Histogram Veto tuning triggers after HER injection */
85 
87  TH1I* hTriggersPerBunch{};
90  TH2F* hOccAfterInjHERGate{};
92  std::map<VxdID, TH2F*> hOccModAfterInjLERGate{};
93  std::map<VxdID, TH2F*> hOccModAfterInjHERGate{};
95  void initialize() override final;
97  void beginRun() override final;
99  void event() override final;
101  void defineHisto() override final;
103  };//end class declaration
104 
105 
106  } //end PXD namespace;
108 } // end namespace Belle2
Belle2::PXD::PXDInjectionDQMModule::m_createMaxHist
bool m_createMaxHist
create max hits histogram, not multi processing save!!
Definition: PXDInjectionDQMModule.h:62
Belle2::PXD::PXDInjectionDQMModule::m_eachModule
bool m_eachModule
create a histo per module
Definition: PXDInjectionDQMModule.h:59
Belle2::PXD::PXDInjectionDQMModule::m_vxdGeometry
VXD::GeoCache & m_vxdGeometry
the VXD geometry
Definition: PXDInjectionDQMModule.h:74
Belle2::PXD::PXDInjectionDQMModule::hTriggersAfterTrigger
TH1I * hTriggersAfterTrigger
Histogram for Nr Entries (=Triggers after Last Trigger.
Definition: PXDInjectionDQMModule.h:94
Belle2::PXD::PXDInjectionDQMModule::hTriggersPerBunch
TH1I * hTriggersPerBunch
Histogram forTrigger per Bunch
Definition: PXDInjectionDQMModule.h:95
Belle2::PXD::PXDInjectionDQMModule::hOccModAfterInjLER
std::map< VxdID, TH1F * > hOccModAfterInjLER
Histogram Occupancy after LER injection.
Definition: PXDInjectionDQMModule.h:79
Belle2::PXD::PXDInjectionDQMModule::hEOccAfterInjLER
TH1I * hEOccAfterInjLER
Histogram for Nr Entries (=Triggrs) for normalization after LER injection.
Definition: PXDInjectionDQMModule.h:82
Belle2::PXD::PXDInjectionDQMModule::event
void event() override final
event function
Definition: PXDInjectionDQMModule.cc:163
Belle2::PXD::PXDInjectionDQMModule::m_useClusters
bool m_useClusters
use PXDClusters instead of Raw Hits
Definition: PXDInjectionDQMModule.h:61
Belle2::PXD::PXDInjectionDQMModule::defineHisto
void defineHisto() override final
defineHisto function
Definition: PXDInjectionDQMModule.cc:44
Belle2::PXD::PXDInjectionDQMModule::hMaxOccModAfterInjHER
std::map< VxdID, TH1F * > hMaxOccModAfterInjHER
Histogram Max Occupancy after HER injection.
Definition: PXDInjectionDQMModule.h:89
Belle2::PXD::PXDInjectionDQMModule::hMaxOccAfterInjHER
TH1F * hMaxOccAfterInjHER
Histogram Max Occupancy after HER injection.
Definition: PXDInjectionDQMModule.h:86
Belle2::PXD::PXDInjectionDQMModule::hOccAfterInjLERGate
TH2F * hOccAfterInjLERGate
Occupancy after LER injection per Gate.
Definition: PXDInjectionDQMModule.h:97
Belle2::PXD::PXDInjectionDQMModule::hOccAfterInjHERGate
TH2F * hOccAfterInjHERGate
Occupancy after HER injection per Gate.
Definition: PXDInjectionDQMModule.h:98
Belle2::PXD::PXDInjectionDQMModule::beginRun
void beginRun() override final
beginRun function
Definition: PXDInjectionDQMModule.cc:142
Belle2::PXD::PXDInjectionDQMModule::m_storeClusters
StoreArray< PXDCluster > m_storeClusters
Input array for PXD Clusters.
Definition: PXDInjectionDQMModule.h:71
Belle2::PXD::PXDInjectionDQMModule::hOccModAfterInjHER
std::map< VxdID, TH1F * > hOccModAfterInjHER
Histogram Occupancy after HER injection.
Definition: PXDInjectionDQMModule.h:80
Belle2::PXD::PXDInjectionDQMModule::initialize
void initialize() override final
initialize function
Definition: PXDInjectionDQMModule.cc:131
Belle2::PXD::PXDInjectionDQMModule::PXDInjectionDQMModule
PXDInjectionDQMModule()
Constructor defining the parameters.
Definition: PXDInjectionDQMModule.cc:28
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::PXD::PXDInjectionDQMModule::hMaxOccAfterInjLER
TH1F * hMaxOccAfterInjLER
Histogram Max Occupancy after LER injection.
Definition: PXDInjectionDQMModule.h:85
Belle2::PXD::PXDInjectionDQMModule::m_histogramDirectoryName
std::string m_histogramDirectoryName
Name of the histogram directory in ROOT file.
Definition: PXDInjectionDQMModule.h:55
Belle2::PXD::PXDInjectionDQMModule::m_offlineStudy
bool m_offlineStudy
create histos with much finer binning and larger range
Definition: PXDInjectionDQMModule.h:60
Belle2::PXD::PXDInjectionDQMModule::hOccModAfterInjLERGate
std::map< VxdID, TH2F * > hOccModAfterInjLERGate
Occupancy after LER injection per Gate per Module.
Definition: PXDInjectionDQMModule.h:100
Belle2::PXD::PXDInjectionDQMModule::m_PXDClustersName
std::string m_PXDClustersName
The name of the StoreArray of PXDClusters.
Definition: PXDInjectionDQMModule.h:57
Belle2::PXD::PXDInjectionDQMModule::m_rawTTD
StoreArray< RawFTSW > m_rawTTD
Input array for TTD/FTSW.
Definition: PXDInjectionDQMModule.h:65
Belle2::PXD::PXDInjectionDQMModule::m_PXDRawHitsName
std::string m_PXDRawHitsName
The name of the StoreArray of PXDRawHits.
Definition: PXDInjectionDQMModule.h:56
Belle2::VXD::GeoCache
Class to faciliate easy access to sensor information of the VXD like coordinate transformations or pi...
Definition: GeoCache.h:41
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::PXD::PXDInjectionDQMModule::hOccAfterInjLER
TH1F * hOccAfterInjLER
Histogram Occupancy after LER injection.
Definition: PXDInjectionDQMModule.h:76
Belle2::PXD::PXDInjectionDQMModule::hMaxOccModAfterInjLER
std::map< VxdID, TH1F * > hMaxOccModAfterInjLER
Histogram Max Occupancy after LER injection.
Definition: PXDInjectionDQMModule.h:88
Belle2::PXD::PXDInjectionDQMModule::hOccAfterInjHER
TH1F * hOccAfterInjHER
Histogram Occupancy after HER injection.
Definition: PXDInjectionDQMModule.h:77
Belle2::PXD::PXDInjectionDQMModule::m_storeRawHits
StoreArray< PXDRawHit > m_storeRawHits
Input array for PXD Raw Hits.
Definition: PXDInjectionDQMModule.h:68
Belle2::PXD::PXDInjectionDQMModule::hEOccAfterInjHER
TH1I * hEOccAfterInjHER
Histogram for Nr Entries (=Triggrs) for normalization after HER injection.
Definition: PXDInjectionDQMModule.h:83
Belle2::PXD::PXDInjectionDQMModule::hOccModAfterInjHERGate
std::map< VxdID, TH2F * > hOccModAfterInjHERGate
Occupancy after HER injection per Gate per Module.
Definition: PXDInjectionDQMModule.h:101