Changeset 527


Ignore:
Timestamp:
Sep 24, 2011, 2:01:52 PM (13 years ago)
Author:
campagne
Message:

1) do always the Raw spectra, 2) raw ON - OFF for the mean on cycles/channel too (jec)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BAORadio/AmasNancay/analyse.cc

    r524 r527  
    719719  }//end loop on mode for raw preocess
    720720
    721   if(debuglev_>1) {//save mean spectra on file
    722     cout << "Save mean raw spectra" << endl;
    723     string fileName;
    724     fileName = "./dataRaw_" + dateOfRun_ + "_" + StringToLower(sourceName_) + ".ppf";
    725 
    726     POutPersist fos(fileName);
    727     id=0;
    728     iSpectreEnd = spectreCollect.end();
    729     for (iSpectre = spectreCollect.begin();
    730          iSpectre != iSpectreEnd ; ++iSpectre, ++id) {
    731       tag = "specRaw";
    732       tag += (iSpectre->first).first;
    733       stringstream sid;
    734       sid << (iSpectre->first).second;
    735       tag += sid.str();
    736       if(debuglev_>9) {
    737         cout << "save tag<" << tag << ">" << endl;
    738       }
    739       fos << PPFNameTag(tag) << iSpectre->second;
    740     }
    741   }//end of save fits
     721  //JEC 23/9/11 DO IT
     722  //  if(debuglev_>1) {//save mean spectra on file
     723  cout << "Save mean raw spectra" << endl;
     724  string fileName;
     725  fileName = "./dataRaw_" + dateOfRun_ + "_" + StringToLower(sourceName_) + ".ppf";
     726
     727  POutPersist fos(fileName);
     728  id=0;
     729  iSpectreEnd = spectreCollect.end();
     730  for (iSpectre = spectreCollect.begin();
     731       iSpectre != iSpectreEnd ; ++iSpectre, ++id) {
     732    tag = "specRaw";
     733    tag += (iSpectre->first).first;
     734    stringstream sid;
     735    sid << (iSpectre->first).second;
     736    tag += sid.str();
     737    if(debuglev_>9) {
     738      cout << "save tag<" << tag << ">" << endl;
     739    }
     740    fos << PPFNameTag(tag) << iSpectre->second;
     741  }
     742    //  }//end of save fits
    742743 
    743744
     
    866867  }//end of save fits
    867868
     869 
     870  cout << "OK rawOnOff finished" <<endl;
    868871  return rc;
    869872} //ProcessONOFFRawData::processCmd
     
    11501153    fos << PPFNameTag("specONOFF2ChanMean") << meanOfChan;
    11511154  }//end of save fits
     1155
     1156  cout << "OK dataOnOff finished";
    11521157
    11531158  return rc;
Note: See TracChangeset for help on using the changeset viewer.