CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 *&)
 
void terminate (TList &)
 
 ThingsTSelector2 ()
 
- Public Member Functions inherited from TFWLiteSelector< ThingsWorker >
 TFWLiteSelector ()
 
virtual ~TFWLiteSelector ()
 
- Public Member Functions inherited from TFWLiteSelectorBasic
 TFWLiteSelectorBasic ()
 
virtual ~TFWLiteSelectorBasic ()
 

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.

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

Member Function Documentation

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

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)
virtual

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, estimatePileup::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 }
def canvas
Definition: svgfig.py:481
static const char * kA
static const char * kRefA
tuple cout
Definition: gather_cfg.py:145