Belle II Software development
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 <pxd/dataobjects/PXDRawHit.h>
15#include <pxd/dataobjects/PXDCluster.h>
16#include <mdst/dataobjects/EventLevelTriggerTimeInfo.h>
17
18#include <TH1.h>
19#include <TH2.h>
20#include <string>
21#include <map>
22
23namespace Belle2 {
29 namespace PXD {
36
37 public:
38
41
42 private:
44 std::string m_PXDRawHitsName;
45 std::string m_PXDClustersName;
47 bool m_eachModule{false};
48 bool m_offlineStudy{false};
49 bool m_useClusters{false};
50 bool m_createMaxHist{false};
51 bool m_createGateHist{false};
52
55
58
61
64
68 std::map<VxdID, TH1F*> hOccModAfterInjLER;
69 std::map<VxdID, TH1F*> hOccModAfterInjHER;
77 std::map<VxdID, TH1F*> hMaxOccModAfterInjLER;
78 std::map<VxdID, TH1F*> hMaxOccModAfterInjHER;
80// TH2F* hTrigAfterInjLER{}; /**< Histogram Veto tuning triggers after LER injection */
81// TH2F* hTrigAfterInjHER{}; /**< Histogram Veto tuning triggers after HER injection */
82
89 std::map<VxdID, TH2F*> hOccModAfterInjLERGate{};
90 std::map<VxdID, TH2F*> hOccModAfterInjHERGate{};
92 void initialize() override final;
94 void beginRun() override final;
96 void event() override final;
98 void defineHisto() override final;
100 };//end class declaration
101
102
103 } //end PXD namespace;
105} // 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.
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.
StoreObjPtr< EventLevelTriggerTimeInfo > m_EventLevelTriggerTimeInfo
Object for TTD mdst object.
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
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.