[ROOT] Creating TCut object from a char array

From: Stilianos Kesisoglou (kesisogl@fnal.gov)
Date: Tue Feb 24 2004 - 10:00:14 MET


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