CalibTracker
SiPixelTools
plugins
SiPixelErrorsDigisToCalibDigis.h
Go to the documentation of this file.
1
#ifndef SiPixelErrorsDigisToCalibDigis_h
2
#define SiPixelErrorsDigisToCalibDigis_h
3
10
// Original Author: Ricardo Vasquez Sierra on April 9, 2008
11
12
// system include files
13
#include <memory>
14
15
// user include files
16
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
17
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
18
19
#include "
FWCore/Framework/interface/Event.h
"
20
#include "
FWCore/ServiceRegistry/interface/Service.h
"
21
#include "
FWCore/Framework/interface/MakerMacros.h
"
22
#include "
FWCore/Framework/interface/ESHandle.h
"
23
24
#include "
FWCore/Utilities/interface/InputTag.h
"
25
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
26
27
#include "
DataFormats/Common/interface/DetSetVector.h
"
28
#include "
DataFormats/DetId/interface/DetId.h
"
29
30
#include "
DataFormats/SiPixelDigi/interface/SiPixelCalibDigi.h
"
31
#include "
DataFormats/SiPixelDigi/interface/SiPixelCalibDigiError.h
"
32
33
#include "
DQMServices/Core/interface/DQMStore.h
"
34
35
#include "
DQM/SiPixelCommon/interface/SiPixelHistogramId.h
"
36
#include "
DQM/SiPixelCommon/interface/SiPixelFolderOrganizer.h
"
37
38
#include "
Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h
"
39
#include "
Geometry/CommonDetUnit/interface/PixelGeomDetUnit.h
"
40
#include "
Geometry/CommonDetUnit/interface/PixelGeomDetType.h
"
41
#include "
Geometry/Records/interface/TrackerDigiGeometryRecord.h
"
42
43
#include "
CondFormats/SiPixelObjects/interface/SiPixelFedCablingMap.h
"
44
45
//
46
// class declaration
47
//
48
49
class
SiPixelErrorsDigisToCalibDigis
:
public
edm::EDAnalyzer
{
50
public
:
51
typedef
dqm::legacy::MonitorElement
MonitorElement
;
52
typedef
dqm::legacy::DQMStore
DQMStore
;
53
explicit
SiPixelErrorsDigisToCalibDigis
(
const
edm::ParameterSet
&);
54
~SiPixelErrorsDigisToCalibDigis
()
override
;
55
56
MonitorElement
*
bookDQMHistogram2D
(uint32_t detid,
57
std::string
name
,
58
std::string
title
,
59
int
nchX,
60
double
lowX,
61
double
highX,
62
int
nchY,
63
double
lowY,
64
double
highY);
65
MonitorElement
*
bookDQMHistoPlaquetteSummary2D
(
66
uint32_t detid,
67
std::string
name
,
68
std::string
69
title
);
// take the detid to determine the size of rows and columns, this saves looking up everything in the cabling map by the user.
70
71
bool
setDQMDirectory
(
std::string
dirName
);
72
bool
setDQMDirectory
(uint32_t detID);
//automatically create directory hierachy based on DetID
73
protected
:
74
edm::ESHandle<TrackerGeometry>
geom_
;
75
76
private
:
77
void
beginJob
()
override
;
78
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
79
void
endJob
()
override
;
80
81
// ----------member data ---------------------------
82
83
// store the number of error per detector id encountered
84
// store the location of the mismatching error in the detector id
85
86
edm::InputTag
siPixelProducerLabel_
;
87
edm::EDGetTokenT<edm::DetSetVector<SiPixelCalibDigiError>
>
tPixelCalibDigiError
;
88
89
DQMStore
*
daqBE_
;
90
SiPixelHistogramId
*
theHistogramIdWorker_
;
91
std::string
outputFilename_
;
92
bool
createOutputFile_
;
93
94
SiPixelFolderOrganizer
*
folderMaker_
;
95
std::map<uint32_t, MonitorElement*>
SiPixelErrorsDigisToCalibDigis_2DErrorInformation_
;
96
97
MonitorElement
*
temp
;
98
};
99
100
#endif
SiPixelErrorsDigisToCalibDigis::theHistogramIdWorker_
SiPixelHistogramId * theHistogramIdWorker_
Definition:
SiPixelErrorsDigisToCalibDigis.h:90
TrackerGeometry.h
SiPixelErrorsDigisToCalibDigis::daqBE_
DQMStore * daqBE_
Definition:
SiPixelErrorsDigisToCalibDigis.h:89
ESHandle.h
edm::EDGetTokenT
Definition:
EDGetToken.h:33
SiPixelErrorsDigisToCalibDigis::outputFilename_
std::string outputFilename_
Definition:
SiPixelErrorsDigisToCalibDigis.h:91
SiPixelFedCablingMap.h
DQMStore.h
SiPixelHistogramId.h
dqm::legacy::MonitorElement
Definition:
MonitorElement.h:461
EDAnalyzer.h
SiPixelErrorsDigisToCalibDigis::~SiPixelErrorsDigisToCalibDigis
~SiPixelErrorsDigisToCalibDigis() override
Definition:
SiPixelErrorsDigisToCalibDigis.cc:60
edm::EDAnalyzer
Definition:
EDAnalyzer.h:29
SiPixelErrorsDigisToCalibDigis::setDQMDirectory
bool setDQMDirectory(std::string dirName)
Definition:
SiPixelErrorsDigisToCalibDigis.cc:157
MakerMacros.h
SiPixelErrorsDigisToCalibDigis::DQMStore
dqm::legacy::DQMStore DQMStore
Definition:
SiPixelErrorsDigisToCalibDigis.h:52
SiPixelErrorsDigisToCalibDigis::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
SiPixelErrorsDigisToCalibDigis.cc:70
dqm::legacy::DQMStore
Definition:
DQMStore.h:727
SiPixelErrorsDigisToCalibDigis::SiPixelErrorsDigisToCalibDigis
SiPixelErrorsDigisToCalibDigis(const edm::ParameterSet &)
Definition:
SiPixelErrorsDigisToCalibDigis.cc:44
SiPixelErrorsDigisToCalibDigis::createOutputFile_
bool createOutputFile_
Definition:
SiPixelErrorsDigisToCalibDigis.h:92
Service.h
SiPixelErrorsDigisToCalibDigis::siPixelProducerLabel_
edm::InputTag siPixelProducerLabel_
Definition:
SiPixelErrorsDigisToCalibDigis.h:86
edm::ESHandle< TrackerGeometry >
SiPixelErrorsDigisToCalibDigis::bookDQMHistoPlaquetteSummary2D
MonitorElement * bookDQMHistoPlaquetteSummary2D(uint32_t detid, std::string name, std::string title)
Definition:
SiPixelErrorsDigisToCalibDigis.cc:145
PixelGeomDetType.h
SiPixelCalibDigiError.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
TrackerDigiGeometryRecord.h
SiPixelErrorsDigisToCalibDigis::MonitorElement
dqm::legacy::MonitorElement MonitorElement
Definition:
SiPixelErrorsDigisToCalibDigis.h:51
SiPixelHistogramId
Definition:
SiPixelHistogramId.h:25
edm::ParameterSet
Definition:
ParameterSet.h:36
Event.h
SiPixelErrorsDigisToCalibDigis::SiPixelErrorsDigisToCalibDigis_2DErrorInformation_
std::map< uint32_t, MonitorElement * > SiPixelErrorsDigisToCalibDigis_2DErrorInformation_
Definition:
SiPixelErrorsDigisToCalibDigis.h:95
SiPixelCalibDigi.h
edm::EventSetup
Definition:
EventSetup.h:57
DetSetVector.h
SiPixelErrorsDigisToCalibDigis
Definition:
SiPixelErrorsDigisToCalibDigis.h:49
InputTag.h
overlapproblemtsosanalyzer_cfi.title
title
Definition:
overlapproblemtsosanalyzer_cfi.py:7
SiPixelErrorsDigisToCalibDigis::temp
MonitorElement * temp
Definition:
SiPixelErrorsDigisToCalibDigis.h:97
DetId.h
Frameworkfwd.h
SiPixelFolderOrganizer
Definition:
SiPixelFolderOrganizer.h:26
PixelGeomDetUnit.h
SiPixelErrorsDigisToCalibDigis::beginJob
void beginJob() override
Definition:
SiPixelErrorsDigisToCalibDigis.cc:119
TrackerOfflineValidation_Dqm_cff.dirName
dirName
Definition:
TrackerOfflineValidation_Dqm_cff.py:55
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
SiPixelErrorsDigisToCalibDigis::folderMaker_
SiPixelFolderOrganizer * folderMaker_
Definition:
SiPixelErrorsDigisToCalibDigis.h:94
SiPixelFolderOrganizer.h
ParameterSet.h
SiPixelErrorsDigisToCalibDigis::geom_
edm::ESHandle< TrackerGeometry > geom_
Definition:
SiPixelErrorsDigisToCalibDigis.h:74
SiPixelErrorsDigisToCalibDigis::endJob
void endJob() override
Definition:
SiPixelErrorsDigisToCalibDigis.cc:122
edm::Event
Definition:
Event.h:73
SiPixelErrorsDigisToCalibDigis::tPixelCalibDigiError
edm::EDGetTokenT< edm::DetSetVector< SiPixelCalibDigiError > > tPixelCalibDigiError
Definition:
SiPixelErrorsDigisToCalibDigis.h:87
edm::InputTag
Definition:
InputTag.h:15
SiPixelErrorsDigisToCalibDigis::bookDQMHistogram2D
MonitorElement * bookDQMHistogram2D(uint32_t detid, std::string name, std::string title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Definition:
SiPixelErrorsDigisToCalibDigis.cc:132
Generated for CMSSW Reference Manual by
1.8.16