Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:23

0001 #include "CondFormats/OptAlignObjects/interface/OpticalAlignMeasurementInfo.h"
0002 
0003 #include <iostream>
0004 #include <iomanip>
0005 
0006 std::ostream& operator<<(std::ostream& os, const OpticalAlignMeasurementInfo& r) {
0007   os << "Name: " << r.name_ << " Type: " << r.type_ << "  ID: " << r.ID_ << std::endl;
0008   int iw = os.width();      // save current width
0009   int ip = os.precision();  // save current precision
0010   int now = 12;
0011   int nop = 5;
0012 
0013   std::vector<std::string>::const_iterator item;
0014 
0015   for (item = r.measObjectNames_.begin(); item != r.measObjectNames_.end(); item++) {
0016     os << std::setw(now) << std::setprecision(nop) << "measuring object name: " << *item << std::endl;
0017   }
0018 
0019   std::vector<OpticalAlignParam>::const_iterator iteo;
0020   for (iteo = r.values_.begin(); iteo != r.values_.end(); iteo++) {
0021     os << std::setw(now) << std::setprecision(nop) << "MEAS: " << *iteo;
0022   }
0023 
0024   os << std::setprecision(ip) << std::setw(iw);
0025   return os;
0026 }