CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/CondFormats/OptAlignObjects/src/OpticalAlignMeasurementInfo.cc

Go to the documentation of this file.
00001 #include "CondFormats/OptAlignObjects/interface/OpticalAlignMeasurementInfo.h"
00002 
00003 #include <iostream>
00004 #include <iomanip>
00005 
00006 std::ostream & operator<<(std::ostream & os, const OpticalAlignMeasurementInfo & r)
00007 {
00008   os << "Name: " << r.name_ << " Type: " << r.type_ << "  ID: " << r.ID_ << std::endl;
00009   int iw = os.width(); // save current width
00010   int ip = os.precision(); // save current precision
00011   int now = 12;
00012   int nop = 5;
00013 
00014   std::vector<std::string>::const_iterator item;
00015 
00016   for(item = r.measObjectNames_.begin(); item != r.measObjectNames_.end(); item++ ){
00017     os << std::setw( now ) << std::setprecision( nop ) << "measuring object name: " << *item << std::endl;
00018   }
00019 
00020   std::vector<OpticalAlignParam>::const_iterator iteo;
00021   for( iteo = r.values_.begin(); iteo != r.values_.end(); iteo++ ){
00022     os << std::setw( now ) << std::setprecision( nop ) << "MEAS: " << *iteo;
00023   }
00024 
00025   os << std::setprecision( ip ) << std::setw( iw );
00026   return os;
00027 }
00028 
00029