CalibTracker
SiPixelESProducers
plugins
SiPixelFakeQualityESSource.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: SiPixelFakeQualityESSource
4
// Class: SiPixelFakeQualityESSource
5
//
13
//
14
// Original Author: Bernadette Heyburn
15
// Created: Oct 21 2008
16
//
17
//
18
19
// user include files
20
21
#include "
CalibTracker/SiPixelESProducers/interface/SiPixelFakeQualityESSource.h
"
22
#include "
CalibTracker/SiPixelESProducers/interface/SiPixelDetInfoFileReader.h
"
23
#include "
Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h
"
24
#include "
Geometry/Records/interface/TrackerDigiGeometryRecord.h
"
25
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
26
//
27
// constructors and destructor
28
//
29
SiPixelFakeQualityESSource::SiPixelFakeQualityESSource
(
const
edm::ParameterSet
& conf_)
30
: fp_(conf_.getParameter<
edm
::FileInPath>(
"file"
)) {
31
edm::LogInfo
(
"SiPixelFakeQualityESSource::SiPixelFakeQualityESSource"
);
32
//the following line is needed to tell the framework what
33
// data is being produced
34
setWhatProduced
(
this
);
35
findingRecord<SiPixelQualityFromDbRcd>();
36
}
37
38
SiPixelFakeQualityESSource::~SiPixelFakeQualityESSource
() {
39
// do anything here that needs to be done at desctruction time
40
// (e.g. close files, deallocate resources etc.)
41
}
42
43
std::unique_ptr<SiPixelQuality>
SiPixelFakeQualityESSource::produce
(
const
SiPixelQualityFromDbRcd
&) {
45
// errortype "whole" = int 0 in DB BadRocs = 65535 //
46
// errortype "tbmA" = int 1 in DB BadRocs = 255 //
47
// errortype "tbmB" = int 2 in DB Bad Rocs = 65280 //
48
// errortype "none" = int 3 in DB //
50
51
SiPixelQuality
*
obj
=
new
SiPixelQuality
();
52
53
SiPixelQuality::disabledModuleType
BadModule;
54
BadModule.
DetID
= 1;
55
BadModule.
errorType
= 0;
56
BadModule.
BadRocs
= 65535;
57
obj
->addDisabledModule(BadModule);
58
59
return
std::unique_ptr<SiPixelQuality>(
obj
);
60
}
61
62
void
SiPixelFakeQualityESSource::setIntervalFor
(
const
edm::eventsetup::EventSetupRecordKey
&,
63
const
edm::IOVSyncValue
& iosv,
64
edm::ValidityInterval
& oValidity) {
65
edm::ValidityInterval
infinity
(iosv.
beginOfTime
(), iosv.
endOfTime
());
66
oValidity =
infinity
;
67
}
MessageLogger.h
TrackerGeometry.h
SiPixelFakeQualityESSource::SiPixelFakeQualityESSource
SiPixelFakeQualityESSource(const edm::ParameterSet &)
Definition:
SiPixelFakeQualityESSource.cc:29
edm
HLT enums.
Definition:
AlignableModifier.h:19
SiPixelQuality::disabledModuleType
Definition:
SiPixelQuality.h:29
edm::LogInfo
Definition:
MessageLogger.h:254
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:138
edm::ValidityInterval
Definition:
ValidityInterval.h:28
SiPixelQuality::disabledModuleType::errorType
int errorType
Definition:
SiPixelQuality.h:31
infinity
const double infinity
Definition:
CSCChamberFitter.cc:10
edm::eventsetup::EventSetupRecordKey
Definition:
EventSetupRecordKey.h:30
SiPixelFakeQualityESSource.h
SiPixelQualityFromDbRcd
Definition:
SiPixelQualityFromDbRcd.h:24
edm::IOVSyncValue
Definition:
IOVSyncValue.h:31
getGTfromDQMFile.obj
obj
Definition:
getGTfromDQMFile.py:32
SiPixelFakeQualityESSource::setIntervalFor
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
Definition:
SiPixelFakeQualityESSource.cc:62
TrackerDigiGeometryRecord.h
edm::ParameterSet
Definition:
ParameterSet.h:36
SiPixelQuality
Definition:
SiPixelQuality.h:27
edm::IOVSyncValue::endOfTime
static const IOVSyncValue & endOfTime()
Definition:
IOVSyncValue.cc:82
SiPixelQuality::disabledModuleType::DetID
uint32_t DetID
Definition:
SiPixelQuality.h:30
SiPixelFakeQualityESSource::~SiPixelFakeQualityESSource
~SiPixelFakeQualityESSource() override
Definition:
SiPixelFakeQualityESSource.cc:38
SiPixelDetInfoFileReader.h
SiPixelQuality::disabledModuleType::BadRocs
unsigned short BadRocs
Definition:
SiPixelQuality.h:32
edm::IOVSyncValue::beginOfTime
static const IOVSyncValue & beginOfTime()
Definition:
IOVSyncValue.cc:88
AlCaHarvesting_cff.SiPixelQuality
SiPixelQuality
Definition:
AlCaHarvesting_cff.py:229
SiPixelFakeQualityESSource::produce
virtual std::unique_ptr< SiPixelQuality > produce(const SiPixelQualityFromDbRcd &)
Definition:
SiPixelFakeQualityESSource.cc:43
Generated for CMSSW Reference Manual by
1.8.16