57{
   60 
   62 
   64  JParameters_t  parameters;
   65  Short_t        align        = 22;
   66  Float_t        angle        = 0.0;
   67  Color_t        color        = kBlack;
   68  Font_t         font         = 43;
   69  Float_t        size         = 40;
   71 
   72  try {
   73 
   75 
   81    
   82    JParser<> zap(
"Auxiliary program to create TLatex.");
 
   83 
   85    zap[
'p'] = 
make_field(parameters,   
"x1 y1 text");
 
   88 
   89    zap(argc, argv);
   90  }
   91  catch(const exception &error) {
   92    FATAL(error.what() << endl);
 
   93  }
   94 
   95 
   97 
   98  for (size_t i = 0; i != parameters.size(); ++i) {
   99 
  100    TLatex* p = 
new TLatex(parameters[i].x1, parameters[i].y1, parameters[i].
text.c_str());
 
  101 
  102    p->SetTextAlign(align);
  103    p->SetTextAngle(angle);
  104    p->SetTextColor(color);
  105    p->SetTextFont (font);
  106    p->SetTextSize (size);
  107  
  108    out.WriteTObject(p);
  109  }
  110 
  111  out.Write();
  112  out.Close();
  113}
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
#define gmake_property(A)
macros to convert (template) parameter to JPropertiesElement object
 
Utility class to parse parameter values.
 
Utility class to parse command line options.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Auxiliary wrapper for I/O of container with optional comment (see JComment).
 
Empty structure for specification of parser element that is initialised (i.e. does not require input)...