Re: [ROOT] TCut

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sun Sep 29 2002 - 22:33:25 MEST


Hi Carmine,

Could you send a small Root file and a script reproducing this problem?

Rene Brun

On Sun, 29 Sep 2002, Carmine Elvezio Pagliarone, CDF wrote:

> Hallo the version I'm currently using is the 3.03/07 5 August 2002
> And with this version I get this problem.
> cheers,
> c.
> 
> On Sat, 28 Sep 2002, Rene Brun wrote:
> 
> > Hi Carmine,
> >
> > Unfortunately you do not indicate which version you are using.
> > It looks like you use an old version. This problem with the number
> > of cuts was fixed several months ago.
> >
> > Rene Brun
> >
> > On Fri, 27 Sep 2002, Carmine Elvezio Pagliarone, CDF wrote:
> >
> > > Hallo,
> > >
> > >
> > > I'm getting this kind of error message running Root:
> > >
> > > Error in <TObjArray::At>: index 19 out of bounds (size: 16, this: 0x11f97590)
> > > Error in <TObjArray::At>: index 16 out of bounds (size: 16, this: 0x11f97590)
> > > Error in <TObjArray::At>: index 19 out of bounds (size: 16, this: 0x11f97590)
> > > Error in <TObjArray::At>: index 16 out of bounds (size: 16, this: 0x11f97590)
> > > Error in <TObjArray::At>: index 19 out of bounds (size: 16, this: 0x11f97590)
> > >
> > > I believe that is some how connected with the number of cuts I apply in my
> > > macro. Infact If I try to reduce the number of selection cuts
> > > this error message magically disapper
> > > Here it's an example of what I'm  doing:
> > >
> > > TCut cta0="nMUO>1";
> > > TCut cta1="abs(Zvtx)<60.";
> > > TCut cta2="(abs(MUO.trk.D0[0])<0.6)&&(abs(MUO.trk.D0[1])<0.6)";
> > > TCut cta3="(MUO.Pt[0]>=1.5)";
> > > TCut cta4="(abs(MUO.dx[0]) < 12.)&&(abs(MUO.dx[1])<12.)";
> > > TCut cta5="(MUO.R4Et[0]<2.0)&&(MUO.R4Et[1]<2.0)";
> > > TCut cta6="(MUO.hdEt[0]<6.)&&(MUO.hdEt[1]<6.)&&(MUO.emEt[0]<2.)&&(MUO.emEt[1]<2.)";
> > > TCut cta7="abs(MUO.trk.Z0[0]-MUO.trk.Z0[1])<5.";
> > > //
> > > TCut ctb0="(MUO.trk.Charge[0]*MUO.trk.Charge[1])<0.";
> > > TCut ctb1="mZ0mu>2.896";
> > > TCut ctb2="mZ0mu<3.296";
> > > //
> > > //
> > > TCut cuta=cta0&&cta1&&cta2&&cta3&&cta4&&cta5&&cta6&&cta7;
> > > TCut cutb=ctb0&&ctb1&&ctb2;
> > > TCut CUT=cuta&&cutb;
> > >
> > > and so on...
> > >
> > > As you can see it's not a really big ammounts of cuts but on the other
> > > hand I need to apply more. Is there a way to do that without having
> > > troubles ? How can I fix this problem ?
> > > Thank you so much for you help !
> > >
> > > Carmine (CDF)
> > >
> > >
> > >
> >
> 
> =============================================
>        Carmine Elvezio Pagliarone, PhD
>       CDF - Collider Detector Facility
> 
>      University of Cassino & INFN of Pisa
>   FERMILAB: MS 223 - Batavia,Il - 60510-0500
>      tel.:(001)-630-840-3056 fax.: x2968
> =============================================
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:11 MET