Hi, i’m trying to solve the following problem using a root macro:
i’ve got a TNutple with 3 vars, say x,y,z.
I want to plot x vs y in a bidim histo, and draw a TCutG on that;
after that i want to apply that cut, plotting the distribuition of z in a single histo.
What does valgrind say in your case (see valgrind.org and run as 'valgrind root.exe ')?
Can you provide a complete running example showing the problem? What is the stack trace in the failing case?
The TNtuple has 3 var: t,energy,energyFast.
I draw a TH2 energyFast vs energy and draw there a TCutg; the istruction
cout<<gcut->GetName()<<endl;
works fine.
Then i want to draw the distribution of t, for those events with energy and energyFast inside my cut.
The error i get is:[quote]
Drawing using a C++ file currently requires that both the expression and the selection are files
"t >> h1" is not a file
[quote]yes, there is a file called “cut” in my directory (it is the binary file of the program)[/quote]This is the problem. You need to rename either the binary file or the cut.