146 if (command && (strlen(command) > 1))
gROOT->ProcessLine(command);
154 gROOT->ProcessLine(action);
178 out<<
"exec = new TExec("<<quote<<
GetName()<<quote<<
","<<quote<<
GetTitle()<<quote<<
");"<<std::endl;
180 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.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
void Paint(Option_t *option="") override
Execute the command referenced by this object.
virtual void Exec(const char *command="")
Execute the command referenced by this object.
TExec()
Exec default constructor.
The TNamed class is the base class for all named ROOT classes.
void Copy(TObject &named) const override
Copy this to obj.
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.