Changeset 4002 in Sophya


Ignore:
Timestamp:
Jun 14, 2011, 10:42:07 PM (13 years ago)
Author:
ansari
Message:

Suite (3) amelioration prog calcul correlation ADC-CRT, Reza 14/06/2011

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AddOn/TAcq/corrcrtadc.cc

    r4001 r4002  
    191191      sprintf(fname, "%s/adcdumpN%dF%d.bd",inoutpath.c_str(),adcids[ka],ifile);
    192192      fip[ka]=fopen(fname,"rb");
    193       if (fip[ka]==NULL)
     193      if (fip[ka]==NULL) {
    194194        cout << "ProcessADCFiles/ERROR opening file " << fname << " AdcId=" << adcids[ka] << " I=" << ifile << endl;
     195        throw IOExc(" ADC dump file open error!");
     196      }
    195197      else 
    196198        cout << "ProcessADCFiles/Info - file " << fname << " opened ... " << " AdcId=" << adcids[ka] << " I=" << ifile << endl;
     
    288290      sprintf(fname, "%s/adcdumpN%dF%d.bd",inoutpath.c_str(),adcids[ka],ifile);
    289291      fip[ka]=fopen(fname,"rb");
    290       if (fip[ka]==NULL)
     292      if (fip[ka]==NULL) {
    291293        cout << "ADCFiles2Histo/ERROR opening file " << fname << " AdcId=" << adcids[ka] << " I=" << ifile << endl;
     294        throw IOExc(" ADC dump file open error!");
     295      }
    292296      else 
    293297        cout << "ADCFiles2Histo/Info - file " << fname << " opened ... " << " AdcId=" << adcids[ka] << " I=" << ifile << endl;
Note: See TracChangeset for help on using the changeset viewer.