Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CommonTools
UtilAlgos
interface
EventSelectorAdapter.h
Go to the documentation of this file.
1
#ifndef CommonTools_UtilAlgos_EventSelectorAdapter_h
2
#define CommonTools_UtilAlgos_EventSelectorAdapter_h
3
16
#include "
FWCore/Framework/interface/EDFilter.h
"
17
#include "
FWCore/Framework/interface/Event.h
"
18
#include "
FWCore/Framework/interface/EventSetup.h
"
19
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
20
21
template
<
typename
T>
22
class
EventSelectorAdapter
:
public
edm::EDFilter
23
{
24
public
:
25
// constructor
26
explicit
EventSelectorAdapter
(
const
edm::ParameterSet
& cfg) :
27
eventSelector_
( cfg ) {
28
}
29
30
// destructor
31
virtual
~EventSelectorAdapter
() {}
32
33
private
:
34
bool
filter
(
edm::Event
& evt,
const
edm::EventSetup
& es)
override
{
return
eventSelector_
(evt, es); }
35
36
T
eventSelector_
;
37
};
38
39
#endif
40
Event.h
EventSetup.h
EventSelectorAdapter::eventSelector_
T eventSelector_
Definition:
EventSelectorAdapter.h:36
EventSelectorAdapter
Definition:
EventSelectorAdapter.h:22
EventSelectorAdapter::filter
bool filter(edm::Event &evt, const edm::EventSetup &es) override
Definition:
EventSelectorAdapter.h:34
ParameterSet.h
EDFilter.h
edm::EventSetup
Definition:
EventSetup.h:44
EventSelectorAdapter::~EventSelectorAdapter
virtual ~EventSelectorAdapter()
Definition:
EventSelectorAdapter.h:31
edm::EDFilter
Definition:
EDFilter.h:25
EventSelectorAdapter::EventSelectorAdapter
EventSelectorAdapter(const edm::ParameterSet &cfg)
Definition:
EventSelectorAdapter.h:26
edm::ParameterSet
Definition:
ParameterSet.h:35
edm::Event
Definition:
Event.h:56
T
long double T
Definition:
Basic3DVectorLD.h:59
Generated for CMSSW Reference Manual by
1.8.5