Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:57:12

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