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