CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EDFilterWrapper Class Reference

Wrapper class for a class of type BasicFilter to "convert" it into a full EDFilter. More...

#include "PhysicsTools/UtilAlgos/interface/EDFilterWrapper.h"

Detailed Description

Wrapper class for a class of type BasicFilter to "convert" it into a full EDFilter.

This template class is a wrapper around classes of type BasicFilter as defined in the BasicFilter.h file of this package. From this class the wrapper expects the following member functions:

the function is called within the wrapper. The wrapper translates the common class into a basic EDFilter as shown below:

include "PhysicsTools/UtilAlgos/interface/EDFilterWrapper.h" include "PhysicsTools/SelectorUtils/interface/PVSelector.h"

typedef edm::FilterWrapper<PVSelector> PrimaryVertexFilter;

include "FWCore/Framework/interface/MakerMacros.h" DEFINE_FWK_MODULE(PrimaryVertexFilter);

You can find this example in the plugins directory of this package. With this wrapper class we have the use case in mind that you keep classes, which easily can be used both within the full framework and within FWLite.

NOTE: in the current implementation this wrapper class does not support use of the EventSetup. If you want to make use of this feature we recommend you to start from an EDFilter from the very beginning and just to stay within the full framework.