1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#include <fstream>
#include <memory>
#include "CalibMuon/CSCCalibration/interface/CSCGainsDBConditions.h"
#include "CondFormats/CSCObjects/interface/CSCDBGains.h"
#include "CondFormats/DataRecord/interface/CSCDBGainsRcd.h"
CSCGainsDBConditions::CSCGainsDBConditions(const edm::ParameterSet &iConfig) {
// the following line is needed to tell the framework what
// data is being produced
// added by Zhen (changed since 1_2_0)
setWhatProduced(this, &CSCGainsDBConditions::produceDBGains);
findingRecord<CSCDBGainsRcd>();
// now do what ever other initialization is needed
}
CSCGainsDBConditions::~CSCGainsDBConditions() {
// do anything here that needs to be done at desctruction time
// (e.g. close files, deallocate resources etc.)
}
//
// member functions
//
// ------------ method called to produce the data ------------
CSCGainsDBConditions::ReturnType CSCGainsDBConditions::produceDBGains(const CSCDBGainsRcd &iRecord) {
// need a new object so to not be deleted at exit
return CSCGainsDBConditions::ReturnType(prefillDBGains());
}
void CSCGainsDBConditions::setIntervalFor(const edm::eventsetup::EventSetupRecordKey &,
const edm::IOVSyncValue &,
edm::ValidityInterval &oValidity) {
oValidity = edm::ValidityInterval(edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime());
}
|