#include <ThingsTSelector.h>
Definition at line 16 of file ThingsTSelector.h.
◆ ThingsTSelector() [1/2]
tfwliteselectortest::ThingsTSelector::ThingsTSelector |
( |
| ) |
|
|
inline |
Definition at line 18 of file ThingsTSelector.h.
edm::propagate_const< TH1F * > h_a
histograms
edm::propagate_const< TH1F * > h_refA
◆ 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 |
Called each time the 'slave' is about to start processing
- Parameters
-
in | a pointer to the list of objects created in 'begin()'. The pointer can be 0 |
out | a list of objects that are the result of processing (e.g. histograms). You should call 'Add()' for each object you want sent to the 'terminate' method. |
Implements TFWLiteSelectorBasic.
Definition at line 17 of file ThingsTSelector.cc.
References edm::propagate_const< T >::get(), h_a, h_refA, kA, kRefA, and MillePedeFileConverter_cfg::out.
23 h_a =
new TH1F(
kA,
"a", 100, 0, 20);
static const char * kRefA
constexpr element_type const * get() const
edm::propagate_const< TH1F * > h_a
histograms
edm::propagate_const< TH1F * > h_refA
◆ 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.
References CMS_SA_ALLOW, gather_cfg::cout, cppFunctionSkipper::exception, h_a, h_refA, mps_fire::i, iEvent, dqmdumpme::things, and x.
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;
edm::propagate_const< TH1F * > h_a
histograms
edm::propagate_const< TH1F * > h_refA
◆ terminate()
void ThingsTSelector::terminate |
( |
TList & |
out | ) |
|
|
overridevirtual |
◆ h_a
◆ h_refA