105 TExec::TExec(): TNamed()
113 TExec::TExec(
const char *name,
const char *command) : TNamed(name,command)
127 TExec::TExec(
const TExec &e) : TNamed(e)
143 void TExec::Exec(
const char *command)
145 if (command && (strlen(command) > 1)) gROOT->ProcessLine(command);
147 if (strlen(GetTitle()) > 0) gROOT->ProcessLine(GetTitle());
149 if (strchr(GetName(),
'(')) {gROOT->ProcessLine(GetName());
return;}
150 if (strchr(GetName(),
'.')) {gROOT->ProcessLine(GetName());
return;}
152 snprintf(action,
sizeof(action),
".x %s.C", GetName());
153 gROOT->ProcessLine(action);
161 void TExec::Paint(Option_t *)
169 void TExec::SavePrimitive(std::ostream &out, Option_t * )
172 if (gROOT->ClassSaved(TExec::Class())) {
177 out<<
"exec = new TExec("<<quote<<GetName()<<quote<<
","<<quote<<GetTitle()<<quote<<
");"<<std::endl;
179 out<<
" exec->Draw();"<<std::endl;