#include <ThingsTSelector.h>
Definition at line 16 of file ThingsTSelector.h.
◆ ThingsTSelector() [1/2]
tfwliteselectortest::ThingsTSelector::ThingsTSelector |
( |
| ) |
|
|
inline |
◆ ThingsTSelector() [2/2]
tfwliteselectortest::ThingsTSelector::ThingsTSelector |
( |
ThingsTSelector const & |
| ) |
|
|
private |
◆ begin()
void ThingsTSelector::begin |
( |
TList *& |
in | ) |
|
|
overridevirtual |
Called each time the 'client' begins processing (remote 'slaves' do not see this message)
- Parameters
-
in | an assignable pointer to a list of objects you want passed to 'preProcessing'. This list is used to communicate with remote slaves. NOTE: you are responsible for deleting this TList and its content once you are done with it. |
Implements TFWLiteSelectorBasic.
Definition at line 15 of file ThingsTSelector.cc.
◆ operator=()
◆ postProcessing()
void ThingsTSelector::postProcessing |
( |
TList & |
out | ) |
|
|
overridevirtual |
Called each time the 'slave' has seen all the events
- Parameters
-
out | the list of objects that will be sent to 'terminate'. You can Add() additional objects to 'out' at this point as well. |
Implements TFWLiteSelectorBasic.
Definition at line 74 of file ThingsTSelector.cc.
◆ preProcessing()
void ThingsTSelector::preProcessing |
( |
const TList * |
in, |
|
|
TList & |
out |
|
) |
| |
|
overridevirtual |
◆ process()
void ThingsTSelector::process |
( |
const edm::Event & |
event | ) |
|
|
overridevirtual |
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 35 of file ThingsTSelector.cc.
36 std::cout <<
"processing event " << std::endl;
42 iEvent.getByLabel(
"OtherThing",
"testUserTag", hOThings);
43 std::cout <<
">> other things found:" << hOThings->size() << std::endl;
45 for (
size_t i = 0;
i < hOThings->size(); ++
i) {
46 const OtherThing& thing = (*hOThings)[
i];
47 h_refA->Fill(thing.ref->a);
48 std::cout <<
">> ref->a: " << thing.ref->a << std::endl;
52 iEvent.getByLabel(
"Thing", hThings);
53 const ThingCollection&
things = *hThings;
55 for (
size_t i = 0;
i <
things.size(); ++
i) {
58 std::cout <<
">> a: " << thing.a << std::endl;
61 std::cout << std::endl <<
"Failed with cms::Exception: " << std::endl;
65 std::cout << std::endl <<
"Failed with std::exception" << std::endl;
69 std::cout << std::endl <<
"Failed with unknown exception" << std::endl;
References CMS_SA_ALLOW, gather_cfg::cout, cppFunctionSkipper::exception, h_a, h_refA, mps_fire::i, iEvent, and dqmdumpme::things.
◆ terminate()
void ThingsTSelector::terminate |
( |
TList & |
out | ) |
|
|
overridevirtual |
◆ h_a
◆ h_refA