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 hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Private Attributes

std::unique_ptr< HGCalConcentratorProcessorBaseconcentratorProcess_
 
edm::EDGetToken input_cell_
 
edm::EDGetToken input_sums_
 
edm::ESHandle< HGCalTriggerGeometryBasetriggerGeometry_
 
edm::ESGetToken< HGCalTriggerGeometryBase, CaloGeometryRecordtriggerGeomToken_
 

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 38 of file HGCalConcentratorProducer.cc.

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

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 58 of file HGCalConcentratorProducer.cc.

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

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

Member Data Documentation

◆ concentratorProcess_

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

Definition at line 33 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().

◆ triggerGeomToken_

edm::ESGetToken<HGCalTriggerGeometryBase, CaloGeometryRecord> HGCalConcentratorProducer::triggerGeomToken_
private

Definition at line 31 of file HGCalConcentratorProducer.cc.

Referenced by beginRun().

edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
HGCalConcentratorProducer::input_cell_
edm::EDGetToken input_cell_
Definition: HGCalConcentratorProducer.cc:29
edm::Handle
Definition: AssociativeIterator.h:50
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
HGCalConcentratorProducer::triggerGeometry_
edm::ESHandle< HGCalTriggerGeometryBase > triggerGeometry_
Definition: HGCalConcentratorProducer.cc:30
edm::EventSetup::getHandle
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:155
get
#define get
HGCalConcentratorProducer::triggerGeomToken_
edm::ESGetToken< HGCalTriggerGeometryBase, CaloGeometryRecord > triggerGeomToken_
Definition: HGCalConcentratorProducer.cc:31
eostools.move
def move(src, dest)
Definition: eostools.py:511
HGCalConcentratorProducer::concentratorProcess_
std::unique_ptr< HGCalConcentratorProcessorBase > concentratorProcess_
Definition: HGCalConcentratorProducer.cc:33
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::InputTag
Definition: InputTag.h:15
edm::ParameterSet::getParameterSet
ParameterSet const & getParameterSet(std::string const &) const
Definition: ParameterSet.cc:2128
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
HGCalConcentratorProducer::input_sums_
edm::EDGetToken input_sums_
Definition: HGCalConcentratorProducer.cc:29