Re: Root and Tape library hardware ...

Rene Brun (Rene.Brun@cern.ch)
Tue, 07 Jul 1998 19:02:37 +0200


meb@gorby.dataventures.com wrote:
>
> Dear Root,
>
> We are a data mining company and we have decided to give root a
> try. My question is whether root could be used to read transaction
> data off client-provided tapes, cleaned up and then stored into a root
> file (possibly on a tape library).
>
> We are considering using a 3575 Magstar MP Tape Library Dataserver.
>
> In my previous life I was a physicist and I knew that some physicist
> out there has had to deal with scanning huge amounts of raw data off tape,
> doing some analysis and a DST on (possibly) tape.
>
> - Mike Beddo

>From a Root application (normal C++), you can do what you want:
read an ascii file, binary files,etc.
In your case, you should call the functions (whatever language)
to read your old file from a C++ compiled function.
This operation will probably be in a loop. Read a chunk of data,
transform this data into managable C++ objects from which
you fill a Root Tree.
We already have several applications of this style.
For example the h2root program distributed in $ROOTSYS/bin/h2root
converts all PAW format files into Root files.

The migration to a Tape Library should be the job of another service
(Hierarchical Storage Manager or like).
One can imagine a class MyFile derived from TFile and knowing
about your Tape Library.
You can also look at the class TNetFile to access files across the
network. TNetFilke assumes a Root daemon server rootd.
rootd is also part of the distribution kit.
rootd is a good source of inspiration to make an interface
to your storage system.

Rene Brun