GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Analysis » Different results for same information extracted in different ways
Re: Different results for same information extracted in different ways [message #17468 is a reply to message #17467] Fri, 07 November 2014 17:26 Go to previous messageGo to previous message
Mamen is currently offline  Mamen
Messages: 55
Registered: January 2009
Location: Mainz
continuous participant
From: *unity-media.net
Dear Klaus,

thank you again for your help.
I will try reseting the histogram using the method you propose.
By now I am trying to write a small test macro that makes the following:

1.- Reads only one file and projects it into a histogram using Projec().
2.- Loops over the histogram using GetBinContent from 0 to NBins+1 (Total Nbins+2)
3.- Loops over the histogram using GetBinContent from bin 1 to NBins (Total Nbins)
4.- GetEntries for the histogram.
5.- Compare all that values
6.- Then I close the file.

Up to now this is working and the values match.

Now I'm trying to:

1.- Open the same file inside the same macro using a different TFile.
2.- Set Branch addresses.
3.- loop over the tree
4.- Fill a histogram applying a cut, in principle the same as with Project()
5.- Repeat points 2 to 6 of the previous block with the new histogram.

This second part is right now not working, even commenting the first part of the code out, the histogram its not filled... :-S
I'm working on it... I'll keep you informed of my progress.

Thanks again for your help.
Mamen
 
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: vertex reconstruction without fitting?
Next Topic: Vertex fitter for two consecutive decays
Goto Forum:
  


Current Time: Tue Mar 19 11:21:32 CET 2024

Total time taken to generate the page: 0.01165 seconds