Re: FW: producing stats box in batch mode

From: Olivier Couet <couet_at_mail.cern.ch>
Date: Mon, 14 Feb 2005 09:04:52 +0100 (CET)

Hello,

 Can you send me an small example reproducing your problem ?

Thanks,

               Olivier Couet

> -----Original Message-----
> From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch]
> On Behalf Of Roland Kuhn
> Sent: Saturday, January 22, 2005 11:48 AM
> To: roottalk_at_pcroot.cern.ch
> Subject: [ROOT] producing stats box in batch mode
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Dear Experts!
>
> I'm writing a library for the management of (value,error) pairs, which among
>
> other things can produce a histogram of so-called pulls. This histogram is
> created while having cd()-ed into a user-supplied TStyle, then it is drawn
> on
> a newly created TCanvas("",""), then the original style is restored.
> Requiring a display of the canvas is not an option. The user of the library
> then gets a pointer to this canvas and can do as he/she likes. The most
> common operation is to save the canvas, e.g. with c->SaveAs("canvas.eps").
> This works fine, but the stats box, which is only then created, does not
> pick
> up the OptFit and OptStat settings which were in effect at the time of
> creation. I solved this problem by issuing a
>
> c->Print("/dev/null","eps")
>
> before changing back to the old TStyle, but this is ugly as hell. Is there
> an
> official way to create the stats box (also needed for other modifications)
> on
> demand for a batch canvas?
>
> Also, it would be nice if WaitPrimitive() would at some point return in that
>
> case, since no event can ever be received...
>
> Ciao,
> Roland
>
> +---------------------------+-------------------------+
> | TU Muenchen | |
> | Physik-Department E18 | Raum 3558 |
> | James-Franck-Str. | Telefon 089/289-12592 |
> | 85747 Garching | Telefax 089/289-12570 |
> +---------------------------+-------------------------+
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
>
> iD8DBQFB8pHmI4MWO8QIRP0RAuj8AKCWGOEmqs337Iu0VUz3OgIrDmQbIACdG8h/
> bfzpKbFKfsuHT9IV0U8P/EE=
> =lV8H
> -----END PGP SIGNATURE-----
>
>

-- 
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910      
E-Mail: Olivier.Couet_at_cern.ch                            Phone:   +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 7670300
Received on Mon Feb 14 2005 - 09:04:58 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:05 MET