CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/CondFormats/OptAlignObjects/interface/OpticalAlignMeasurementInfo.h File Reference

#include <string>
#include <vector>
#include <iostream>
#include "CondFormats/OptAlignObjects/interface/OAQuality.h"
#include "CondFormats/OptAlignObjects/interface/OpticalAlignInfo.h"

Go to the source code of this file.

Classes

class  OpticalAlignMeasurementInfo

Functions

std::ostream & operator<< (std::ostream &, const OpticalAlignMeasurementInfo &)

Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const OpticalAlignMeasurementInfo  
)

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;
}