CMS 3D CMS Logo

Classes | Functions
CTPPSRPAlignmentCorrectionsData.h File Reference
#include "CondFormats/CTPPSReadoutObjects/interface/CTPPSRPAlignmentCorrectionData.h"
#include <map>

Go to the source code of this file.

Classes

class  CTPPSRPAlignmentCorrectionsData
 Container for CTPPS RP alignment corrections. The corrections are stored on two levels - RP and sensor. For every level, there is a map: ID –> alignment correction. Sensors inherit the alignment corrections from the corresponding RP, see getFullSensorCorrection method. More...
 

Functions

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

Function Documentation

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

Definition at line 141 of file CTPPSRPAlignmentCorrectionsData.cc.

References CTPPSRPAlignmentCorrectionsData::getRPMap(), CTPPSRPAlignmentCorrectionsData::getSensorMap(), AlCaHLTBitMon_ParallelJobs::p, and alignCSCRings::s.

142 {
143  for (const auto &p : corr.getRPMap())
144  {
145  s << "RP " << p.first << ": " << p.second << std::endl;
146  }
147 
148  for (const auto &p : corr.getSensorMap())
149  {
150  s << "sensor " << p.first << ": " << p.second << std::endl;
151  }
152 
153  return s;
154 }
const mapType & getRPMap() const
returns the map of RP alignment corrections
const mapType & getSensorMap() const
returns the map of sensor alignment corrections