CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions
tfwliteselectortest::ThingsTSelector2 Class Reference

#include <ThingsTSelector2.h>

Inheritance diagram for tfwliteselectortest::ThingsTSelector2:
TFWLiteSelector< ThingsWorker > TFWLiteSelectorBasic

Public Member Functions

void begin (TList *&) override
 
void terminate (TList &) override
 
 ThingsTSelector2 ()
 
- Public Member Functions inherited from TFWLiteSelector< ThingsWorker >
 TFWLiteSelector ()
 
 ~TFWLiteSelector () override
 
- Public Member Functions inherited from TFWLiteSelectorBasic
 TFWLiteSelectorBasic ()
 
 ~TFWLiteSelectorBasic () override
 

Private Member Functions

ThingsTSelector2 operator= (ThingsTSelector2 const &)
 
 ThingsTSelector2 (ThingsTSelector2 const &)
 

Detailed Description

Definition at line 23 of file ThingsTSelector2.h.

Constructor & Destructor Documentation

tfwliteselectortest::ThingsTSelector2::ThingsTSelector2 ( )
inline

Definition at line 25 of file ThingsTSelector2.h.

References begin.

25 {}
tfwliteselectortest::ThingsTSelector2::ThingsTSelector2 ( ThingsTSelector2 const &  )
private

Member Function Documentation

void ThingsTSelector2::begin ( TList *&  in)
overridevirtual

Called each time the 'client' begins processing (remote 'slaves' do not see this message)

Parameters
inan 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 65 of file ThingsTSelector2.cc.

65 {}
ThingsTSelector2 tfwliteselectortest::ThingsTSelector2::operator= ( ThingsTSelector2 const &  )
private
void ThingsTSelector2::terminate ( TList &  out)
overridevirtual

Called each time the 'client' has finished processing.

Parameters
outcontains the accumulated output of all slaves.

Implements TFWLiteSelectorBasic.

Definition at line 67 of file ThingsTSelector2.cc.

References svgfig::canvas(), gather_cfg::cout, create_public_lumi_plots::hist, kA, and kRefA.

67  {
68  std::cout << "terminate" << std::endl;
69  TCanvas* canvas = new TCanvas();
70  {
71  TObject* hist = out.FindObject(kA);
72  if (nullptr != hist) {
73  hist->Draw();
74  canvas->SaveAs("a.jpg");
75  } else {
76  std::cout << "no '" << kA << "' histogram" << std::endl;
77  }
78  }
79  std::cout << "refA" << std::endl;
80  {
81  TObject* hist = out.FindObject(kRefA);
82  if (nullptr != hist) {
83  hist->Draw();
84  canvas->SaveAs("refA.jpg");
85  } else {
86  std::cout << "no '" << kRefA << "' histogram" << std::endl;
87  }
88  }
89  delete canvas;
90 }
static const char * kA
static const char * kRefA
def canvas(sub, attr)
Definition: svgfig.py:482