145 if (command && (strlen(command) > 1))
146 gROOT->ProcessLine(command);
153 gROOT->ProcessLine(action.Data());
176 out<<
"exec = new TExec("<<quote<<
GetName()<<quote<<
", "
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.
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.
TString & ReplaceSpecialCppChars()
Find special characters which are typically used in printf() calls and replace them by appropriate es...
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.