Belle II Software  release-06-01-15
PXDInjectionDQMModule.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/HistoModule.h>
12 #include <vxd/geometry/GeoCache.h>
13 #include <framework/datastore/StoreArray.h>
14 #include <rawdata/dataobjects/RawFTSW.h>
15 #include <pxd/dataobjects/PXDRawHit.h>
16 #include <pxd/dataobjects/PXDCluster.h>
17 #include <TH1.h>
18 #include <TH2.h>
19 #include <string>
20 #include <map>
21 
22 namespace Belle2 {
28  namespace PXD {
38 
39  public:
40 
43 
44  private:
46  std::string m_PXDRawHitsName;
47  std::string m_PXDClustersName;
49  bool m_eachModule{false};
50  bool m_offlineStudy{false};
51  bool m_useClusters{false};
52  bool m_createMaxHist{false};
53  bool m_createGateHist{false};
54 
57 
60 
63 
66 
67  TH1F* hOccAfterInjLER{};
68  TH1F* hOccAfterInjHER{};
70  std::map<VxdID, TH1F*> hOccModAfterInjLER;
71  std::map<VxdID, TH1F*> hOccModAfterInjHER;
73  TH1I* hEOccAfterInjLER{};
74  TH1I* hEOccAfterInjHER{};
79  std::map<VxdID, TH1F*> hMaxOccModAfterInjLER;
80  std::map<VxdID, TH1F*> hMaxOccModAfterInjHER;
82 // TH2F* hTrigAfterInjLER{}; /**< Histogram Veto tuning triggers after LER injection */
83 // TH2F* hTrigAfterInjHER{}; /**< Histogram Veto tuning triggers after HER injection */
84 
91  std::map<VxdID, TH2F*> hOccModAfterInjLERGate{};
92  std::map<VxdID, TH2F*> hOccModAfterInjHERGate{};
94  void initialize() override final;
96  void beginRun() override final;
98  void event() override final;
100  void defineHisto() override final;
102  };//end class declaration
103 
104 
105  } //end PXD namespace;
107 } // end namespace Belle2
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
Definition: HistoModule.h:29
The PXD Occupancy after Injection DQM module.
std::map< VxdID, TH1F * > hOccModAfterInjLER
Histogram Occupancy after LER injection.
TH1F * hMaxOccAfterInjHER
Histogram Max Occupancy after HER injection.
TH2F * hOccAfterInjLERGate
Occupancy after LER injection per Gate.
std::string m_PXDRawHitsName
The name of the StoreArray of PXDRawHits.
TH1F * hMaxOccAfterInjLER
Histogram Max Occupancy after LER injection.
void initialize() override final
initialize function
TH1I * hTriggersAfterTrigger
Histogram for Nr Entries (=Triggers after Last Trigger.
StoreArray< PXDCluster > m_storeClusters
Input array for PXD Clusters.
StoreArray< RawFTSW > m_rawTTD
Input array for TTD/FTSW.
std::map< VxdID, TH1F * > hMaxOccModAfterInjHER
Histogram Max Occupancy after HER injection.
std::map< VxdID, TH1F * > hMaxOccModAfterInjLER
Histogram Max Occupancy after LER injection.
void defineHisto() override final
defineHisto function
std::map< VxdID, TH2F * > hOccModAfterInjLERGate
Occupancy after LER injection per Gate per Module.
bool m_eachModule
create a histo per module
bool m_useClusters
use PXDClusters instead of Raw Hits
void event() override final
event function
bool m_createMaxHist
create max hits histogram, not multi processing save!!
std::string m_PXDClustersName
The name of the StoreArray of PXDClusters.
std::map< VxdID, TH2F * > hOccModAfterInjHERGate
Occupancy after HER injection per Gate per Module.
std::string m_histogramDirectoryName
Name of the histogram directory in ROOT file.
TH1F * hOccAfterInjLER
Histogram Occupancy after LER injection.
PXDInjectionDQMModule()
Constructor defining the parameters.
void beginRun() override final
beginRun function
VXD::GeoCache & m_vxdGeometry
the VXD geometry
TH1F * hOccAfterInjHER
Histogram Occupancy after HER injection.
TH2F * hOccAfterInjHERGate
Occupancy after HER injection per Gate.
TH1I * hEOccAfterInjLER
Histogram for Nr Entries (=Triggrs) for normalization after LER injection.
StoreArray< PXDRawHit > m_storeRawHits
Input array for PXD Raw Hits.
TH1I * hTriggersPerBunch
Histogram forTrigger per Bunch
std::map< VxdID, TH1F * > hOccModAfterInjHER
Histogram Occupancy after HER injection.
bool m_offlineStudy
create histos with much finer binning and larger range
bool m_createGateHist
create per gate hits 2d histogram
TH1I * hEOccAfterInjHER
Histogram for Nr Entries (=Triggrs) for normalization after HER injection.
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
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.