Main Page
Namespaces
Classes
Package Documentation
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
~EventSelectorAdapter
()
override
{}
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
EventSelectorAdapter::~EventSelectorAdapter
~EventSelectorAdapter() override
Definition:
EventSelectorAdapter.h:31
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:44
looper.cfg
cfg
Definition:
looper.py:293
EventSelectorAdapter::EventSelectorAdapter
EventSelectorAdapter(const edm::ParameterSet &cfg)
Definition:
EventSelectorAdapter.h:26
edm::global::EDFilter
Definition:
EDFilter.h:32
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Event
Definition:
Event.h:69
T
long double T
Definition:
Basic3DVectorLD.h:57
EventSelectorAdapter::filter
bool filter(edm::StreamID, edm::Event &evt, const edm::EventSetup &es) const override
Definition:
EventSelectorAdapter.h:34
Generated for CMSSW Reference Manual by
1.8.11