11 #include <JANA/JApplication.h>
12 #include <JANA/JEvent.h>
27 std::map<string,double> result1;
28 loop->GetCalib(
"/PHOTON_BEAM/endpoint_energy", result1);
29 if (result1.find(
"PHOTON_BEAM_ENDPOINT_ENERGY") == result1.end()) {
30 std::cerr <<
"Error in DTAGMGeometry constructor: "
31 <<
"failed to read photon beam endpoint energy "
32 <<
"from calibdb at /PHOTON_BEAM/endpoint_energy" << std::endl;
40 std::vector<std::map<string,double> > result2;
41 loop->GetCalib(
"/PHOTON_BEAM/microscope/scaled_energy_range", result2);
43 std::cerr <<
"Error in DTAGMGeometry constructor: "
44 <<
"failed to read photon beam scaled_energy_range table "
45 <<
"from calibdb at /PHOTON_BEAM/microscope/scaled_energy_range" << std::endl;
52 for (
unsigned int i=0; i < result2.size(); ++i) {
53 int column = (result2[i])[
"column"];
static const double kFiberLength
static const double kFiberWidth
double getEhigh(unsigned int column) const
static const unsigned int kRowCount
double m_column_xhigh[TAGM_MAX_COLUMN+1]
bool E_to_column(double E, unsigned int &column) const
DTAGMGeometry(JEventLoop *loop)
double getElow(unsigned int column) const
double m_column_xlow[TAGM_MAX_COLUMN+1]
static const unsigned int kColumnCount
double m_endpoint_energy_GeV