Belle II Software  release-05-02-19
PXDDQMCorrModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - 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/dataobjects/VxdID.h>
15 #include <pxd/geometry/SensorInfo.h>
16 #include <vxd/geometry/GeoCache.h>
17 
18 #include <framework/datastore/DataStore.h>
19 #include <framework/datastore/StoreArray.h>
20 #include <framework/datastore/RelationArray.h>
21 #include <pxd/dataobjects/PXDCluster.h>
22 
23 #include <vector>
24 #include "TH1F.h"
25 #include "TH2F.h"
26 
27 namespace Belle2 {
37  class PXDDQMCorrModule : public HistoModule { // <- derived from HistoModule class
38 
39  public:
40 
43 
44  private:
46  void initialize() override final;
47  void beginRun() override final;
48  void event() override final;
49 
54  void defineHisto() override final;
55 
56  private:
58  std::string m_storeClustersName;
60  std::string m_histogramDirectoryName;
61 
63  StoreArray<PXDCluster> m_storeClusters;
64 
65  // +1 in dimensions to protect against noisy VXDID values.
67  TH2F* m_CorrelationU{};
69  TH2F* m_CorrelationV{};
71  TH1F* m_DeltaU{};
73  TH1F* m_DeltaV{};
74  };
75 
77 }
78 
Belle2::PXDDQMCorrModule::m_storeClustersName
std::string m_storeClustersName
PXDClusters StoreArray name.
Definition: PXDDQMCorrModule.h:66
Belle2::PXDDQMCorrModule::defineHisto
void defineHisto() override final
Histogram definitions such as TH1(), TH2(), TNtuple(), TTree()....
Definition: PXDDQMCorrModule.cc:50
Belle2::PXDDQMCorrModule::m_histogramDirectoryName
std::string m_histogramDirectoryName
Name of the histogram directory in ROOT file.
Definition: PXDDQMCorrModule.h:68
Belle2::PXDDQMCorrModule::initialize
void initialize() override final
Module functions.
Definition: PXDDQMCorrModule.cc:74
Belle2::PXDDQMCorrModule::m_CorrelationU
TH2F * m_CorrelationU
Correlation Sensor 1 vs 2.
Definition: PXDDQMCorrModule.h:75
Belle2::PXDDQMCorrModule::m_DeltaV
TH1F * m_DeltaV
Correlation Sensor 1 vs 2.
Definition: PXDDQMCorrModule.h:81
Belle2::PXDDQMCorrModule::m_storeClusters
StoreArray< PXDCluster > m_storeClusters
Storearray for clusters
Definition: PXDDQMCorrModule.h:71
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::PXDDQMCorrModule::PXDDQMCorrModule
PXDDQMCorrModule()
Constructor.
Definition: PXDDQMCorrModule.cc:36
Belle2::PXDDQMCorrModule::event
void event() override final
Function to process event record.
Definition: PXDDQMCorrModule.cc:93
Belle2::PXDDQMCorrModule::beginRun
void beginRun() override final
Function to process begin_run record.
Definition: PXDDQMCorrModule.cc:83
Belle2::PXDDQMCorrModule::m_CorrelationV
TH2F * m_CorrelationV
Correlation Sensor 1 vs 2.
Definition: PXDDQMCorrModule.h:77
Belle2::PXDDQMCorrModule::m_DeltaU
TH1F * m_DeltaU
Correlation Sensor 1 vs 2.
Definition: PXDDQMCorrModule.h:79