In the stat box there is the number of entries…it is the number of simulated showers…but I’d like that ROOT writes in it the number of the particles too…for example in the box of gamma, i want the gamma number, in the box of e± I want the number of e± etc, is it possible?
thanks hnsecondari.c (3.18 KB)
Hi couet and thanks. Before writing on the forum I saw that example but it is just to write something in the stat box…I searched something to write the number in automatic (As for the mean or the RMS)…As well, I tried to use the example and writing the numbers…but when i run it, ROOT stops to work …i add the macro in the attachment.
thanks hnsecondari.c (3.88 KB)
Processing denseprim.c...
Error in <TGraphErrors::TGraphErrors>: Cannot open file: G:/cors/gamma/gammatot/distribuzioni-gammatot.txt, TGraphErrors is Zombie
Warning in <Fit>: Fit data is empty
Error in <TGraphErrors::TGraphErrors>: Cannot open file: G:/cors/gamma/gammatot/distribuzioni-eletot.txt, TGraphErrors is Zombie
Warning in <Fit>: Fit data is empty
Error in <TGraphErrors::TGraphErrors>: Cannot open file: G:/cors/gamma/gammatot/distribuzioni-muotot.txt, TGraphErrors is Zombie
Warning in <Fit>: Fit data is empty
Error in <TGraphErrors::TGraphErrors>: Cannot open file: G:/cors/gamma/gammatot/distribuzioni-hadtot.txt, TGraphErrors is Zombie
Warning in <Fit>: Fit data is empty
also please write correct C++ … use sometimes use "."instead of "-> "… Because I am using ROOT 6 I have to correct your macros each time I get them…