Changeset 2346 in Sophya for trunk/SophyaLib/Samba/mlobe.cc


Ignore:
Timestamp:
Mar 18, 2003, 11:25:13 AM (23 years ago)
Author:
ansari
Message:

Correction declaration ostream << ds MainLobe - Reza+cmv 18/03/2003

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/Samba/mlobe.cc

    r2213 r2346  
    214214/* --Methode-- */
    215215//++
    216 ostream& operator << (ostream& s, MainLobe const& lob)
    217 //
    218 //--
    219 {
    220 s << "MainLobe_Info() : Sigma= " << lob.mSigma << " Dels= " << lob.mDels << " NC= "
    221   << lob.mNC << " NTotPix= " << lob.mNpix << " Integ= " << lob.mTotVal << endl;
     216void MainLobe::Print(ostream& os) const
     217//
     218//--
     219{
     220os << "MainLobe_Info() : Sigma= " << mSigma << " Dels= " << mDels << " NC= "
     221  << mNC << " NTotPix= " << mNpix << " Integ= " << mTotVal << endl;
    222222
    223223int i,j,k;
    224 cout << " Direction Teta,Phi = " << lob.mDirTet << " , " << lob.mDirPhi << endl;     
    225 cout << " Pixel 0 , Teta= " << lob.mT0[0] << " Phi= " << lob.mP0[0]
    226      << " Val= " << lob.mVal[0] << endl;
     224os << " Direction Teta,Phi = " << mDirTet << " , " << mDirPhi << endl;     
     225os << " Pixel 0 , Teta= " << mT0[0] << " Phi= " << mP0[0]
     226     << " Val= " << mVal[0] << endl;
    227227k = 1;
    228 for(i=1; i<lob.mNC; i++) {
    229   cout << " Couche # " << i << " NPix= " << i*6 << endl;
     228for(i=1; i<mNC; i++) {
     229  os << " Couche # " << i << " NPix= " << i*6 << endl;
    230230  for(j=0;j<6*i;j++) {
    231     cout << "K= " << k << "Teta,Phi= "  << lob.mTC[k] << ", " << lob.mPC[k]
    232          << " (" << lob.mT0[k] << ", " << lob.mP0[k] << ") "
    233          << " Val= " << lob.mVal[k] << endl;
     231    os << "K= " << k << "Teta,Phi= "  << mTC[k] << ", " << mPC[k]
     232         << " (" << mT0[k] << ", " << mP0[k] << ") "
     233         << " Val= " << mVal[k] << endl;
    234234    k++;
    235235    }
    236236  }
    237237
    238 
    239 return s;
    240 }
    241 
     238}
     239
Note: See TracChangeset for help on using the changeset viewer.