Adrian Sevcenco
2014-10-17 09:29:46 UTC
Hi! I try to do the following:
read some histograms from some root files in a macro
and then in the main macro that plot the histograms in various way
to access them ...
something like (logical structure):
setup_histos.C
void setup_histos()
{
//get histos from files
histo1 Get from file
}
analysis.C
void analysis ()
{
LoadMacro setup_histos.C
setup_histos();
histo{1..n}->Draw();
}
the thing is that even if the pointers are available
the pointed info is not .. how can access the histograms
that were setup in the first macro?
Thanks a lot!
Adrian
read some histograms from some root files in a macro
and then in the main macro that plot the histograms in various way
to access them ...
something like (logical structure):
setup_histos.C
void setup_histos()
{
//get histos from files
histo1 Get from file
}
analysis.C
void analysis ()
{
LoadMacro setup_histos.C
setup_histos();
histo{1..n}->Draw();
}
the thing is that even if the pointers are available
the pointed info is not .. how can access the histograms
that were setup in the first macro?
Thanks a lot!
Adrian