line my code gave same error. Then I changed my code with the code that you wrote me (I only change TParticle( *prt ); to TMCParticle (*prt)).
But the problem is if I change the conditions like when I change the charge value I get the same graphics. I think tree is not be filled with right particles.
I know I bored you too much and I’m so sory for this. I really try to solve this problem but unfortunately I could not do this.
[quote]But the problem is if I change the conditions like when I change the charge value I get the same graphics. I think tree is not be filled with right particles. [/quote]You might be drawing from the correct TTree, aka it depends what you do between the first and the 2nd (which changed condition) runs. Note that I am this week and the next at Cern. It might work out better if you stop by (I will be in Rene’s office).
I think I have a bigger problem. I can calculate the right charge values. But I could not get the right histogram. Everytime I change the charge value, I always get the same histogram. Could you please let me know how can I fix this problem.
Thank you for your quick reply I will come to meet you. But could you please give me some hint how can I fix this problem.I really need the solution especially this weekend. Because I have to plot 36 different histograms with using this macro.
Hello
Everyone i am very new in pythia i want to create Root histogram using the pythia example or data how can i do this if some one has done it then kindly answer it …
it will be a great favour
Please don’t reply to a post which is 14 years old, but open a new topic instead.
And for the Pythia examples, look at the pythiaExample.C (Pythia 6) and pythia8.C tutorials, it’s all we have