CMS 3D CMS Logo

ProducerHPH.cc
Go to the documentation of this file.
1 // This ESproducer produces configuration needed by HitPatternHelper
2 //
3 // Created by J.Li on 1/23/21.
4 //
5 
15 
16 #include <memory>
17 
18 using namespace std;
19 using namespace edm;
20 
21 namespace hph {
22 
23  class ProducerHPH : public ESProducer {
24  public:
25  ProducerHPH(const ParameterSet& iConfig);
26  ~ProducerHPH() override {}
27  unique_ptr<Setup> produce(const SetupRcd& Rcd);
28 
29  private:
32  };
33 
34  ProducerHPH::ProducerHPH(const ParameterSet& iConfig) : iConfig_(iConfig) {
35  auto cc = setWhatProduced(this);
36  getTokenSetup_ = cc.consumes();
37  }
38 
39  unique_ptr<Setup> ProducerHPH::produce(const SetupRcd& Rcd) {
40  const tt::Setup& setupTT = Rcd.get(getTokenSetup_);
41  return make_unique<Setup>(iConfig_, setupTT);
42  }
43 
44 } // namespace hph
45 
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:165
Class to process and provide run-time constants used by Track Trigger emulators.
Definition: Setup.h:44
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
unique_ptr< Setup > produce(const SetupRcd &Rcd)
Definition: ProducerHPH.cc:39
ESGetToken< tt::Setup, tt::SetupRcd > getTokenSetup_
Definition: ProducerHPH.cc:31
const ParameterSet iConfig_
Definition: ProducerHPH.cc:30
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:61
HLT enums.
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
~ProducerHPH() override
Definition: ProducerHPH.cc:26