- Timestamp:
- Sep 24, 2011, 2:01:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BAORadio/AmasNancay/analyse.cc
r524 r527 719 719 }//end loop on mode for raw preocess 720 720 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 742 743 743 744 … … 866 867 }//end of save fits 867 868 869 870 cout << "OK rawOnOff finished" <<endl; 868 871 return rc; 869 872 } //ProcessONOFFRawData::processCmd … … 1150 1153 fos << PPFNameTag("specONOFF2ChanMean") << meanOfChan; 1151 1154 }//end of save fits 1155 1156 cout << "OK dataOnOff finished"; 1152 1157 1153 1158 return rc;
Note: See TracChangeset
for help on using the changeset viewer.