CMS 3D CMS Logo

ProducerLayerEncoding.cc
Go to the documentation of this file.
8 
9 #include <memory>
10 
11 using namespace std;
12 using namespace edm;
13 
14 namespace trackerTFP {
15 
22  public:
23  ProducerLayerEncoding(const ParameterSet& iConfig);
24  ~ProducerLayerEncoding() override {}
25  unique_ptr<LayerEncoding> produce(const LayerEncodingRcd& rcd);
26 
27  private:
30  };
31 
32  ProducerLayerEncoding::ProducerLayerEncoding(const ParameterSet& iConfig) : iConfig_(iConfig) {
33  auto cc = setWhatProduced(this);
34  esGetToken_ = cc.consumes();
35  }
36 
37  unique_ptr<LayerEncoding> ProducerLayerEncoding::produce(const LayerEncodingRcd& rcd) {
38  const DataFormats* dataFormats = &rcd.get(esGetToken_);
39  return make_unique<LayerEncoding>(dataFormats);
40  }
41 
42 } // namespace trackerTFP
43 
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
ESGetToken< DataFormats, DataFormatsRcd > esGetToken_
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
Class to produce KF layer encoding.
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:61
unique_ptr< LayerEncoding > produce(const LayerEncodingRcd &rcd)
HLT enums.
Class to calculate and provide dataformats used by Track Trigger emulator.
Definition: DataFormats.h:216
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const