Selects a list of FwdPtr's to a product T (templated) that satisfy a method S(T) (templated). Can also handle input as View<T>. Can also have a factory class to create new instances of clones if desired. More...
#include "CommonTools/UtilAlgos/interface/FwdPtrCollectionFilter.h"
Public Member Functions | |
virtual bool | filter (edm::Event &iEvent, const edm::EventSetup &iSetup) |
FwdPtrCollectionFilter () | |
FwdPtrCollectionFilter (edm::ParameterSet const ¶ms) | |
~FwdPtrCollectionFilter () | |
Public Member Functions inherited from edm::EDFilter | |
EDFilter () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDFilter () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Protected Attributes | |
bool | filter_ |
bool | makeClones_ |
S | selector_ |
edm::EDGetTokenT< std::vector < edm::FwdPtr< T > > > | srcToken_ |
edm::EDGetTokenT< edm::View< T > > | srcViewToken_ |
Additional Inherited Members | |
Public Types inherited from edm::EDFilter | |
typedef EDFilter | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::EDFilter | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Selects a list of FwdPtr's to a product T (templated) that satisfy a method S(T) (templated). Can also handle input as View<T>. Can also have a factory class to create new instances of clones if desired.
Definition at line 27 of file FwdPtrCollectionFilter.h.
|
inlineexplicit |
Definition at line 29 of file FwdPtrCollectionFilter.h.
|
inlineexplicit |
Definition at line 31 of file FwdPtrCollectionFilter.h.
References edm::ParameterSet::exists(), edm::FwdPtrCollectionFilter< T, S, H >::filter_, edm::ParameterSet::getParameter(), and edm::FwdPtrCollectionFilter< T, S, H >::makeClones_.
|
inline |
Definition at line 50 of file FwdPtrCollectionFilter.h.
|
inlinevirtual |
Implements edm::EDFilter.
Definition at line 52 of file FwdPtrCollectionFilter.h.
References edm::FwdPtrCollectionFilter< T, S, H >::filter_, edm::Event::getByToken(), class-composition::H, i, edm::FwdPtrCollectionFilter< T, S, H >::makeClones_, edm::Event::put(), edm::FwdPtrCollectionFilter< T, S, H >::selector_, edm::FwdPtrCollectionFilter< T, S, H >::srcToken_, and edm::FwdPtrCollectionFilter< T, S, H >::srcViewToken_.
Referenced by Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::filter(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::setDataAccessor(), and Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::switchCenterView().
|
protected |
Definition at line 110 of file FwdPtrCollectionFilter.h.
Referenced by edm::FwdPtrCollectionFilter< T, S, H >::filter(), and edm::FwdPtrCollectionFilter< T, S, H >::FwdPtrCollectionFilter().
|
protected |
Definition at line 111 of file FwdPtrCollectionFilter.h.
Referenced by edm::FwdPtrCollectionFilter< T, S, H >::filter(), and edm::FwdPtrCollectionFilter< T, S, H >::FwdPtrCollectionFilter().
|
protected |
Definition at line 112 of file FwdPtrCollectionFilter.h.
Referenced by edm::FwdPtrCollectionFilter< T, S, H >::filter().
|
protected |
Definition at line 108 of file FwdPtrCollectionFilter.h.
Referenced by edm::FwdPtrCollectionFilter< T, S, H >::filter().
|
protected |
Definition at line 109 of file FwdPtrCollectionFilter.h.
Referenced by edm::FwdPtrCollectionFilter< T, S, H >::filter().