#include "CondFormats/OptAlignObjects/interface/OpticalAlignMeasurementInfo.h"
#include <iostream>
#include <iomanip>
Go to the source code of this file.
Functions | |
std::ostream & | operator<< (std::ostream &os, const OpticalAlignMeasurementInfo &r) |
std::ostream& operator<< | ( | std::ostream & | os, |
const OpticalAlignMeasurementInfo & | r | ||
) |
Definition at line 6 of file OpticalAlignMeasurementInfo.cc.
References OpticalAlignMeasurementInfo::ID_, OpticalAlignMeasurementInfo::measObjectNames_, OpticalAlignMeasurementInfo::name_, cmsPerfSuiteHarvest::now, OpticalAlignMeasurementInfo::type_, and OpticalAlignMeasurementInfo::values_.
{ os << "Name: " << r.name_ << " Type: " << r.type_ << " ID: " << r.ID_ << std::endl; int iw = os.width(); // save current width int ip = os.precision(); // save current precision int now = 12; int nop = 5; std::vector<std::string>::const_iterator item; for(item = r.measObjectNames_.begin(); item != r.measObjectNames_.end(); item++ ){ os << std::setw( now ) << std::setprecision( nop ) << "measuring object name: " << *item << std::endl; } std::vector<OpticalAlignParam>::const_iterator iteo; for( iteo = r.values_.begin(); iteo != r.values_.end(); iteo++ ){ os << std::setw( now ) << std::setprecision( nop ) << "MEAS: " << *iteo; } os << std::setprecision( ip ) << std::setw( iw ); return os; }