LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
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  }
Float_t x
Definition: compare.C:6

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