Hi Sorin,
To apply long cuts, you should use the TCut class :
TCut c1="sqrt(fT.fPx*fT.fPx+fT.fPy*fT.fPy+fT.fPz*fT.fPz)>2"
TCut c2="sqrt(fT.fPx*fT.fPx+fT.fPy*fT.fPy+fT.fPz*fT.fPz)<4 "
and so on...
then :
tree->Draw("0.5*(log((fT.fE+fT.fPz)/(fT.fE-fT.fPz)))",c1&&c2)
If you want more info, have a look at : http://root.cern.ch/root/html/TCut.html
cheers,
Colin
Ion-Sorin Zgura wrote:
> Dear Rene,
> I have the following error message when I try to use multiple cuts.
> Is possible to increse the upper limit of cut strings?
> Those multiple cuts are very usefull for a complex analysis.
>
> Thank you in advance!
> Sincerly Yours,
> Sorin ZGURA
>
> root [5]
> tree->Draw("0.5*(log((fT.fE+fT.fPz)/(fT.fE-fT.fPz)))","sqrt(fT.fPx*fT.fPx+fT.fPy*fT.fPy+fT.fPz*fT.fPz)>2
> && sqrt(fT.fPx*fT.fPx+fT.fPy*fT.fPy+fT.fPz*fT.fPz)<4 && fT.fId==(-2212) &&
> fPIm<5 && sqrt(fT.fPx*fT.fPx+fT.fPy*fT.fPy)<0.55 &&
> sqrt(fT.fPx*fT.fPx+fT.fPy*fT.fPy)>0.15","hist", 117, 0);
> !!! User command too long !!!
> *** Break *** segmentation violation
--
Colin Bernet
Tel. +49-6131/39-23192
Fax +49-6131/39-22964
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:41 MET