Hello i would do something like: TCut myCUT; for (Int_t iLoop=0; iLoop<10; iLoop++) { myCUT=Form("num of jets = %i",iLoop); myTree->Draw("var",myCUT); } On Tuesday 24 February 2004 09:00, Stilianos Kesisoglou wrote: > Hi, > > I am facing with a problem that I am not sure how to solve it. > > I have a loop inside on which I plot a histogram every time with > a different cut: > > . > . > for (Int)t iLoop=0; iLoop<iMAX; iLoop++) > { > char myCUT[10]; > sprintf(myCUT,"num of jets = %i",iLoop); > > myTree->Draw("var",myCUT); > } > . > . > > > Now what I would like to do is to change the code and use > TCut instead of a character array for my cut. > > How do I make a TCut object that changes every time I loop? > > Thanks! > > Stelios.
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET