Hey expert rooters
I have a curve which I sliced to some parts and I Projected all parts in X-axis and Y-axis.
But it has problems!
For example, entries in first part are 2211649 and when I projected on Y-axis, entries are only 2!!! (and this made mistake in my calculation!) but projected curve on X-axis has 2211649 entries.
my program is in attachment.
What’s my problem?What I should to do?
Thanks Projecting.cxx (1.72 KB)
Processing Projecting.cxx...
In file included from input_line_10:1:
/Users/couet/Downloads/Projecting.cxx:7:10: fatal error: 'pdbreakup.h' file not
found
#include "pdbreakup.h"
^
/Users/couet/Downloads/Projecting.cxx:19:3: error: member reference type
'TChain *' is a pointer; maybe you meant to use '->'?
t1.Add("/home/username/folder/data.root");
~~^
->
[quote=“couet”][code]
Processing Projecting.cxx…
In file included from input_line_10:1:
/Users/couet/Downloads/Projecting.cxx:7:10: fatal error: ‘pdbreakup.h’ file not
found #include “pdbreakup.h”
^
/Users/couet/Downloads/Projecting.cxx:19:3: error: member reference type
’TChain *’ is a pointer; maybe you meant to use ‘->’?
t1.Add("/home/username/folder/data.root");
~~^
->
[/code][/quote]
yes, it doesn’t work in your machine…because you haven’t “data.root”…
but it works in my machine…but results aren’t reliable
please look at the program and say what’s my mistake? and about result, trust me
Can you not post a simple root file containing the 2D histogram you want to project and a macro doing the projection and showing to us what is wrong with the result that you obtain ?