File indexing completed on 2024-04-06 11:58:20
0001 #ifndef _CSCFAKENOISEMATRIXCONDITIONS_H
0002 #define _CSCFAKENOISEMATRIXCONDITIONS_H
0003
0004 #include "FWCore/Framework/interface/ESHandle.h"
0005 #include "FWCore/Framework/interface/ESProducer.h"
0006 #include "FWCore/Framework/interface/Event.h"
0007 #include "FWCore/Framework/interface/EventSetup.h"
0008 #include "FWCore/Framework/interface/EventSetupRecordIntervalFinder.h"
0009 #include "FWCore/Framework/interface/Frameworkfwd.h"
0010 #include "FWCore/Framework/interface/MakerMacros.h"
0011 #include "FWCore/Framework/interface/SourceFactory.h"
0012 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0013 #include <memory>
0014
0015 #include "CondFormats/CSCObjects/interface/CSCNoiseMatrix.h"
0016 #include "CondFormats/DataRecord/interface/CSCNoiseMatrixRcd.h"
0017 #include <DataFormats/MuonDetId/interface/CSCDetId.h>
0018
0019 class CSCFakeNoiseMatrixConditions : public edm::ESProducer, public edm::EventSetupRecordIntervalFinder {
0020 public:
0021 CSCFakeNoiseMatrixConditions(const edm::ParameterSet &);
0022 ~CSCFakeNoiseMatrixConditions() override;
0023
0024 CSCNoiseMatrix *prefillNoiseMatrix();
0025
0026 typedef std::unique_ptr<CSCNoiseMatrix> ReturnType;
0027 ReturnType produceNoiseMatrix(const CSCNoiseMatrixRcd &);
0028
0029 private:
0030 void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &,
0031 const edm::IOVSyncValue &,
0032 edm::ValidityInterval &) override;
0033 };
0034
0035 #endif