Add THcRunParms. Get beam energy without db_run.dat
With this commit, db_run.dat is not needed in hcana If THcRunParms is used, hcana will get the beam momentum from the parameter "gpbeam" instead of db_run.dat. To use, use the THaRun::SetRunParamClass method to set the run parameter class to "THcRunParameters". THaRun* run = new THaRun(RunFileName); run->SetRunParamClass("THcRunParameters");
Showing
- examples/db_run.dat 0 additions, 7 deletionsexamples/db_run.dat
- examples/hodtest.C 3 additions, 0 deletionsexamples/hodtest.C
- podd 1 addition, 1 deletionpodd
- src/THcRunParameters.cxx 61 additions, 0 deletionssrc/THcRunParameters.cxx
- src/THcRunParameters.h 22 additions, 0 deletionssrc/THcRunParameters.h
examples/db_run.dat
deleted
100755 → 0
src/THcRunParameters.cxx
0 → 100644
src/THcRunParameters.h
0 → 100644
Please register or sign in to comment