CMS 3D CMS Logo

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

Public Member Functions

void beginRun (edm::Run const &iEvent, edm::EventSetup const &es) override
 
void produce (edm::Event &, const edm::EventSetup &) override
 
 TICLSeedingRegionProducer (const edm::ParameterSet &)
 
 ~TICLSeedingRegionProducer () 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
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Attributes

std::unique_ptr< SeedingRegionAlgoBasemyAlgo_
 

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 26 of file TICLSeedingRegionProducer.cc.

Constructor & Destructor Documentation

◆ TICLSeedingRegionProducer()

TICLSeedingRegionProducer::TICLSeedingRegionProducer ( const edm::ParameterSet ps)

Definition at line 42 of file TICLSeedingRegionProducer.cc.

References get, edm::ParameterSet::getParameter(), ticlSeedingGlobal_cfi::seedingPSet, and AlCaHLTBitMon_QueryRunRegistry::string.

42  {
43  auto sumes = consumesCollector();
44  auto seedingPSet = ps.getParameter<edm::ParameterSet>("seedingPSet");
45  auto algoType = seedingPSet.getParameter<std::string>("type");
46  myAlgo_ = SeedingRegionAlgoFactory::get()->create(algoType, seedingPSet, sumes);
47  produces<std::vector<TICLSeedingRegion>>();
48 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::unique_ptr< SeedingRegionAlgoBase > myAlgo_
#define get

◆ ~TICLSeedingRegionProducer()

TICLSeedingRegionProducer::~TICLSeedingRegionProducer ( )
inlineoverride

Definition at line 29 of file TICLSeedingRegionProducer.cc.

29 {}

Member Function Documentation

◆ beginRun()

void TICLSeedingRegionProducer::beginRun ( edm::Run const &  iEvent,
edm::EventSetup const &  es 
)
override

Definition at line 59 of file TICLSeedingRegionProducer.cc.

59 { myAlgo_->initialize(es); }
std::unique_ptr< SeedingRegionAlgoBase > myAlgo_

◆ fillDescriptions()

void TICLSeedingRegionProducer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 50 of file TICLSeedingRegionProducer.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::addNode(), and submitPVResolutionJobs::desc.

50  {
52 
53  edm::ParameterSetDescription seedingDesc;
54  seedingDesc.addNode(edm::PluginDescription<SeedingRegionAlgoFactory>("type", "SeedingRegionGlobal", true));
55  desc.add<edm::ParameterSetDescription>("seedingPSet", seedingDesc);
56  descriptions.add("ticlSeedingRegionProducer", desc);
57 }
ParameterDescriptionNode * addNode(ParameterDescriptionNode const &node)
void add(std::string const &label, ParameterSetDescription const &psetDescription)

◆ produce()

void TICLSeedingRegionProducer::produce ( edm::Event evt,
const edm::EventSetup es 
)
override

Definition at line 61 of file TICLSeedingRegionProducer.cc.

References eostools::move(), edm::Event::put(), and mps_fire::result.

61  {
62  auto result = std::make_unique<std::vector<TICLSeedingRegion>>();
63  myAlgo_->makeRegions(evt, es, *result);
64 
65  evt.put(std::move(result));
66 }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:133
std::unique_ptr< SeedingRegionAlgoBase > myAlgo_
def move(src, dest)
Definition: eostools.py:511

Member Data Documentation

◆ myAlgo_

std::unique_ptr<SeedingRegionAlgoBase> TICLSeedingRegionProducer::myAlgo_
private

Definition at line 37 of file TICLSeedingRegionProducer.cc.