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