CMS 3D CMS Logo

OpticalAlignInfo.h File Reference

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

Go to the source code of this file.

Classes

class  OpticalAlignInfo
 Author: Michael Case Date: Dec. More...
class  OpticalAlignParam
 a Class holding data for each parameter, the value, error and whether it is an unknown, calibrated or fixed parameter. More...

Functions

std::ostream & operator<< (std::ostream &, const OpticalAlignParam &)
std::ostream & operator<< (std::ostream &, const OpticalAlignInfo &)


Function Documentation

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

Definition at line 44 of file OpticalAlignInfo.cc.

References GenMuonPlsPt100GeV_cfg::cout, OpticalAlignParam::dim_type_, lat::endl(), OpticalAlignParam::error_, OpticalAlignParam::name_, OpticalAlignParam::quality_, and OpticalAlignParam::value_.

00045 {
00046   int iw = std::cout.width(); // save current width
00047   int ip = std::cout.precision(); // save current precision
00048   int now = 12;
00049   int nop = 5;
00050   os << std::setw( now ) << std::setprecision( nop ) << r.name_;
00051   os << std::setw( now ) << std::setprecision( nop ) << r.dim_type_;
00052   os << std::setw( now ) << std::setprecision( nop ) << r.value_;
00053   os << std::setw( now ) << std::setprecision( nop ) << r.error_;
00054   os << std::setw( now ) << std::setprecision( nop ) << r.quality_ << std::endl;
00055 
00056   // Reset the values we changed
00057   std::cout << std::setprecision( ip ) << std::setw( iw );
00058   return os;
00059 }

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

Definition at line 12 of file OpticalAlignInfo.cc.

References OpticalAlignInfo::angx_, OpticalAlignInfo::angy_, OpticalAlignInfo::angz_, lat::endl(), OpticalAlignInfo::extraEntries_, OpticalAlignInfo::ID_, max, OpticalAlignInfo::name_, OpticalAlignInfo::parentName_, OpticalAlignInfo::type_, OpticalAlignInfo::x_, OpticalAlignInfo::y_, and OpticalAlignInfo::z_.

00013 {
00014   os << "Name: " << r.name_ << std::endl;
00015   os << "Parent Name: " << r.parentName_ << std::endl; 
00016   os << "Type: " << r.type_ << "  ID: " << r.ID_ << std::endl;
00017   int iw = os.width(); // save current width
00018   int ip = os.precision(); // save current precision
00019   int now = 12;
00020   int nop = 5;
00021   os << std::setw( now ) << std::setprecision( nop ) << "member";
00022   os << std::setw( now ) << std::setprecision( nop ) << "dim_type";
00023   os << std::setw( now ) << std::setprecision( nop ) << "value";
00024   os << std::setw( now ) << std::setprecision( nop ) << "error";
00025   os << std::setw( now ) << std::setprecision( nop ) << "quality" << std::endl;
00026   os << std::setw( now ) << std::setprecision( nop ) << r.x_ << std::endl;
00027   os << std::setw( now ) << std::setprecision( nop ) << r.y_ << std::endl;
00028   os << std::setw( now ) << std::setprecision( nop ) << r.z_ << std::endl;
00029   os << std::setw( now ) << std::setprecision( nop ) << r.angx_ << std::endl;
00030   os << std::setw( now ) << std::setprecision( nop ) << r.angy_ << std::endl;
00031   os << std::setw( now ) << std::setprecision( nop ) << r.angz_ << std::endl;
00032   os <<  std::setw( now ) << std::setprecision( nop ) << "--- Extra Entries --- " << std::endl;
00033   size_t max = r.extraEntries_.size();
00034   size_t iE = 0;
00035   while ( iE < max ) {
00036     os << "[" << iE << "]" << r.extraEntries_[iE];
00037     iE++;
00038   }
00039   os << std::setprecision( ip ) << std::setw( iw );
00040   return os;
00041 }


Generated on Tue Jun 9 17:51:43 2009 for CMSSW by  doxygen 1.5.4