CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
ObjectSelectorProducer< Selector, OutputCollection, PostProcessor, StoreManager, Base, Init > Class Template Reference

#include <ObjectSelectorProducer.h>

Inheritance diagram for ObjectSelectorProducer< Selector, OutputCollection, PostProcessor, StoreManager, Base, Init >:

Public Member Functions

 ObjectSelectorProducer (const edm::ParameterSet &cfg)
 constructor More...
 
 ~ObjectSelectorProducer () override
 destructor More...
 

Private Member Functions

void produce (edm::Event &evt, const edm::EventSetup &es) override
 process one event More...
 

Private Attributes

PostProcessor postProcessor_
 post processor More...
 
Selector selector_
 Object collection selector. More...
 
edm::EDGetTokenT< typename Selector::collection > srcToken_
 source collection label More...
 

Detailed Description

template<typename Selector, typename OutputCollection, typename PostProcessor, typename StoreManager, typename Base, typename Init>
class ObjectSelectorProducer< Selector, OutputCollection, PostProcessor, StoreManager, Base, Init >

This class template is like ObjectSelector, but it is an EDProducer instead of EDFilter. Use case is that when the filter decisions are ignored (cms.ignore in configuration or EDFilter returns always true), EDProducers are better for the unscheduled mode than EDFilters.

Definition at line 30 of file ObjectSelectorProducer.h.

Constructor & Destructor Documentation

◆ ObjectSelectorProducer()

template<typename Selector , typename OutputCollection , typename PostProcessor , typename StoreManager , typename Base , typename Init >
ObjectSelectorProducer< Selector, OutputCollection, PostProcessor, StoreManager, Base, Init >::ObjectSelectorProducer ( const edm::ParameterSet cfg)
inlineexplicit

constructor

Definition at line 33 of file ObjectSelectorProducer.h.

34  : Base(cfg),
35  srcToken_(
36  this->template consumes<typename Selector::collection>(cfg.template getParameter<edm::InputTag>("src"))),
37  selector_(cfg, this->consumesCollector()),
38  postProcessor_(cfg, this->consumesCollector()) {
39  postProcessor_.init(*this);
40  }

References ObjectSelectorProducer< Selector, OutputCollection, PostProcessor, StoreManager, Base, Init >::postProcessor_.

◆ ~ObjectSelectorProducer()

template<typename Selector , typename OutputCollection , typename PostProcessor , typename StoreManager , typename Base , typename Init >
ObjectSelectorProducer< Selector, OutputCollection, PostProcessor, StoreManager, Base, Init >::~ObjectSelectorProducer ( )
inlineoverride

destructor

Definition at line 42 of file ObjectSelectorProducer.h.

42 {}

Member Function Documentation

◆ produce()

template<typename Selector , typename OutputCollection , typename PostProcessor , typename StoreManager , typename Base , typename Init >
void ObjectSelectorProducer< Selector, OutputCollection, PostProcessor, StoreManager, Base, Init >::produce ( edm::Event evt,
const edm::EventSetup es 
)
inlineoverrideprivate

Member Data Documentation

◆ postProcessor_

template<typename Selector , typename OutputCollection , typename PostProcessor , typename StoreManager , typename Base , typename Init >
PostProcessor ObjectSelectorProducer< Selector, OutputCollection, PostProcessor, StoreManager, Base, Init >::postProcessor_
private

◆ selector_

template<typename Selector , typename OutputCollection , typename PostProcessor , typename StoreManager , typename Base , typename Init >
Selector ObjectSelectorProducer< Selector, OutputCollection, PostProcessor, StoreManager, Base, Init >::selector_
private

◆ srcToken_

template<typename Selector , typename OutputCollection , typename PostProcessor , typename StoreManager , typename Base , typename Init >
edm::EDGetTokenT<typename Selector::collection> ObjectSelectorProducer< Selector, OutputCollection, PostProcessor, StoreManager, Base, Init >::srcToken_
private
init
int init
Definition: HydjetWrapper.h:64
ObjectSelectorProducer::selector_
Selector selector_
Object collection selector.
Definition: ObjectSelectorProducer.h:59
edm::Handle
Definition: AssociativeIterator.h:50
CustomConfigs.Base
def Base(process)
Definition: CustomConfigs.py:17
source
static const std::string source
Definition: EdmProvDump.cc:47
edm::Event::getByToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:531
ObjectSelectorProducer::postProcessor_
PostProcessor postProcessor_
post processor
Definition: ObjectSelectorProducer.h:61
filtered
static const TGPicture * filtered(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:100
looper.cfg
cfg
Definition: looper.py:297
ObjectSelectorProducer::srcToken_
edm::EDGetTokenT< typename Selector::collection > srcToken_
source collection label
Definition: ObjectSelectorProducer.h:57
edm::OrphanHandle
Definition: EDProductfwd.h:39