CMS 3D CMS Logo

Functions
CTPPSRPAlignmentCorrectionData.cc File Reference
#include "FWCore/Utilities/interface/Exception.h"
#include "CondFormats/CTPPSReadoutObjects/interface/CTPPSRPAlignmentCorrectionData.h"
#include <Math/RotationZYX.h>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const CTPPSRPAlignmentCorrectionData &corr)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const CTPPSRPAlignmentCorrectionData corr 
)

Definition at line 74 of file CTPPSRPAlignmentCorrectionData.cc.

References alignBH_cfg::fixed, CTPPSRPAlignmentCorrectionData::getRotX(), CTPPSRPAlignmentCorrectionData::getRotXUnc(), CTPPSRPAlignmentCorrectionData::getRotY(), CTPPSRPAlignmentCorrectionData::getRotYUnc(), CTPPSRPAlignmentCorrectionData::getRotZ(), CTPPSRPAlignmentCorrectionData::getRotZUnc(), CTPPSRPAlignmentCorrectionData::getShX(), CTPPSRPAlignmentCorrectionData::getShXUnc(), CTPPSRPAlignmentCorrectionData::getShY(), CTPPSRPAlignmentCorrectionData::getShYUnc(), CTPPSRPAlignmentCorrectionData::getShZ(), CTPPSRPAlignmentCorrectionData::getShZUnc(), and alignCSCRings::s.

75 {
76  s << fixed
77  << "shift (um) " << std::setprecision(1)
78  << "x = " << corr.getShX()*1E3 << " +- " << corr.getShXUnc()*1E3
79  << ", y = " << corr.getShY()*1E3 << " +- " << corr.getShYUnc()*1E3
80  << ", z = " << corr.getShZ()*1E3 << " +- " << corr.getShZUnc()*1E3
81  << ", rotation (mrad) " << std::setprecision(1)
82  << "x = " << corr.getRotX()*1E3 << " +- " << corr.getRotXUnc()*1E3
83  << ", y = " << corr.getRotY()*1E3 << " +- " << corr.getRotYUnc()*1E3
84  << ", z = " << corr.getRotZ()*1E3 << " +- " << corr.getRotZUnc()*1E3;
85 
86  return s;
87 }