Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:49

0001 #include <memory>
0002 
0003 #include <fstream>
0004 
0005 #include "CondFormats/CSCObjects/interface/CSCCrateMap.h"
0006 #include "CondFormats/DataRecord/interface/CSCCrateMapRcd.h"
0007 #include "OnlineDB/CSCCondDB/interface/CSCCrateMapValues.h"
0008 #include "OnlineDB/CSCCondDB/interface/CSCMap1.h"
0009 
0010 CSCCrateMapValues::CSCCrateMapValues(const edm::ParameterSet& iConfig) {
0011   //the following line is needed to tell the framework what
0012   // data is being produced
0013   setWhatProduced(this, &CSCCrateMapValues::produceCrateMap);
0014   findingRecord<CSCCrateMapRcd>();
0015   //now do what ever other initialization is needed
0016 }
0017 
0018 CSCCrateMapValues::~CSCCrateMapValues() {
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 CSCCrateMapValues::ReturnType CSCCrateMapValues::produceCrateMap(const CSCCrateMapRcd& iRecord) {
0029   //need a new object so to not be deleted at exit
0030   return ReturnType(fillCrateMap());
0031 }
0032 
0033 void CSCCrateMapValues::setIntervalFor(const edm::eventsetup::EventSetupRecordKey&,
0034                                        const edm::IOVSyncValue&,
0035                                        edm::ValidityInterval& oValidity) {
0036   oValidity = edm::ValidityInterval(edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime());
0037 }