9#include "pxd/modules/pxdDQM/PXDDQMCorrModule.h"
11#include <framework/core/HistoModule.h>
14#include <boost/format.hpp>
18#include "TDirectory.h"
51 TDirectory* oldDir = gDirectory;
62 m_CorrelationU =
new TH2F(
"CorrelationU",
"Correlation of U;U1/cm;U2/cm", 25, -nPixelsU1, nPixelsU1, 25, nPixelsU2, nPixelsU2);
63 m_CorrelationV =
new TH2F(
"CorrelationV",
"Correlation of V;V1/cm;V2/cm", 50, -nPixelsV1, nPixelsV1, 50, nPixelsV2, nPixelsV2);
64 m_DeltaU =
new TH1F(
"DeltaU",
"Correlation of U2-U1;Udiff/cm", 100, -nPixelsU1, nPixelsU2);
65 m_DeltaV =
new TH1F(
"DeltaV",
"Correlation of V2-V1;Vdiff/cm", 200, -nPixelsV1, nPixelsV2);
98 int iPlane1 = cluster1.getSensorID().getLayerNumber();
101 int iPlane2 = cluster2.getSensorID().getLayerNumber();
105 m_DeltaU->Fill(cluster2.getU() - cluster1.getU());
106 m_DeltaV->Fill(cluster2.getV() - cluster1.getV());
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
The PXD Cluster class This class stores all information about reconstructed PXD clusters The position...
TH2F * m_CorrelationV
Correlation Sensor 1 vs 2.
void initialize() override final
Initialize.
StoreArray< PXDCluster > m_storeClusters
Storearray for clusters
void defineHisto() override final
Histogram definitions such as TH1(), TH2(), TNtuple(), TTree()....
void event() override final
Event.
PXDDQMCorrModule()
Constructor.
std::string m_histogramDirectoryName
Name of the histogram directory in ROOT file.
TH2F * m_CorrelationU
Correlation Sensor 1 vs 2.
TH1F * m_DeltaV
Correlation Sensor 1 vs 2.
std::string m_storeClustersName
PXDClusters StoreArray name.
void beginRun() override final
Begin run.
TH1F * m_DeltaU
Correlation Sensor 1 vs 2.
bool isRequired(const std::string &name="")
Ensure this array/object has been registered previously.
int getEntries() const
Get the number of objects in the array.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.