CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
edm::FilterWrapper< T > Class Template Reference

#include <EDFilterWrapper.h>

Inheritance diagram for edm::FilterWrapper< T >:
edm::global::EDFilter<> edm::global::EDFilterBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

virtual bool filter (edm::StreamID, edm::Event &event, const edm::EventSetup &eventSetup) const override
 everything which has to be done during the event loop. NOTE: We can't use the eventSetup in FWLite so ignore it More...
 
 FilterWrapper (const edm::ParameterSet &cfg)
 default contructor More...
 
virtual ~FilterWrapper ()
 default destructor More...
 
- Public Member Functions inherited from edm::global::EDFilter<>
 EDFilter ()=default
 
- Public Member Functions inherited from edm::global::EDFilterBase
 EDFilterBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDFilterBase ()
 
- 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< ConsumesInfoconsumesInfo () 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

boost::shared_ptr< Tfilter_
 shared pointer to analysis class of type BasicAnalyzer More...
 

Additional Inherited Members

- Public Types inherited from edm::global::EDFilterBase
typedef EDFilterBase 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::global::EDFilterBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- 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)
 

Detailed Description

template<class T>
class edm::FilterWrapper< T >

Definition at line 46 of file EDFilterWrapper.h.

Constructor & Destructor Documentation

template<class T >
edm::FilterWrapper< T >::FilterWrapper ( const edm::ParameterSet cfg)
inline

default contructor

Definition at line 50 of file EDFilterWrapper.h.

References edm::EDConsumerBase::consumesCollector(), and edm::FilterWrapper< T >::filter_.

50 { filter_ = boost::shared_ptr<T>( new T(cfg, consumesCollector()) ); }
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
boost::shared_ptr< T > filter_
shared pointer to analysis class of type BasicAnalyzer
long double T
template<class T >
virtual edm::FilterWrapper< T >::~FilterWrapper ( )
inlinevirtual

default destructor

Definition at line 52 of file EDFilterWrapper.h.

52 {}

Member Function Documentation

template<class T >
virtual bool edm::FilterWrapper< T >::filter ( edm::StreamID  ,
edm::Event event,
const edm::EventSetup eventSetup 
) const
inlineoverridevirtual

everything which has to be done during the event loop. NOTE: We can't use the eventSetup in FWLite so ignore it

Implements edm::global::EDFilterBase.

Definition at line 54 of file EDFilterWrapper.h.

References event(), and edm::FilterWrapper< T >::filter_.

54  {
55  edm::EventBase & eventBase = dynamic_cast<edm::EventBase &>(event);
56  edm::EventBase const & eventBaseConst = const_cast<edm::EventBase const &>(eventBase);
57  return (*filter_)(eventBaseConst);
58  }
boost::shared_ptr< T > filter_
shared pointer to analysis class of type BasicAnalyzer
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past

Member Data Documentation

template<class T >
boost::shared_ptr<T> edm::FilterWrapper< T >::filter_
protected

shared pointer to analysis class of type BasicAnalyzer

Definition at line 62 of file EDFilterWrapper.h.

Referenced by edm::FilterWrapper< T >::filter(), and edm::FilterWrapper< T >::FilterWrapper().