Hi Min Jeong, Currently TCUT supports only the boolean operators && and ||. I agree that it would be nice to also support the * operator. We will implement this. Rene Brun Minjeong Kim wrote: > > Hello, > > I have a problem to weight my histogram with function. I work with ROOT > 23/11 and KCC. My function is third polynomial function with four > parameters. > > A0 : 0.8409, A1 : 0.5085, A2 : 0.1611, A3 : -383.4 > > Also I use several cut definitions : > > TCut EVNT = "(nsgl<1)&&(nsgl==1)" ; > TCut CMUP = "(sgltyp1==20)&&(detcmuo==3)" ; > > My first question is whether this is possible in present ROOT version > or not. If this is possible, how? > > My histogram is filled from ntuple and pt is one of variables of my > ntuple. I hoped next line worked, but it's not. I can feel this is > wrong, but actually I don't know how to fix. > > h400->Draw("taupt>>histogram", > "(0.8409+0.5085/pt+0.1611/(pt)**2-383.4/(pt)**3)"*(EVNT&&CMUP),"goff"); > > Can you give me some advice? > Thanks in advance. > > Min Jeong > ================================ > Min Jeong Kim (CDF/KHCL) > E-mail : mjkim@fnal.gov > Office : CDF 137-B (X8473) > ================================
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:24 MET