![]() |
![]() |
Abstract base class for FWLite and EDM friendly analyzers. More...
#include <PhysicsTools/UtilAlgos/interface/BasicFilter.h>
Abstract base class for FWLite and EDM friendly analyzers.
Abstract base class for FWLite and EDM friendly analyzers. This class provides a proper interface needed for the EDFilterWrapper and FWLiteFilterWrapper template classes. Classes of type BasicFilter can be wrapped into an EDFilter as shown in the example below:
include "PhysicsTools/PatExamples/interface/BasicMuonFilter.h" include "PhysicsTools/UtilAlgos/interface/EDFilterWrapper.h"
typedef edm::FilterWrapper<BasicMuonFilter> WrappedEDFilter;
include "FWCore/Framework/interface/MakerMacros.h" DEFINE_FWK_MODULE(WrappedEDFilter);
Alternatively they can be wrapped into a FWLiteFilter which provides basic functionality of reading configuration files and event looping as shown in the example below:
include "PhysicsTools/PatExamples/interface/BasicMuonFilter.h" include "PhysicsTools/UtilAlgos/interface/FWLiteFilterWrapper.h"
typedef fwlite::FilterWrapper<BasicMuonFilter> WrappedFWLiteFilter; ...
In both examples BasicMuonFilter is derived from the BasicFilter class. For more information have a look into the class description of the corresponding wrapper classes.