CMS 3D CMS Logo

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<>
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
 

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
 
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

T_TrackingRegionProducer regionProducer_
 

Detailed Description

template<typename T_TrackingRegionProducer>
class TrackingRegionEDProducerT< T_TrackingRegionProducer >

Definition at line 12 of file TrackingRegionEDProducerT.h.

Member Typedef Documentation

◆ ProductType

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

Definition at line 17 of file TrackingRegionEDProducerT.h.

Constructor & Destructor Documentation

◆ TrackingRegionEDProducerT()

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  }

◆ ~TrackingRegionEDProducerT()

template<typename T_TrackingRegionProducer >
TrackingRegionEDProducerT< T_TrackingRegionProducer >::~TrackingRegionEDProducerT ( )
overridedefault

Member Function Documentation

◆ fillDescriptions()

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

Definition at line 25 of file TrackingRegionEDProducerT.h.

25  {
27  }

References fillDescriptions().

◆ produce()

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.

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  }

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

Member Data Documentation

◆ regionProducer_

template<typename T_TrackingRegionProducer >
T_TrackingRegionProducer TrackingRegionEDProducerT< T_TrackingRegionProducer >::regionProducer_
private
runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:355
fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
iEvent
int iEvent
Definition: GenABIO.cc:224
eostools.move
def move(src, dest)
Definition: eostools.py:511
AlignmentPI::regions
regions
Definition: AlignmentPayloadInspectorHelper.h:76
TrackingRegionEDProducerT::regionProducer_
T_TrackingRegionProducer regionProducer_
Definition: TrackingRegionEDProducerT.h:41