Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:31:45

0001 #include <memory>
0002 
0003 #include <fstream>
0004 
0005 #include "CondFormats/CSCObjects/interface/CSCDDUMap.h"
0006 #include "CondFormats/DataRecord/interface/CSCDDUMapRcd.h"
0007 #include "OnlineDB/CSCCondDB/interface/CSCDDUMapValues.h"
0008 #include "OnlineDB/CSCCondDB/interface/CSCMap1.h"
0009 
0010 CSCDDUMapValues::CSCDDUMapValues(const edm::ParameterSet& iConfig) {
0011   //the following line is needed to tell the framework what
0012   // data is being produced
0013   setWhatProduced(this, &CSCDDUMapValues::produceDDUMap);
0014   findingRecord<CSCDDUMapRcd>();
0015   //now do what ever other initialization is needed
0016 }
0017 
0018 CSCDDUMapValues::~CSCDDUMapValues() {
0019   // do anything here that needs to be done at desctruction time
0020   // (e.g. close files, deallocate resources etc.)
0021 }
0022 
0023 //
0024 // member functions
0025 //
0026 
0027 // ------------ method called to produce the data  ------------
0028 CSCDDUMapValues::ReturnType CSCDDUMapValues::produceDDUMap(const CSCDDUMapRcd& iRecord) {
0029   //need a new object so to not be deleted at exit
0030   return ReturnType(fillDDUMap());
0031 }
0032 
0033 void CSCDDUMapValues::setIntervalFor(const edm::eventsetup::EventSetupRecordKey&,
0034                                      const edm::IOVSyncValue&,
0035                                      edm::ValidityInterval& oValidity) {
0036   oValidity = edm::ValidityInterval(edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime());
0037 }