7#include "TApplication.h"
9#include "TRootCanvas.h"
35int main(
int argc,
char **argv)
48 JParser<> zap(
"General purpose plot program to draw ROOT objects.");
50 zap[
'f'] =
make_field(inputFile,
"<input file>:<object name>");
58 catch(
const exception &error) {
69 ((
TRootCanvas *) cv->GetCanvasImp())->
Connect(
"CloseWindow()",
"TApplication", tp,
"Terminate()");
72 cv->SetFillStyle(4000);
84 ERROR(
"File: " << input->getFullFilename() <<
" not opened." <<
endl);
94 const TString tag(key->GetName());
100 if (tag.Contains(
regexp) && isTObject(key)) {
104 if (
dynamic_cast<TText*
> (p) ||
105 dynamic_cast<TLine*
> (p) ||
107 dynamic_cast<TBox*
> (p)) {
109 DEBUG(
"Add object: " << tag <<
" with name <" << p->GetName() <<
">" <<
endl);
int main(int argc, char **argv)
General purpose messaging.
#define DEBUG(A)
Message macros.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
Data structure for size of TCanvas.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).