CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
TrackingRegionEDProducerT< T_TrackingRegionProducer > Class Template Reference

#include <TrackingRegionEDProducerT.h>

Inheritance diagram for TrackingRegionEDProducerT< T_TrackingRegionProducer >:
edm::stream::EDProducer<>

Public Types

using ProductType = edm::OwnVector< TrackingRegion >
 
- 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
 

Public Member Functions

void produce (edm::Event &iEvent, const edm::EventSetup &iSetup) override
 
 TrackingRegionEDProducerT (const edm::ParameterSet &iConfig)
 
 ~TrackingRegionEDProducerT () override=default
 
- 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

T_TrackingRegionProducer regionProducer_
 

Detailed Description

template<typename T_TrackingRegionProducer>
class TrackingRegionEDProducerT< T_TrackingRegionProducer >

Definition at line 12 of file TrackingRegionEDProducerT.h.

Member Typedef Documentation

template<typename T_TrackingRegionProducer >
using TrackingRegionEDProducerT< T_TrackingRegionProducer >::ProductType = edm::OwnVector<TrackingRegion>

Definition at line 17 of file TrackingRegionEDProducerT.h.

Constructor & Destructor Documentation

template<typename T_TrackingRegionProducer >
TrackingRegionEDProducerT< T_TrackingRegionProducer >::TrackingRegionEDProducerT ( const edm::ParameterSet iConfig)
inline

Definition at line 19 of file TrackingRegionEDProducerT.h.

19  : regionProducer_(iConfig, consumesCollector()) {
20  produces<ProductType>();
21  }
T_TrackingRegionProducer regionProducer_
template<typename T_TrackingRegionProducer >
TrackingRegionEDProducerT< T_TrackingRegionProducer >::~TrackingRegionEDProducerT ( )
overridedefault

Member Function Documentation

template<typename T_TrackingRegionProducer >
static void TrackingRegionEDProducerT< T_TrackingRegionProducer >::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
inlinestatic

Definition at line 25 of file TrackingRegionEDProducerT.h.

References fillDescriptions().

25  {
27  }
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
template<typename T_TrackingRegionProducer >
void TrackingRegionEDProducerT< T_TrackingRegionProducer >::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
inlineoverride

Definition at line 29 of file TrackingRegionEDProducerT.h.

References eostools::move(), edm::Event::put(), TrackingRegionEDProducerT< T_TrackingRegionProducer >::regionProducer_, and runTheMatrix::ret.

29  {
30  auto regions = regionProducer_.regions(iEvent, iSetup);
31  auto ret = std::make_unique<ProductType>();
32  ret->reserve(regions.size());
33  for (auto& regionPtr : regions) {
34  ret->push_back(regionPtr.release());
35  }
36 
37  iEvent.put(std::move(ret));
38  }
T_TrackingRegionProducer regionProducer_
tuple ret
prodAgent to be discontinued
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:133
def move
Definition: eostools.py:511

Member Data Documentation

template<typename T_TrackingRegionProducer >
T_TrackingRegionProducer TrackingRegionEDProducerT< T_TrackingRegionProducer >::regionProducer_
private