Re: chain of chains?

Tioukov Valeri (valeri@d500na1.na.infn.it)
Wed, 21 Apr 1999 11:04:21 +0200 (MET DST)


On Wed, 21 Apr 1999, Rene Brun wrote:

> Hi Valeri,
> You are right. Chains of chains are still missing. On my todo list.
>
> Rene Brun

May be to define for the chains the operators "=" and "+" even more
natural then just the function Add(TChain *) :

chainAll = chain1+chain2...

Valeri
>
> Tioukov Valeri wrote:
> >
> > Hi rooters,
> >
> > Are there a simple way in root to make the chain of chains like it's done
> > in PAW? I suspect - not.
> >
> > This possibility is very convinient if one has a lot of files to process.
> > It's should be simple to add to TChain member function Add(TChain *)
> >
> > Something like:
> >
> > TChain chain1(
> > chain1.Add(
> > chain1.Add(
> > chain1.Add(
> > ....
> > TChain chain2(
> > chain2.Add(
> > chain2.Add(
> > chain2.Add(
> > ....
> > TChain chainAll(
> > chainAll.Add(chain1)
> > chainAll.Add(chain2)
> >
> > What do you think about?
> >
> > Best regards
> > Valeri
>