Ignore:
Timestamp:
Jun 5, 2003, 10:15:47 AM (22 years ago)
Author:
aubourg
Message:

pio avec JMD a cote!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/piotoirdr.cc

    r2397 r2398  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: piotoirdr.cc,v 1.9 2003-06-05 02:18:06 aubourg Exp $
     5// $Id: piotoirdr.cc,v 1.10 2003-06-05 08:15:47 aubourg Exp $
    66
    77#include "piotoirdr.h"
     
    2828void PIOTOIReader::init() {
    2929  fits_lock();
    30   pioGroup = PIOOpenTOI(const_cast<char*>(group.c_str()), "r");
     30  char groupname[128];
     31  strcpy(groupname, group.c_str());
     32  pioGroup = PIOOpenTOI(groupname, "r");
     33 
     34  if (pioGroup == NULL) {
     35    cerr << " ERROR in PIOOpenTOI cannnot open " << groupname << endl;
     36    abort();
     37  }
    3138  fits_unlock();
     39  cout << "pioGroup : "<< pioGroup << endl;
    3240  readBounds();
    3341  bufferSize = 1000;
    34   cout << "PIOTOIReader : opened " << group
    35        << " " <<  snBegin << " - " << snEnd << endl;
     42  cout << "PIOTOIReader : opened " << groupname
     43       << " " <<  snBegin << " - " << snEnd << ": " << pioGroup << endl;
    3644  if (flagdef != "") {
    3745    cout << "   with flagdef = " << flagdef << endl;
Note: See TracChangeset for help on using the changeset viewer.