Public Member Functions | List of all members
draw_tobject Struct Reference

#include <Functors.h>

Public Member Functions

void operator() (TObject *x)
 

Detailed Description

Definition at line 26 of file Functors.h.

Member Function Documentation

void draw_tobject::operator() ( TObject *  x)
inline

Definition at line 27 of file Functors.h.

27  {
28  // Do not draw poly lines if they have no points. Otherwise ROOT crashes
29  if (dynamic_cast<TPolyLine*>(x)) {
30  if (dynamic_cast<TPolyLine*>(x)->GetN() < 2) return;
31  }
32  else if (dynamic_cast<TPolyLine3D*>(x)) {
33  if (dynamic_cast<TPolyLine3D*>(x)->GetN() < 2) return;
34  }
35 
36  x->Draw();
37  }
list x
Definition: train.py:276

The documentation for this struct was generated from the following file: