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 75 of file ThingsTSelector2.cc.

76 {
77 }
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 79 of file ThingsTSelector2.cc.

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

79  {
80  std::cout << "terminate" << std::endl;
81  TCanvas * canvas = new TCanvas( );
82  {
83  TObject* hist = out.FindObject(kA);
84  if(nullptr != hist) {
85  hist->Draw();
86  canvas->SaveAs( "a.jpg" );
87  } else {
88  std::cout <<"no '"<<kA<<"' histogram"<< std::endl;
89  }
90  }
91  std::cout <<"refA"<< std::endl;
92  {
93  TObject* hist = out.FindObject(kRefA);
94  if(nullptr != hist) {
95  hist->Draw();
96  canvas->SaveAs( "refA.jpg" );
97  } else {
98  std::cout <<"no '"<<kRefA<<"' histogram"<< std::endl;
99  }
100  }
101  delete canvas;
102 }
static const char * kA
static const char * kRefA
def canvas(sub, attr)
Definition: svgfig.py:481