CMS 3D CMS Logo

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

Public Member Functions

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

Private Attributes

edm::EDGetToken inputnose_
 
edm::ESHandle< HGCalTriggerGeometryBasetriggerGeometry_
 
std::unique_ptr< HGCalVFEProcessorBasevfeProcess_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

Definition at line 18 of file HFNoseVFEProducer.cc.

Constructor & Destructor Documentation

◆ HFNoseVFEProducer()

HFNoseVFEProducer::HFNoseVFEProducer ( const edm::ParameterSet conf)

Definition at line 36 of file HFNoseVFEProducer.cc.

37  : inputnose_(consumes<HGCalDigiCollection>(conf.getParameter<edm::InputTag>("noseDigis"))) {
38  // setup VFE parameters
39  const edm::ParameterSet& vfeParamConfig = conf.getParameterSet("ProcessorParameters");
40  const std::string& vfeProcessorName = vfeParamConfig.getParameter<std::string>("ProcessorName");
41  vfeProcess_ = std::unique_ptr<HGCalVFEProcessorBase>{
42  HGCalVFEProcessorBaseFactory::get()->create(vfeProcessorName, vfeParamConfig)};
43 
44  produces<l1t::HGCalTriggerCellBxCollection>(vfeProcess_->name());
45 }

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

◆ ~HFNoseVFEProducer()

HFNoseVFEProducer::~HFNoseVFEProducer ( )
inlineoverride

Definition at line 21 of file HFNoseVFEProducer.cc.

21 {}

Member Function Documentation

◆ beginRun()

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

◆ produce()

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

Definition at line 52 of file HFNoseVFEProducer.cc.

52  {
53  // Output collection
54  auto vfe_trigcell_output = std::make_unique<l1t::HGCalTriggerCellBxCollection>();
55 
57  e.getByToken(inputnose_, nose_digis_h);
58 
59  if (nose_digis_h.isValid()) {
60  const HGCalDigiCollection& nose_digis = *nose_digis_h;
61  vfeProcess_->run(nose_digis, *vfe_trigcell_output, es);
62  }
63 
64  // Put in the event
65  e.put(std::move(vfe_trigcell_output), vfeProcess_->name());
66 }

References MillePedeFileConverter_cfg::e, inputnose_, edm::HandleBase::isValid(), eostools::move(), and vfeProcess_.

Member Data Documentation

◆ inputnose_

edm::EDGetToken HFNoseVFEProducer::inputnose_
private

Definition at line 28 of file HFNoseVFEProducer.cc.

Referenced by produce().

◆ triggerGeometry_

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

Definition at line 29 of file HFNoseVFEProducer.cc.

Referenced by beginRun().

◆ vfeProcess_

std::unique_ptr<HGCalVFEProcessorBase> HFNoseVFEProducer::vfeProcess_
private

Definition at line 31 of file HFNoseVFEProducer.cc.

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

edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
edm::SortedCollection
Definition: SortedCollection.h:49
edm::Handle
Definition: AssociativeIterator.h:50
edm::EventSetup::get
T get() const
Definition: EventSetup.h:87
edm::ParameterSet
Definition: ParameterSet.h:47
get
#define get
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
eostools.move
def move(src, dest)
Definition: eostools.py:511
HFNoseVFEProducer::inputnose_
edm::EDGetToken inputnose_
Definition: HFNoseVFEProducer.cc:28
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
HFNoseVFEProducer::triggerGeometry_
edm::ESHandle< HGCalTriggerGeometryBase > triggerGeometry_
Definition: HFNoseVFEProducer.cc:29
HFNoseVFEProducer::vfeProcess_
std::unique_ptr< HGCalVFEProcessorBase > vfeProcess_
Definition: HFNoseVFEProducer.cc:31
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
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