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

◆ ThingsTSelector2() [1/2]

tfwliteselectortest::ThingsTSelector2::ThingsTSelector2 ( )
inline

Definition at line 25 of file ThingsTSelector2.h.

25 {}

◆ ThingsTSelector2() [2/2]

tfwliteselectortest::ThingsTSelector2::ThingsTSelector2 ( ThingsTSelector2 const &  )
private

Member Function Documentation

◆ begin()

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

67 {}

◆ operator=()

ThingsTSelector2 tfwliteselectortest::ThingsTSelector2::operator= ( ThingsTSelector2 const &  )
private

◆ terminate()

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

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

References svgfig::canvas(), gather_cfg::cout, gpuVertexFinder::hist, kA, kRefA, and MillePedeFileConverter_cfg::out.

svgfig.canvas
def canvas(*sub, **attr)
Definition: svgfig.py:482
kRefA
static const char * kRefA
Definition: ThingsTSelector2.cc:15
gather_cfg.cout
cout
Definition: gather_cfg.py:144
gpuVertexFinder::hist
__shared__ Hist hist
Definition: gpuClusterTracksDBSCAN.h:48
kA
static const char * kA
Definition: ThingsTSelector2.cc:14
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31