Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:26:23

0001 #include "RecoLocalTracker/ClusterParameterEstimator/interface/PixelFakeCPE.h"
0002 
0003 #include "MagneticField/Engine/interface/MagneticField.h"
0004 #include "MagneticField/Records/interface/IdealMagneticFieldRecord.h"
0005 #include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
0006 #include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
0007 #include "Geometry/Records/interface/TrackerTopologyRcd.h"
0008 #include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
0009 
0010 #include "FWCore/Framework/interface/EventSetup.h"
0011 #include "FWCore/Framework/interface/ESHandle.h"
0012 #include "FWCore/Framework/interface/ModuleFactory.h"
0013 #include "FWCore/Framework/interface/ESProducer.h"
0014 
0015 #include <string>
0016 #include <memory>
0017 
0018 #include "FWCore/Framework/interface/ESProducer.h"
0019 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0020 #include "RecoLocalTracker/Records/interface/TkPixelCPERecord.h"
0021 
0022 namespace {
0023 
0024   class FakePixelCPEESProducer final : public edm::ESProducer {
0025   public:
0026     FakePixelCPEESProducer(const edm::ParameterSet &p) {
0027       std::string myname = p.getParameter<std::string>("ComponentName");
0028       setWhatProduced(this, myname);
0029     }
0030 
0031     ~FakePixelCPEESProducer() override = default;
0032 
0033     std::unique_ptr<PixelClusterParameterEstimator> produce(const TkPixelCPERecord &) {
0034       return std::make_unique<PixelFakeCPE>();
0035     }
0036 
0037   private:
0038   };
0039 
0040 }  // namespace
0041 
0042 #include "FWCore/Framework/interface/MakerMacros.h"
0043 #include "FWCore/Utilities/interface/typelookup.h"
0044 #include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"
0045 
0046 DEFINE_FWK_EVENTSETUP_MODULE(FakePixelCPEESProducer);