I would very much appreciate some help on a small problem with a standard physics analysis.
Within the analysis I process two data sets, loaded separately within a class header file using TChain. The first set is run through and a .root file of histograms written to. The second run accesses this .root file using:
TFile *myfile = new TFile("mydata.root");
The histograms within this file are then drawn in the second run using:
TH1F* mypointer = static_cast<TH1F*>(myfile->Get("myhist"));
When I load my .C file using:
Everything is okay, ROOT sorts things out for me. However, it takes much longer. So compiling using:
Improves the run-time greatly. The problems is, the following error is raised:
`myhist' was not declared in this scope
warning: unused variable mypointer
Any help with this matter would be much appreciated. I am running version 5.22/00.
Thanks for your time,