11 #include <JANA/JApplication.h>
12 #include <JANA/JEvent.h>
23 std::map<string,double> result1;
24 loop->GetCalib(
"/PHOTON_BEAM/endpoint_energy", result1);
25 if (result1.find(
"PHOTON_BEAM_ENDPOINT_ENERGY") == result1.end()) {
26 std::cerr <<
"Error in DTAGHGeometry constructor: "
27 <<
"failed to read photon beam endpoint energy "
28 <<
"from calibdb at /PHOTON_BEAM/endpoint_energy" << std::endl;
36 std::vector<std::map<string,double> > result2;
37 loop->GetCalib(
"/PHOTON_BEAM/hodoscope/scaled_energy_range", result2);
39 jerr <<
"Error in DTAGHGeometry constructor: "
40 <<
"failed to read photon beam scaled_energy_range table "
41 <<
"from calibdb at /PHOTON_BEAM/hodoscope/scaled_energy_range" << std::endl;
48 for (
unsigned int i=0; i < result2.size(); ++i) {
49 int ctr = (result2[i])[
"counter"];
double getElow(unsigned int counter) const
double m_counter_xhigh[TAGH_MAX_COUNTER+1]
double getEhigh(unsigned int counter) const
double m_counter_xlow[TAGH_MAX_COUNTER+1]
double m_endpoint_energy_GeV
static const unsigned int kCounterCount
bool E_to_counter(double E, unsigned int &counter) const
DTAGHGeometry(JEventLoop *loop)