Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
TauAnalysis
MCEmbeddingTools
plugins
CandViewCountEventSelFlagProducer.cc
Go to the documentation of this file.
1
#include "
TauAnalysis/MCEmbeddingTools/plugins/CandViewCountEventSelFlagProducer.h
"
2
3
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
4
5
CandViewCountEventSelFlagProducer::CandViewCountEventSelFlagProducer
(
const
edm::ParameterSet
&
cfg
)
6
: eventSelector_(cfg, consumesCollector())
7
{
8
produces<bool>();
9
}
10
11
void
CandViewCountEventSelFlagProducer::produce
(
edm::Event
& evt,
const
edm::EventSetup
& es)
12
{
13
std::auto_ptr<bool> boolPtr(
new
bool
(
eventSelector_
(evt, es)));
14
evt.
put
(boolPtr);
15
}
16
17
#include "
FWCore/Framework/interface/MakerMacros.h
"
18
19
DEFINE_FWK_MODULE
(
CandViewCountEventSelFlagProducer
);
MessageLogger.h
looper.cfg
tuple cfg
Definition:
looper.py:293
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
CandViewCountEventSelFlagProducer::produce
void produce(edm::Event &, const edm::EventSetup &)
Definition:
CandViewCountEventSelFlagProducer.cc:11
MakerMacros.h
CandViewCountEventSelFlagProducer::eventSelector_
ObjectCountEventSelector< CandidateView, AnySelector, MinNumberSelector > eventSelector_
Definition:
CandViewCountEventSelFlagProducer.h:37
edm::Event::put
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition:
Event.h:121
CandViewCountEventSelFlagProducer::CandViewCountEventSelFlagProducer
CandViewCountEventSelFlagProducer(const edm::ParameterSet &)
Definition:
CandViewCountEventSelFlagProducer.cc:5
edm::EventSetup
Definition:
EventSetup.h:45
CandViewCountEventSelFlagProducer
Definition:
CandViewCountEventSelFlagProducer.h:27
CandViewCountEventSelFlagProducer.h
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Event
Definition:
Event.h:65
Generated for CMSSW Reference Manual by
1.8.5