CMS 3D CMS Logo

HGCalBackendLayer2Producer.cc
Go to the documentation of this file.
3 
6 
11 
14 
16 
17 #include <memory>
18 
20 public:
23 
24  void beginRun(const edm::Run&, const edm::EventSetup&) override;
25  void produce(edm::Event&, const edm::EventSetup&) override;
26 
27 private:
28  // inputs
31 
32  std::unique_ptr<HGCalBackendLayer2ProcessorBase> backendProcess_;
33 };
34 
36 
38  : input_clusters_(consumes<l1t::HGCalClusterBxCollection>(conf.getParameter<edm::InputTag>("InputCluster"))) {
39  //setup Backend parameters
40  const edm::ParameterSet& beParamConfig = conf.getParameterSet("ProcessorParameters");
41  const std::string& beProcessorName = beParamConfig.getParameter<std::string>("ProcessorName");
42  backendProcess_ = std::unique_ptr<HGCalBackendLayer2ProcessorBase>{
43  HGCalBackendLayer2Factory::get()->create(beProcessorName, beParamConfig)};
44 
45  produces<l1t::HGCalMulticlusterBxCollection>(backendProcess_->name());
46 }
47 
51 }
52 
54  // Output collections
55  auto be_multicluster_output = std::make_unique<l1t::HGCalMulticlusterBxCollection>();
56 
57  // Input collections
59 
60  e.getByToken(input_clusters_, trigCluster2DBxColl);
61 
62  backendProcess_->run(trigCluster2DBxColl, *be_multicluster_output, es);
63 
64  e.put(std::move(be_multicluster_output), backendProcess_->name());
65 }
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
edm::Run
Definition: Run.h:45
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
edm
HLT enums.
Definition: AlignableModifier.h:19
HGCalBackendLayer2Producer::triggerGeometry_
edm::ESHandle< HGCalTriggerGeometryBase > triggerGeometry_
Definition: HGCalBackendLayer2Producer.cc:30
EDProducer.h
HGCalTriggerSums.h
edm::Handle
Definition: AssociativeIterator.h:50
MakerMacros.h
HGCalBackendLayer2Producer::input_clusters_
edm::EDGetToken input_clusters_
Definition: HGCalBackendLayer2Producer.cc:29
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
HGCalTriggerGeometryBase.h
edm::ESHandle< HGCalTriggerGeometryBase >
l1t::HGCalClusterBxCollection
BXVector< HGCalCluster > HGCalClusterBxCollection
Definition: HGCalCluster.h:27
CaloGeometryRecord.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
l1t
delete x;
Definition: CaloConfig.h:22
HGCalBackendLayer2Producer::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition: HGCalBackendLayer2Producer.cc:53
HGCDigiCollections.h
edm::stream::EDProducer
Definition: EDProducer.h:38
edm::EventSetup
Definition: EventSetup.h:57
HGCalCluster.h
edm::EDGetToken
Definition: EDGetToken.h:35
get
#define get
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
eostools.move
def move(src, dest)
Definition: eostools.py:511
HGCalBackendLayer2Producer
Definition: HGCalBackendLayer2Producer.cc:19
HGCalBackendLayer2Producer::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &) override
Definition: HGCalBackendLayer2Producer.cc:48
HGCalBackendLayer2Producer::HGCalBackendLayer2Producer
HGCalBackendLayer2Producer(const edm::ParameterSet &)
Definition: HGCalBackendLayer2Producer.cc:37
Frameworkfwd.h
HGCalProcessorBase.h
HGCalBackendLayer2Producer::~HGCalBackendLayer2Producer
~HGCalBackendLayer2Producer() override
Definition: HGCalBackendLayer2Producer.cc:22
HGCalTriggerCell.h
edm::Event
Definition: Event.h:73
HGCalBackendLayer2Producer::backendProcess_
std::unique_ptr< HGCalBackendLayer2ProcessorBase > backendProcess_
Definition: HGCalBackendLayer2Producer.cc:32
edm::ParameterSet::getParameterSet
ParameterSet const & getParameterSet(std::string const &) const
Definition: ParameterSet.cc:2121
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37