Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
PhysicsTools
UtilAlgos
plugins
PrimaryVertexFilter.cc
Go to the documentation of this file.
1
#include "
FWCore/Framework/interface/MakerMacros.h
"
2
3
/*
4
This is an example of using the primary vertex selector PVSelector from the PhysiocsTools/SelectorUtils
5
to wrap it into an EDFilter. The resulting module is an event EDFilter, filtering events based on the
6
PV selection.
7
*/
8
#include "
PhysicsTools/SelectorUtils/interface/PVSelector.h
"
9
#include "
PhysicsTools/UtilAlgos/interface/EDFilterWrapper.h
"
10
typedef
edm::FilterWrapper<PVSelector>
PrimaryVertexFilter
;
11
DEFINE_FWK_MODULE
(
PrimaryVertexFilter
);
12
13
/*
14
This is an example of using the primary vertex object selector PVObjectSelector from the PhysicsTools/
15
SelectorUtils to wrap it into an EDProducer. The resulting module is an EDProducer filtering objects
16
based on the PV selection. A new collection will be produced containing only the selectr objects.
17
*/
18
#include "
PhysicsTools/SelectorUtils/interface/PVObjectSelector.h
"
19
#include "
PhysicsTools/UtilAlgos/interface/EDFilterObjectWrapper.h
"
20
typedef
edm::FilterObjectWrapper<PVObjectSelector, std::vector<reco::Vertex>
>
PrimaryVertexObjectFilter
;
21
DEFINE_FWK_MODULE
(
PrimaryVertexObjectFilter
);
PVObjectSelector.h
EDFilterObjectWrapper.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
MakerMacros.h
EDFilterWrapper.h
PVSelector.h
PrimaryVertexObjectFilter
edm::FilterObjectWrapper< PVObjectSelector, std::vector< reco::Vertex > > PrimaryVertexObjectFilter
Definition:
PrimaryVertexFilter.cc:20
PrimaryVertexFilter
edm::FilterWrapper< PVSelector > PrimaryVertexFilter
Definition:
PrimaryVertexFilter.cc:10
edm::FilterObjectWrapper
Definition:
EDFilterObjectWrapper.h:49
edm::FilterWrapper
Definition:
EDFilterWrapper.h:46
Generated for CMSSW Reference Manual by
1.8.5