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
22
#include "
DataFormats/Common/interface/DetSetVector.h
"
23
#include "
DataFormats/DetId/interface/DetId.h
"
24
25
#include "
DataFormats/SiPixelDigi/interface/SiPixelCalibDigi.h
"
26
#include "
DataFormats/SiPixelDigi/interface/SiPixelCalibDigiError.h
"
27
28
#include "
DQMServices/Core/interface/DQMStore.h
"
29
30
#include "
DQM/SiPixelCommon/interface/SiPixelHistogramId.h
"
31
#include "
DQM/SiPixelCommon/interface/SiPixelFolderOrganizer.h
"
32
33
#include "
Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h
"
34
#include "
Geometry/CommonDetUnit/interface/PixelGeomDetUnit.h
"
35
#include "
Geometry/CommonDetUnit/interface/PixelGeomDetType.h
"
36
#include "
Geometry/Records/interface/TrackerDigiGeometryRecord.h
"
37
38
#include "
CondFormats/SiPixelObjects/interface/SiPixelFedCablingMap.h
"
39
40
//
41
// class declaration
42
//
43
44
class
SiPixelErrorsDigisToCalibDigis
:
public
edm::EDAnalyzer
{
45
public
:
46
typedef
dqm::legacy::MonitorElement
MonitorElement
;
47
typedef
dqm::legacy::DQMStore
DQMStore
;
48
explicit
SiPixelErrorsDigisToCalibDigis
(
const
edm::ParameterSet
&);
49
~SiPixelErrorsDigisToCalibDigis
()
override
;
50
51
MonitorElement
*
bookDQMHistogram2D
(uint32_t detid,
52
std::string
name
,
53
std::string
title
,
54
int
nchX,
55
double
lowX,
56
double
highX,
57
int
nchY,
58
double
lowY,
59
double
highY);
60
MonitorElement
*
bookDQMHistoPlaquetteSummary2D
(
61
uint32_t detid,
62
std::string
name
,
63
std::string
64
title
);
// take the detid to determine the size of rows and columns, this saves looking up everything in the cabling map by the user.
65
66
bool
setDQMDirectory
(
std::string
dirName
);
67
bool
setDQMDirectory
(uint32_t detID);
//automatically create directory hierachy based on DetID
68
protected
:
69
edm::ESHandle<TrackerGeometry>
geom_
;
70
71
edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord>
trackerGeomToken_
;
72
73
private
:
74
void
beginJob
()
override
;
75
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
76
void
endJob
()
override
;
77
78
// ----------member data ---------------------------
79
80
// store the number of error per detector id encountered
81
// store the location of the mismatching error in the detector id
82
83
edm::InputTag
siPixelProducerLabel_
;
84
edm::EDGetTokenT<edm::DetSetVector<SiPixelCalibDigiError>
>
tPixelCalibDigiError
;
85
86
DQMStore
*
daqBE_
;
87
SiPixelHistogramId
*
theHistogramIdWorker_
;
88
std::string
outputFilename_
;
89
bool
createOutputFile_
;
90
91
SiPixelFolderOrganizer
*
folderMaker_
;
92
std::map<uint32_t, MonitorElement*>
SiPixelErrorsDigisToCalibDigis_2DErrorInformation_
;
93
94
MonitorElement
*
temp
;
95
};
96
97
#endif
runGCPTkAlMap.title
string title
Definition:
runGCPTkAlMap.py:94
SiPixelErrorsDigisToCalibDigis::theHistogramIdWorker_
SiPixelHistogramId * theHistogramIdWorker_
Definition:
SiPixelErrorsDigisToCalibDigis.h:87
TrackerGeometry.h
SiPixelErrorsDigisToCalibDigis::daqBE_
DQMStore * daqBE_
Definition:
SiPixelErrorsDigisToCalibDigis.h:86
edm::EDGetTokenT
Definition:
EDGetToken.h:33
SiPixelErrorsDigisToCalibDigis::outputFilename_
std::string outputFilename_
Definition:
SiPixelErrorsDigisToCalibDigis.h:88
SiPixelFedCablingMap.h
DQMStore.h
SiPixelHistogramId.h
dqm::legacy::MonitorElement
Definition:
MonitorElement.h:462
EDAnalyzer.h
SiPixelErrorsDigisToCalibDigis::~SiPixelErrorsDigisToCalibDigis
~SiPixelErrorsDigisToCalibDigis() override
Definition:
SiPixelErrorsDigisToCalibDigis.cc:56
edm::EDAnalyzer
Definition:
EDAnalyzer.h:28
SiPixelErrorsDigisToCalibDigis::setDQMDirectory
bool setDQMDirectory(std::string dirName)
Definition:
SiPixelErrorsDigisToCalibDigis.cc:153
SiPixelErrorsDigisToCalibDigis::DQMStore
dqm::legacy::DQMStore DQMStore
Definition:
SiPixelErrorsDigisToCalibDigis.h:47
SiPixelErrorsDigisToCalibDigis::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
SiPixelErrorsDigisToCalibDigis.cc:66
dqm::legacy::DQMStore
Definition:
DQMStore.h:727
SiPixelErrorsDigisToCalibDigis::SiPixelErrorsDigisToCalibDigis
SiPixelErrorsDigisToCalibDigis(const edm::ParameterSet &)
Definition:
SiPixelErrorsDigisToCalibDigis.cc:38
SiPixelErrorsDigisToCalibDigis::createOutputFile_
bool createOutputFile_
Definition:
SiPixelErrorsDigisToCalibDigis.h:89
Service.h
SiPixelErrorsDigisToCalibDigis::siPixelProducerLabel_
edm::InputTag siPixelProducerLabel_
Definition:
SiPixelErrorsDigisToCalibDigis.h:83
edm::ESHandle< TrackerGeometry >
SiPixelErrorsDigisToCalibDigis::bookDQMHistoPlaquetteSummary2D
MonitorElement * bookDQMHistoPlaquetteSummary2D(uint32_t detid, std::string name, std::string title)
Definition:
SiPixelErrorsDigisToCalibDigis.cc:141
PixelGeomDetType.h
SiPixelCalibDigiError.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
TrackerDigiGeometryRecord.h
SiPixelErrorsDigisToCalibDigis::trackerGeomToken_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeomToken_
Definition:
SiPixelErrorsDigisToCalibDigis.h:71
SiPixelErrorsDigisToCalibDigis::MonitorElement
dqm::legacy::MonitorElement MonitorElement
Definition:
SiPixelErrorsDigisToCalibDigis.h:46
SiPixelHistogramId
Definition:
SiPixelHistogramId.h:25
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
SiPixelErrorsDigisToCalibDigis::SiPixelErrorsDigisToCalibDigis_2DErrorInformation_
std::map< uint32_t, MonitorElement * > SiPixelErrorsDigisToCalibDigis_2DErrorInformation_
Definition:
SiPixelErrorsDigisToCalibDigis.h:92
SiPixelCalibDigi.h
edm::EventSetup
Definition:
EventSetup.h:58
DetSetVector.h
SiPixelErrorsDigisToCalibDigis
Definition:
SiPixelErrorsDigisToCalibDigis.h:44
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord >
SiPixelErrorsDigisToCalibDigis::temp
MonitorElement * temp
Definition:
SiPixelErrorsDigisToCalibDigis.h:94
DetId.h
Frameworkfwd.h
SiPixelFolderOrganizer
Definition:
SiPixelFolderOrganizer.h:26
PixelGeomDetUnit.h
SiPixelErrorsDigisToCalibDigis::beginJob
void beginJob() override
Definition:
SiPixelErrorsDigisToCalibDigis.cc:115
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:91
SiPixelFolderOrganizer.h
SiPixelErrorsDigisToCalibDigis::geom_
edm::ESHandle< TrackerGeometry > geom_
Definition:
SiPixelErrorsDigisToCalibDigis.h:69
SiPixelErrorsDigisToCalibDigis::endJob
void endJob() override
Definition:
SiPixelErrorsDigisToCalibDigis.cc:118
edm::Event
Definition:
Event.h:73
SiPixelErrorsDigisToCalibDigis::tPixelCalibDigiError
edm::EDGetTokenT< edm::DetSetVector< SiPixelCalibDigiError > > tPixelCalibDigiError
Definition:
SiPixelErrorsDigisToCalibDigis.h:84
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:128
Generated for CMSSW Reference Manual by
1.8.16