CMS 3D CMS Logo

Classes | Functions
MTDDetSector.h File Reference
#include "TrackingTools/DetLayers/interface/GeometricSearchDet.h"
#include "DataFormats/GeometrySurface/interface/BoundDiskSector.h"
#include "Geometry/MTDNumberingBuilder/interface/MTDTopology.h"
#include <ostream>

Go to the source code of this file.

Classes

class  MTDDetSector
 

Functions

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

Function Documentation

◆ operator<<()

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

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