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

Private Attributes

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

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 HFNoseVFEProducer.cc.

Constructor & Destructor Documentation

◆ HFNoseVFEProducer()

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

Definition at line 37 of file HFNoseVFEProducer.cc.

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

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

◆ ~HFNoseVFEProducer()

HFNoseVFEProducer::~HFNoseVFEProducer ( )
inlineoverride

Definition at line 22 of file HFNoseVFEProducer.cc.

22 {}

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 54 of file HFNoseVFEProducer.cc.

54  {
55  // Output collections
56  auto vfe_trigcell_output = std::make_unique<l1t::HGCalTriggerCellBxCollection>();
57  auto vfe_trigsums_output = std::make_unique<l1t::HGCalTriggerSumsBxCollection>();
58 
60  e.getByToken(inputnose_, nose_digis_h);
61 
62  if (nose_digis_h.isValid()) {
63  const HGCalDigiCollection& nose_digis = *nose_digis_h;
64  vfeProcess_->run(nose_digis, *vfe_trigcell_output, es);
65  }
66 
67  // Put in the event
68  e.put(std::move(vfe_trigcell_output), vfeProcess_->name());
69  // At the moment the HGCalTriggerSumsBxCollection is empty
70  e.put(std::move(vfe_trigsums_output), vfeProcess_->name());
71 }

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

Member Data Documentation

◆ inputnose_

edm::EDGetToken HFNoseVFEProducer::inputnose_
private

Definition at line 29 of file HFNoseVFEProducer.cc.

Referenced by produce().

◆ triggerGeometry_

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

Definition at line 30 of file HFNoseVFEProducer.cc.

Referenced by beginRun().

◆ vfeProcess_

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

Definition at line 32 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:73
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:36
get
#define get
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
eostools.move
def move(src, dest)
Definition: eostools.py:511
HFNoseVFEProducer::inputnose_
edm::EDGetToken inputnose_
Definition: HFNoseVFEProducer.cc:29
HFNoseVFEProducer::triggerGeometry_
edm::ESHandle< HGCalTriggerGeometryBase > triggerGeometry_
Definition: HFNoseVFEProducer.cc:30
HFNoseVFEProducer::vfeProcess_
std::unique_ptr< HGCalVFEProcessorBase > vfeProcess_
Definition: HFNoseVFEProducer.cc:32
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:2121
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37