RE: Objectivity and Root

From: Mark Pollack (mpollack@tibco.com)
Date: Fri Jun 04 1999 - 22:35:04 MEST


Dear Charles,

I worked on exactly this topic for PHENIX, you can see the tutorial at the
URL

http://www.phenix.bnl.gov/phenix/WWW/offline/tutorials/objy/index.html

and get a chep paper on this at

http://www.phenix.bnl.gov/~markp/database.htm

I ended up hiding from cint all thing related to objectivity by using
wrapper like classes.

Although once I did modify the generated cint code so you could modify
objectivity objects directly on the command line. There were some hidden
problems with directly manipulating the true persistent object via cint....

if I remember correctly if you typed something like
MyObjyObject a = new MyObjyObject()
then you would create two objects in the database since the copy ctor was
being called to assign MyObjyObject to a and not *a.

You can make cint more strict by changing the security level but this was
not
so stable....

root [0] TString a = new TString();
root [1] #pragma security level4
Warning: Security level4 only experimental, High risk
root [2] TString b = new TString();
cint: Security mode 0xfffff:0x1000 Casting protected FILE:/var/tmp/caa0THssK
LINE:1
*** Interpreter error recovered ***

A higher security level catches this common "typo" but other macros would
not run so
well.


- Mark




> -----Original Message-----
> From: owner-roottalk@hpsalo.cern.ch
> [mailto:owner-roottalk@hpsalo.cern.ch]On Behalf Of Charles Leggett
> Sent: Saturday, June 05, 1999 1:01 AM
> To: Roottalk Mailing List
> Subject: Objectivity and Root
>
>
>
> Is it possible to create a shared class library that can be
> loaded into an
> interactive root session with gSystem.Load(), that also talks to
> Objectivity?
> I'm trying to gain access to an Objectivity database from within root, to
> be able to browse/histogram objects in the database
> interactively. I've been
> trying to do this for a while, but so far have been unsuccessful.
>
>
> 			thanks...	Charles.
>
> --
> +-----------------------------------------------------------------
> ----------+
> | Charles Leggett                    |
>           |
> | Lawrence Berkeley National Lab     |
> <CGLeggett@lbl.gov>          |
> | 1 Cyclotron Road, MS 50B-3238      |       HCG / NERSC : Atlas
> / D0       |
> | Berkeley, CA 94720                 |  Eagles may soar, but
> weasels don't  |
> | (510) 495-2930    Office: 50B-3201 |     get sucked into jet
> engines.     |
> +---------------------- http://annwm.lbl.gov/~leggett
> ----------------------+
>



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:34 MET