CMS 3D CMS Logo

Public Member Functions | Private Member Functions

tfwliteselectortest::ThingsTSelector2 Class Reference

#include <ThingsTSelector2.h>

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

List of all members.

Public Member Functions

void begin (TList *&)
void terminate (TList &)
 ThingsTSelector2 ()

Private Member Functions

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

Detailed Description

Definition at line 24 of file ThingsTSelector2.h.


Constructor & Destructor Documentation

tfwliteselectortest::ThingsTSelector2::ThingsTSelector2 ( ) [inline]

Definition at line 26 of file ThingsTSelector2.h.

{}
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.

{
}
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 MultipleCompare::canvas, gather_cfg::cout, estimatePileup::hist, kA, and kRefA.

                                           {
  std::cout << "terminate" << std::endl;
  TCanvas * canvas = new TCanvas( );
  {
     TObject* hist = out.FindObject(kA);
     if(0!=hist) {
        hist->Draw();
        canvas->SaveAs( "a.jpg" );
     } else {
        std::cout <<"no '"<<kA<<"' histogram"<< std::endl;
     }
  }
  std::cout <<"refA"<< std::endl;
  {
     TObject* hist = out.FindObject(kRefA);
     if( 0 != hist ) {
        hist->Draw();
        canvas->SaveAs( "refA.jpg" );
     } else {
        std::cout <<"no '"<<kRefA<<"' histogram"<< std::endl;
     }
  }
  delete canvas;
}