Call each time the 'slave' gets a new Event
- Parameters
-
event | a standard edm::Event which works just like it does in cmsRun |
Implements TFWLiteSelectorBasic.
Definition at line 36 of file ThingsTSelector.cc.
References gather_cfg::cout, cppFunctionSkipper::exception, edm::Event::getByLabel(), h_a, h_refA, i, cms::Exception::what(), and x.
Referenced by ConfigBuilder.ConfigBuilder::__init__(), ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::anyOf(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare(), ConfigBuilder.ConfigBuilder::prepare_ALCA(), ConfigBuilder.ConfigBuilder::prepare_DQM(), ConfigBuilder.ConfigBuilder::prepare_FASTSIM(), ConfigBuilder.ConfigBuilder::prepare_HARVESTING(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder::scheduleSequence().
37 std::cout <<
"processing event " << std::endl;
39 using namespace edmtest;
43 iEvent.getByLabel(
"OtherThing",
"testUserTag", hOThings);
44 std::cout <<
">> other things found:" << hOThings->size() << std::endl;
46 for (
size_t i = 0;
i < hOThings->size(); ++
i ) {
47 const OtherThing & thing = (*hOThings)[
i ];
48 h_refA ->Fill( thing.ref->a );
49 std::cout <<
">> ref->a: " << thing.ref->a << std::endl;
53 iEvent.getByLabel(
"Thing",hThings);
54 const ThingCollection& things = *hThings;
55 std::cout <<
">> things found:" << things.size() << std::endl;
56 for (
size_t i = 0;
i < things.size(); ++
i ) {
57 const Thing & thing = things[
i ];
58 h_a ->Fill( thing.a );
59 std::cout <<
">> a: " << thing.a << std::endl;
62 std::cout << std::endl <<
"Failed with cms::Exception: " << std::endl;
66 std::cout << std::endl <<
"Failed with std::exception" << std::endl;
70 std::cout << std::endl <<
"Failed with unknown exception" << std::endl;
virtual char const * what() const