CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
OpticalAlignMeasurementInfo.h File Reference
#include "CondFormats/Serialization/interface/Serializable.h"
#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_, fileCollector::now, OpticalAlignMeasurementInfo::type_, and OpticalAlignMeasurementInfo::values_.

7 {
8  os << "Name: " << r.name_ << " Type: " << r.type_ << " ID: " << r.ID_ << std::endl;
9  int iw = os.width(); // save current width
10  int ip = os.precision(); // save current precision
11  int now = 12;
12  int nop = 5;
13 
14  std::vector<std::string>::const_iterator item;
15 
16  for(item = r.measObjectNames_.begin(); item != r.measObjectNames_.end(); item++ ){
17  os << std::setw( now ) << std::setprecision( nop ) << "measuring object name: " << *item << std::endl;
18  }
19 
20  std::vector<OpticalAlignParam>::const_iterator iteo;
21  for( iteo = r.values_.begin(); iteo != r.values_.end(); iteo++ ){
22  os << std::setw( now ) << std::setprecision( nop ) << "MEAS: " << *iteo;
23  }
24 
25  os << std::setprecision( ip ) << std::setw( iw );
26  return os;
27 }