CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HGCalConcentratorProducer Class Reference
Inheritance diagram for HGCalConcentratorProducer:
edm::stream::EDProducer<>

Public Member Functions

void beginRun (const edm::Run &, const edm::EventSetup &) override
 
 HGCalConcentratorProducer (const edm::ParameterSet &)
 
void produce (edm::Event &, const edm::EventSetup &) override
 
 ~HGCalConcentratorProducer () override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Private Attributes

std::unique_ptr< HGCalConcentratorProcessorBaseconcentratorProcess_
 
edm::EDGetToken input_cell_
 
edm::EDGetToken input_sums_
 
edm::ESHandle< HGCalTriggerGeometryBasetriggerGeometry_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 

Detailed Description

Definition at line 19 of file HGCalConcentratorProducer.cc.

Constructor & Destructor Documentation

◆ HGCalConcentratorProducer()

HGCalConcentratorProducer::HGCalConcentratorProducer ( const edm::ParameterSet conf)

Definition at line 37 of file HGCalConcentratorProducer.cc.

38  : input_cell_(consumes<l1t::HGCalTriggerCellBxCollection>(conf.getParameter<edm::InputTag>("InputTriggerCells"))),
39  input_sums_(consumes<l1t::HGCalTriggerSumsBxCollection>(conf.getParameter<edm::InputTag>("InputTriggerSums"))) {
40  //setup Concentrator parameters
41  const edm::ParameterSet& concParamConfig = conf.getParameterSet("ProcessorParameters");
42  const std::string& concProcessorName = concParamConfig.getParameter<std::string>("ProcessorName");
43  concentratorProcess_ = std::unique_ptr<HGCalConcentratorProcessorBase>{
44  HGCalConcentratorFactory::get()->create(concProcessorName, concParamConfig)};
45 
46  produces<l1t::HGCalTriggerCellBxCollection>(concentratorProcess_->name());
47  produces<l1t::HGCalTriggerSumsBxCollection>(concentratorProcess_->name());
48 }

References concentratorProcess_, get, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), and AlCaHLTBitMon_QueryRunRegistry::string.

◆ ~HGCalConcentratorProducer()

HGCalConcentratorProducer::~HGCalConcentratorProducer ( )
inlineoverride

Definition at line 22 of file HGCalConcentratorProducer.cc.

22 {}

Member Function Documentation

◆ beginRun()

void HGCalConcentratorProducer::beginRun ( const edm::Run ,
const edm::EventSetup es 
)
override

◆ produce()

void HGCalConcentratorProducer::produce ( edm::Event e,
const edm::EventSetup es 
)
override

Definition at line 56 of file HGCalConcentratorProducer.cc.

56  {
57  // Output collections
58  std::pair<l1t::HGCalTriggerCellBxCollection, l1t::HGCalTriggerSumsBxCollection> cc_output;
59 
60  // Input collections
62 
63  e.getByToken(input_cell_, trigCellBxColl);
64  concentratorProcess_->run(trigCellBxColl, cc_output, es);
65  // Put in the event
66  e.put(std::make_unique<l1t::HGCalTriggerCellBxCollection>(std::move(cc_output.first)), concentratorProcess_->name());
67  e.put(std::make_unique<l1t::HGCalTriggerSumsBxCollection>(std::move(cc_output.second)), concentratorProcess_->name());
68 }

References concentratorProcess_, MillePedeFileConverter_cfg::e, input_cell_, and eostools::move().

Member Data Documentation

◆ concentratorProcess_

std::unique_ptr<HGCalConcentratorProcessorBase> HGCalConcentratorProducer::concentratorProcess_
private

Definition at line 32 of file HGCalConcentratorProducer.cc.

Referenced by beginRun(), HGCalConcentratorProducer(), and produce().

◆ input_cell_

edm::EDGetToken HGCalConcentratorProducer::input_cell_
private

Definition at line 29 of file HGCalConcentratorProducer.cc.

Referenced by produce().

◆ input_sums_

edm::EDGetToken HGCalConcentratorProducer::input_sums_
private

Definition at line 29 of file HGCalConcentratorProducer.cc.

◆ triggerGeometry_

edm::ESHandle<HGCalTriggerGeometryBase> HGCalConcentratorProducer::triggerGeometry_
private

Definition at line 30 of file HGCalConcentratorProducer.cc.

Referenced by beginRun().

edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
HGCalConcentratorProducer::input_cell_
edm::EDGetToken input_cell_
Definition: HGCalConcentratorProducer.cc:29
edm::Handle
Definition: AssociativeIterator.h:50
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:36
HGCalConcentratorProducer::triggerGeometry_
edm::ESHandle< HGCalTriggerGeometryBase > triggerGeometry_
Definition: HGCalConcentratorProducer.cc:30
get
#define get
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
eostools.move
def move(src, dest)
Definition: eostools.py:511
HGCalConcentratorProducer::concentratorProcess_
std::unique_ptr< HGCalConcentratorProcessorBase > concentratorProcess_
Definition: HGCalConcentratorProducer.cc:32
edm::InputTag
Definition: InputTag.h:15
edm::ParameterSet::getParameterSet
ParameterSet const & getParameterSet(std::string const &) const
Definition: ParameterSet.cc:2121
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
HGCalConcentratorProducer::input_sums_
edm::EDGetToken input_sums_
Definition: HGCalConcentratorProducer.cc:29