[ROOT] TCut

From: Carmine Elvezio Pagliarone, CDF (carmine@cdfsga.fnal.gov)
Date: Sat Sep 28 2002 - 02:33:19 MEST


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)



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