CalibMuon
CSCCalibration
plugins
CSCBadChambersConditions.cc
Go to the documentation of this file.
1
#include <fstream>
2
#include <memory>
3
4
#include "
CalibMuon/CSCCalibration/interface/CSCBadChambersConditions.h
"
5
#include "
CondFormats/CSCObjects/interface/CSCBadChambers.h
"
6
#include "
CondFormats/DataRecord/interface/CSCBadChambersRcd.h
"
7
8
CSCBadChambersConditions::CSCBadChambersConditions
(
const
edm::ParameterSet
&iConfig) {
9
// the following line is needed to tell the framework what
10
// data is being produced
11
setWhatProduced
(
this
, &
CSCBadChambersConditions::produceBadChambers
);
12
findingRecord<CSCBadChambersRcd>();
13
// now do what ever other initialization is needed
14
}
15
16
CSCBadChambersConditions::~CSCBadChambersConditions
() {
17
// do anything here that needs to be done at desctruction time
18
// (e.g. close files, deallocate resources etc.)
19
}
20
21
//
22
// member functions
23
//
24
25
// ------------ method called to produce the data ------------
26
CSCBadChambersConditions::ReturnType
CSCBadChambersConditions::produceBadChambers
(
const
CSCBadChambersRcd
&iRecord) {
27
// need a new object so to not be deleted at exit
28
return
CSCBadChambersConditions::ReturnType
(
prefillBadChambers
());
29
}
30
31
void
CSCBadChambersConditions::setIntervalFor
(
const
edm::eventsetup::EventSetupRecordKey
&,
32
const
edm::IOVSyncValue
&,
33
edm::ValidityInterval
&oValidity) {
34
oValidity =
edm::ValidityInterval
(
edm::IOVSyncValue::beginOfTime
(),
edm::IOVSyncValue::endOfTime
());
35
}
CSCBadChambersConditions::ReturnType
std::unique_ptr< CSCBadChambers > ReturnType
Definition:
CSCBadChambersConditions.h:27
CSCBadChambersConditions::~CSCBadChambersConditions
~CSCBadChambersConditions() override
Definition:
CSCBadChambersConditions.cc:16
CSCBadChambersConditions.h
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:138
edm::ValidityInterval
Definition:
ValidityInterval.h:28
edm::eventsetup::EventSetupRecordKey
Definition:
EventSetupRecordKey.h:30
CSCBadChambersConditions::CSCBadChambersConditions
CSCBadChambersConditions(const edm::ParameterSet &)
Definition:
CSCBadChambersConditions.cc:8
CSCBadChambersConditions::prefillBadChambers
static CSCBadChambers * prefillBadChambers()
Definition:
CSCBadChambersConditions.h:44
edm::IOVSyncValue
Definition:
IOVSyncValue.h:31
edm::ParameterSet
Definition:
ParameterSet.h:36
CSCBadChambersConditions::setIntervalFor
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
Definition:
CSCBadChambersConditions.cc:31
edm::IOVSyncValue::endOfTime
static const IOVSyncValue & endOfTime()
Definition:
IOVSyncValue.cc:82
CSCBadChambersConditions::produceBadChambers
ReturnType produceBadChambers(const CSCBadChambersRcd &)
Definition:
CSCBadChambersConditions.cc:26
CSCBadChambersRcd.h
CSCBadChambersRcd
Definition:
CSCBadChambersRcd.h:5
cond::ValidityInterval
std::pair< Time_t, Time_t > ValidityInterval
Definition:
Time.h:17
edm::IOVSyncValue::beginOfTime
static const IOVSyncValue & beginOfTime()
Definition:
IOVSyncValue.cc:88
CSCBadChambers.h
Generated for CMSSW Reference Manual by
1.8.16