51int main(
int argc,
char **argv)
68 JParser<> zap(
"Auxiliary application to plot PMT parameters.");
71 zap[
'P'] =
make_field(inputFile,
"PMT calibration data file(s)");
73 zap[
'r'] =
make_field(
regexp,
"regular expresion to extract bin labels for the x-axis") =
"";
81 catch(
const exception &error) {
109 NUMBER_OF_PMTS, -0.5, NUMBER_OF_PMTS - 0.5));
122 manager->GetXaxis()->SetBinLabel(i+1 , parse(buffer, TString(inputFile[i].c_str())));
124 manager->GetXaxis()->SetBinLabel(i+1 ,
" ");
132 for (
int pmt = 0; pmt != NUMBER_OF_PMTS; ++pmt) {
140 for (JProperties::const_iterator p = properties.begin(); p != properties.end(); ++p) {
144 try { value = (p->second.getValue<
const double>()); }
catch(
const exception& error) {}
145 try { value = (p->second.getValue<
const bool>() ? 1.0 : 0.0); }
catch(
const exception& error) {}
147 if (i == 0) { buffer[p->first] = value; }
148 if (
relative) { value -= buffer[p->first]; }
153 double value = getEfficiency(parameters[i].getPMTParameters(
JPMTIdentifier(
module->getID(), pmt)));
163 for (JManager<string, TH2D>::iterator i =
manager.begin(); i !=
manager.end(); ++i) {
171 for (JManager<string, TH2D>::iterator i =
manager.begin(); i !=
manager.end(); ++i) {
177 setAxisLabels(*i->second,
"Y",
demo.get(
id));