15 #include "DataFormats/TestObjects/interface/ThingCollection.h" 52 event_(consumes(iPSet.getUntrackedParameter<
edm::
InputTag>(
"event"))),
58 desc.addUntracked(
"beginRun",
edm::InputTag{
"thing",
"beginRun"})->setComment(
"Collection to get from Run");
59 desc.addUntracked(
"beginLumi",
edm::InputTag{
"thing",
"beginLumi"})->setComment(
"Collection to get from Lumi");
60 desc.addUntracked(
"event",
edm::InputTag{
"thing",
""})->setComment(
"Collection to get from event");
62 ->setComment(
"Collection to get from Lumi but only available at end");
64 ->setComment(
"Collection to get from Run but only available at end");
65 descriptions.
add(
"thingAnalyzer",
desc);
69 auto const&
lumi =
iEvent.getLuminosityBlock();
71 auto const&
run =
lumi.getRun();
89 return std::shared_ptr<Empty>();
110 return std::shared_ptr<Empty>();
127 throw cms::Exception(
"ShouldNotBeValid") <<
"handle was valid when it should not have been";
void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const final
ThingAnalyzer(edm::ParameterSet const &)
TEMPL(T2) struct Divides void
edm::EDGetTokenT< ThingCollection > endLumi_
std::shared_ptr< Empty > globalBeginRun(edm::Run const &, edm::EventSetup const &) const final
void shouldBeInvalid(edm::Handle< ThingCollection > const &) const
#define DEFINE_FWK_MODULE(type)
PROD const & get(EDGetTokenT< PROD > token) const noexcept(false)
edm::EDGetTokenT< ThingCollection > beginLumi_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< ThingCollection > endRun_
edm::EDGetTokenT< ThingCollection > beginRun_
void globalEndRun(edm::Run const &, edm::EventSetup const &) const final
std::shared_ptr< Empty > globalBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const final
void analyze(edm::StreamID, edm::Event const &, edm::EventSetup const &) const final
edm::EDGetTokenT< ThingCollection > event_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Handle< PROD > getHandle(EDGetTokenT< PROD > token) const