31int main(
int argc, 
char **argv)
 
   37  const char* 
const address_t  =  
"address";
 
   38  const char* 
const index_t    =  
"index";
 
   50    zap[
'f'] = 
make_field(inputFile,         
"1st output of JMergeCalibrateK40 and 2nd output of JFitK40");
 
   52    zap[
'a'] = 
make_field(detectorFile,      
"detector file.");
 
   53    zap[
'O'] = 
make_field(option,            
"axis label")               = address_t, index_t;
 
   58  catch(
const exception &error) {
 
   59    FATAL(error.what() << endl);
 
   75  TFile* in[] = { NULL, NULL };
 
   77  for (
int i = 0; i != 2; ++i) {
 
   79    in[i] = TFile::Open(inputFile[i].c_str(), 
"exist");
 
   81    if (in[i] == NULL || !in[i]->IsOpen()) {
 
   82      FATAL(
"File: " << inputFile[i] << 
" not opened." << endl);
 
   89  for (JDetector::iterator module = 
detector.begin(); module != 
detector.end(); ++module) {
 
   91    if (module->getFloor() == 0) { 
 
   96      (TH2D*) in[0]->Get(
MAKE_CSTRING(module->getID() << _2R)),
 
  100    if (h2[0] == NULL || h2[0]->GetEntries() == 0 ||
 
  101        h2[1] == NULL || h2[1]->GetEntries() == 0) {
 
  105    DEBUG(
"Module " << setw(10) << module->getID() << 
' ' << getLabel(module->getLocation()) << endl);
 
  112            h2[0]->GetXaxis()->GetNbins(), h2[0]->GetXaxis()->GetXmin(), h2[0]->GetXaxis()->GetXmax());
 
  115            NUMBER_OF_PMTS, -0.5, NUMBER_OF_PMTS - 0.5, 
 
  116            NUMBER_OF_PMTS, -0.5, NUMBER_OF_PMTS - 0.5);
 
  118    for (
int ix = 1; ix <= h2[0]->GetXaxis()->GetNbins(); ++ix) {
 
  127      for (
int iy = 1; iy <= h2[0]->GetYaxis()->GetNbins(); ++iy) {
 
  129        const double y1 = h2[0]->GetBinContent(ix,iy);
 
  130        const double w1 = h2[0]->GetBinError  (ix,iy);
 
  131        const double f1 = h2[1]->GetBinContent(ix,iy);
 
  145        h1.SetBinContent(ix, V);
 
  147        hx.Fill(
pair.first,  
pair.second, V);
 
  148        hx.Fill(
pair.second, 
pair.first,  V);
 
  151      DEBUG(setw(3) << ix << 
' ' 
  152            << 
"(" << 
FILL(2,
'0') << 
pair.first              << 
"," << 
FILL(2,
'0') << 
pair.second              << 
")" << 
FILL() << 
' ' 
  154            << 
FIXED(9,2) << Y << 
' ' 
  155            << 
FIXED(9,2) << F << 
' ' 
  156            << 
FIXED(9,2) << V << 
' ' << (fabs(V) > 3.0 ? 
"***" : 
"") <<endl);
 
  159    if (option == address_t) {
 
  160      setAxisLabels(hx, 
"X", memo);
 
  161      setAxisLabels(hx, 
"Y", memo);
 
  167  for (
int i = 0; i != 2; ++i) {