CMS 3D CMS Logo

Functions
MTDDetSector.cc File Reference
#include "RecoMTD/DetLayers/interface/MTDDetSector.h"
#include "DataFormats/ForwardDetId/interface/ETLDetId.h"
#include "Geometry/CommonDetUnit/interface/GeomDet.h"
#include "TrackingTools/GeomPropagators/interface/Propagator.h"
#include "TrackingTools/DetLayers/interface/MeasurementEstimator.h"
#include "MTDDiskSectorBuilderFromDet.h"
#include "DataFormats/GeometrySurface/interface/RectangularPlaneBounds.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iostream>
#include <iomanip>
#include <vector>
#include "DataFormats/Math/interface/Rounding.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const MTDDetSector &id)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const MTDDetSector id 
)

Definition at line 183 of file MTDDetSector.cc.

References alignBH_cfg::fixed, recoMuon::in, interestingEgammaIsoDetIdsSequence_cff::innerRadius, interestingEgammaIsoDetIdsSequence_cff::outerRadius, PVValHelper::phi, position, cms_rounding::roundIfNear0(), cms_rounding::roundVecIfNear0(), contentValuesCheck::ss, Calorimetry_cff::thickness, and ApeEstimator_cff::width.

183  {
184  auto fround = [&](double in) {
185  std::stringstream ss;
186  ss << std::fixed << std::setprecision(3) << std::setw(14) << roundIfNear0(in);
187  return ss.str();
188  };
189 
190  os << " MTDDetSector at " << std::fixed << std::setprecision(3) << roundVecIfNear0(id.specificSurface().position())
191  << std::endl
192  << " L/W/T : " << fround(id.specificSurface().bounds().length()) << " / "
193  << fround(id.specificSurface().bounds().width()) << " / " << fround(id.specificSurface().bounds().thickness())
194  << std::endl
195  << " rmin : " << fround(id.specificSurface().innerRadius()) << std::endl
196  << " rmax : " << fround(id.specificSurface().outerRadius()) << std::endl
197  << " phi ref : " << fround(id.specificSurface().position().phi()) << std::endl
198  << " phi w/2 : " << fround(id.specificSurface().phiHalfExtension()) << std::endl;
199  return os;
200 }
constexpr valType roundVecIfNear0(valType value, double tolerance=1.e-7)
Definition: Rounding.h:18
constexpr valType roundIfNear0(valType value, double tolerance=1.e-7)
Definition: Rounding.h:11
static int position[264][3]
Definition: ReadPGInfo.cc:289