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

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

Constructor & Destructor Documentation

◆ TICLSeedingRegionProducer()

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

Definition at line 41 of file TICLSeedingRegionProducer.cc.

41  {
42  auto sumes = consumesCollector();
43  auto seedingPSet = ps.getParameter<edm::ParameterSet>("seedingPSet");
44  auto algoType = seedingPSet.getParameter<std::string>("type");
45  myAlgo_ = SeedingRegionAlgoFactory::get()->create(algoType, seedingPSet, sumes);
46  produces<std::vector<TICLSeedingRegion>>();
47 }

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

◆ ~TICLSeedingRegionProducer()

TICLSeedingRegionProducer::~TICLSeedingRegionProducer ( )
inlineoverride

Definition at line 28 of file TICLSeedingRegionProducer.cc.

28 {}

Member Function Documentation

◆ beginRun()

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

Definition at line 58 of file TICLSeedingRegionProducer.cc.

58 { myAlgo_->initialize(es); }

◆ fillDescriptions()

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

Definition at line 49 of file TICLSeedingRegionProducer.cc.

49  {
51 
52  edm::ParameterSetDescription seedingDesc;
53  seedingDesc.addNode(edm::PluginDescription<SeedingRegionAlgoFactory>("type", "SeedingRegionGlobal", true));
54  desc.add<edm::ParameterSetDescription>("seedingPSet", seedingDesc);
55  descriptions.add("ticlSeedingRegionProducer", desc);
56 }

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

◆ produce()

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

Definition at line 60 of file TICLSeedingRegionProducer.cc.

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

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

Member Data Documentation

◆ myAlgo_

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

Definition at line 36 of file TICLSeedingRegionProducer.cc.

edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
edm::PluginDescription
Definition: PluginDescription.h:98
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
ticlSeedingGlobal_cfi.seedingPSet
seedingPSet
Definition: ticlSeedingGlobal_cfi.py:5
TICLSeedingRegionProducer::myAlgo_
std::unique_ptr< SeedingRegionAlgoBase > myAlgo_
Definition: TICLSeedingRegionProducer.cc:36
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:36
edm::Event::put
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:132
edm::ParameterSetDescription::addNode
ParameterDescriptionNode * addNode(ParameterDescriptionNode const &node)
Definition: ParameterSetDescription.cc:41
get
#define get
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
eostools.move
def move(src, dest)
Definition: eostools.py:511
mps_fire.result
result
Definition: mps_fire.py:303