I have a problem with my root program. I use PYTHIA6 to obtain some kinematic variables - like transverse momentum - …all are 128 for each event (and the total number of events are 100000). These values are stored into an external file.
In my root program I call this external file, and I want to create some histograms and an ntuple.
But when I execute the program in terminal…
root [0]
Processing jet1.C…
found 0 points…
and the histograms are not filled.
I don’t know way the points are not found - in the external file are the kinematic variables values.
Guessing from your .C file, it looks like the problem is in:[code] TString dir = gSystem->UnixPathName(gInterpreter->GetCurrentMacroName());
dir.ReplaceAll(“jet1.C”,"");
dir.ReplaceAll("/./","/");
ifstream in;
if (!in.good()) break;
}[/code]So you ought to check that [code]in.open(Form("%sstuff.dat",dir.Data())); [/code]properly find your file and that your contains [b]only[/b] lines with [b]exactly[b] the number of floats described in your line [code]in >> Hinvm >> .....[/code]