145   if (command && (strlen(command) > 1))  
gROOT->ProcessLine(command);
 
  153         gROOT->ProcessLine(action);
 
  177   out<<
"exec = new TExec("<<quote<<
GetName()<<quote<<
","<<quote<<
GetTitle()<<quote<<
");"<<std::endl;
 
  179   out<<
"   exec->Draw();"<<std::endl;
 
TExec is a utility class that can be used to execute a C++ command when some event happens in a pad.
 
virtual ~TExec()
Exec default destructor.
 
virtual void Paint(Option_t *option="")
Execute the command referenced by this object.
 
virtual void Exec(const char *command="")
Execute the command referenced by this object.
 
TExec()
Exec default constructor.
 
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
 
The TNamed class is the base class for all named ROOT classes.
 
virtual void Copy(TObject &named) const
Copy this to obj.
 
virtual const char * GetTitle() const
Returns title of object.
 
virtual const char * GetName() const
Returns name of object.