Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:51

0001 #ifndef CalibTracker_SiStripESProducers_SiStripFedCablingFakeESSource_H
0002 #define CalibTracker_SiStripESProducers_SiStripFedCablingFakeESSource_H
0003 
0004 #include "CalibTracker/SiStripESProducers/interface/SiStripFedCablingESProducer.h"
0005 #include "CalibFormats/SiStripObjects/interface/SiStripDetInfo.h"
0006 #include "FWCore/Framework/interface/EventSetupRecordIntervalFinder.h"
0007 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0008 #include "FWCore/ParameterSet/interface/FileInPath.h"
0009 
0010 class SiStripFedCabling;
0011 class SiStripFedCablingRcd;
0012 
0013 /**
0014    @class SiStripFedCablingFakeESSource
0015    @author R.Bainbridge
0016    @brief Builds cabling map based on list of DetIds and FedIds read from ascii files
0017 */
0018 class SiStripFedCablingFakeESSource : public SiStripFedCablingESProducer, public edm::EventSetupRecordIntervalFinder {
0019 public:
0020   explicit SiStripFedCablingFakeESSource(const edm::ParameterSet&);
0021   ~SiStripFedCablingFakeESSource() override;
0022 
0023 protected:
0024   void setIntervalFor(const edm::eventsetup::EventSetupRecordKey&,
0025                       const edm::IOVSyncValue&,
0026                       edm::ValidityInterval&) override;
0027 
0028 private:
0029   /** Builds cabling map based on ascii files. */
0030   SiStripFedCabling* make(const SiStripFedCablingRcd&) override;
0031 
0032   /** Location of ascii file containing FedIds. */
0033   edm::FileInPath fedIds_;
0034   edm::ParameterSet pset_;
0035   SiStripDetInfo m_detInfo;
0036 };
0037 
0038 #endif  // CalibTracker_SiStripESProducers_SiStripFedCablingFakeESSource_H