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.

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 }

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

◆ ~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); }

◆ fillDescriptions()

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

Definition at line 50 of file TICLSeedingRegionProducer.cc.

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 }

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

◆ produce()

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

Definition at line 61 of file TICLSeedingRegionProducer.cc.

61  {
62  auto result = std::make_unique<std::vector<TICLSeedingRegion>>();
63  myAlgo_->makeRegions(evt, es, *result);
64 
65  evt.put(std::move(result));
66 }

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

Member Data Documentation

◆ myAlgo_

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

Definition at line 37 of file TICLSeedingRegionProducer.cc.

edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
edm::PluginDescription
Definition: PluginDescription.h:98
TICLSeedingRegions_cff.seedingPSet
seedingPSet
Definition: TICLSeedingRegions_cff.py:8
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
TICLSeedingRegionProducer::myAlgo_
std::unique_ptr< SeedingRegionAlgoBase > myAlgo_
Definition: TICLSeedingRegionProducer.cc:37
edm::ParameterSet
Definition: ParameterSet.h:47
edm::Event::put
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:133
edm::ParameterSetDescription::addNode
ParameterDescriptionNode * addNode(ParameterDescriptionNode const &node)
Definition: ParameterSetDescription.cc:41
get
#define get
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
eostools.move
def move(src, dest)
Definition: eostools.py:511
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
mps_fire.result
result
Definition: mps_fire.py:311