Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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/global/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::global::EDFilter
<>
23
{
24
public
:
25
// constructor
26
explicit
EventSelectorAdapter
(
const
edm::ParameterSet
&
cfg
) :
27
eventSelector_
( cfg,
consumesCollector
() ) {
28
}
29
30
// destructor
31
virtual
~EventSelectorAdapter
() {}
32
33
private
:
34
bool
filter
(
edm::StreamID
,
edm::Event
& evt,
const
edm::EventSetup
& es)
const override
{
return
eventSelector_
(evt, es); }
35
36
T
eventSelector_
;
37
};
38
39
#endif
40
looper.cfg
tuple cfg
Definition:
looper.py:293
edm::StreamID
Definition:
StreamID.h:30
Event.h
EventSetup.h
EventSelectorAdapter::eventSelector_
T eventSelector_
Definition:
EventSelectorAdapter.h:36
EventSelectorAdapter
Definition:
EventSelectorAdapter.h:22
EDFilter.h
ParameterSet.h
edm::EDConsumerBase::consumesCollector
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
Definition:
EDConsumerBase.cc:72
edm::EventSetup
Definition:
EventSetup.h:45
EventSelectorAdapter::~EventSelectorAdapter
virtual ~EventSelectorAdapter()
Definition:
EventSelectorAdapter.h:31
EventSelectorAdapter::EventSelectorAdapter
EventSelectorAdapter(const edm::ParameterSet &cfg)
Definition:
EventSelectorAdapter.h:26
EventSelectorAdapter::filter
bool filter(edm::StreamID, edm::Event &evt, const edm::EventSetup &es) const override
Definition:
EventSelectorAdapter.h:34
edm::global::EDFilter
Definition:
EDFilter.h:32
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Event
Definition:
Event.h:65
T
long double T
Definition:
Basic3DVectorLD.h:57
Generated for CMSSW Reference Manual by
1.8.5