Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:32

0001 #ifndef _CSCFRONTIERCROSSTALKCONDITIONS_H
0002 #define _CSCFRONTIERCROSSTALKCONDITIONS_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/CSCcrosstalk.h"
0016 #include "CondFormats/DataRecord/interface/CSCcrosstalkRcd.h"
0017 #include <DataFormats/MuonDetId/interface/CSCDetId.h>
0018 
0019 class CSCFakeCrosstalkConditions : public edm::ESProducer, public edm::EventSetupRecordIntervalFinder {
0020 public:
0021   CSCFakeCrosstalkConditions(const edm::ParameterSet &);
0022   ~CSCFakeCrosstalkConditions() override;
0023 
0024   float mean, min, minchi;
0025   int seed;
0026   long int M;
0027 
0028   CSCcrosstalk *prefillCrosstalk();
0029 
0030   typedef std::unique_ptr<CSCcrosstalk> ReturnType;
0031 
0032   ReturnType produceCrosstalk(const CSCcrosstalkRcd &);
0033 
0034 private:
0035   // ----------member data ---------------------------
0036   void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &,
0037                       const edm::IOVSyncValue &,
0038                       edm::ValidityInterval &) override;
0039 };
0040 
0041 #endif