src
FWCore
Integration
plugins
ProdigalAnalyzer.cc
Go to the documentation of this file.
1
#include <cassert>
2
3
#include "
FWCore/Framework/interface/Event.h
"
4
#include "
DataFormats/Common/interface/Handle.h
"
5
#include "
FWCore/Framework/interface/MakerMacros.h
"
6
#include "
ProdigalAnalyzer.h
"
7
#include "DataFormats/TestObjects/interface/ToyProducts.h"
8
9
namespace
edmtest
{
10
ProdigalAnalyzer::ProdigalAnalyzer
(
edm::ParameterSet
const
&) { consumes<Prodigal>(
edm::InputTag
{
"maker"
}); }
11
12
void
ProdigalAnalyzer::analyze
(
edm::StreamID
,
edm::Event
const
&
e
,
edm::EventSetup
const
&)
const
{
13
edm::Handle<Prodigal>
h
;
14
assert
(
e
.getByLabel(
"maker"
,
h
));
15
assert
(
h
.provenance()->productProvenance()->parentage().parents().empty());
16
}
17
18
}
// namespace edmtest
19
using
edmtest::ProdigalAnalyzer
;
20
DEFINE_FWK_MODULE
(
ProdigalAnalyzer
);
edm::StreamID
Definition:
StreamID.h:30
Event.h
edm::Handle
Definition:
AssociativeIterator.h:50
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
ProdigalAnalyzer.h
edmtest
Definition:
AlignPCLThresholdsReader.cc:15
cms::cuda::assert
assert(be >=bs)
edmtest::ProdigalAnalyzer::ProdigalAnalyzer
ProdigalAnalyzer(edm::ParameterSet const &pset)
Definition:
ProdigalAnalyzer.cc:10
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
edm::EventSetup
Definition:
EventSetup.h:56
edmtest::ProdigalAnalyzer
Definition:
ProdigalAnalyzer.h:9
edm::InputTag
Definition:
InputTag.h:15
edmtest::ProdigalAnalyzer::analyze
void analyze(edm::StreamID, edm::Event const &e, edm::EventSetup const &c) const final
Definition:
ProdigalAnalyzer.cc:12
edm::ParameterSet
Definition:
ParameterSet.h:48
edm::Event
Definition:
Event.h:73
h
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition:
Activities.doc:4
MakerMacros.h
Handle.h
Generated for CMSSW Reference Manual by
1.8.14