16 using namespace cms_rounding;
32 : m_label(iConfig.getUntrackedParameter<
string>(
"fromDataLabel",
"")),
39 LogVerbatim(
"DTGeometryTest") <<
" Geometry node for DTGeom is " << (pDD.
isValid() ?
"valid" :
"not valid");
40 LogVerbatim(
"DTGeometryTest") <<
" I have " << pDD->detTypes().size() <<
" detTypes";
41 LogVerbatim(
"DTGeometryTest") <<
" I have " << pDD->detUnits().size() <<
" detUnits";
42 LogVerbatim(
"DTGeometryTest") <<
" I have " << pDD->dets().size() <<
" dets";
43 LogVerbatim(
"DTGeometryTest") <<
" I have " << pDD->layers().size() <<
" layers";
44 LogVerbatim(
"DTGeometryTest") <<
" I have " << pDD->superLayers().size() <<
" superlayers";
45 LogVerbatim(
"DTGeometryTest") <<
" I have " << pDD->chambers().size() <<
" chambers";
51 for (
auto det : pDD->chambers()) {
53 log <<
"Chamber " << det->id() <<
" Position " << surf.position() <<
" normVect "
54 <<
roundVecIfNear0(surf.normalVector()) <<
" bounds W/H/L: " << surf.bounds().width() <<
"/"
55 << surf.bounds().thickness() <<
"/" << surf.bounds().length() <<
"\n";
63 for (
auto det : pDD->superLayers()) {
65 log <<
"SuperLayer " << det->id() <<
" chamber " << det->chamber()->id() <<
" Position " << surf.position()
66 <<
" normVect " <<
roundVecIfNear0(surf.normalVector()) <<
" bounds W/H/L: " << surf.bounds().width() <<
"/"
67 << surf.bounds().thickness() <<
"/" << surf.bounds().length() <<
"\n";
76 for (
auto det : pDD->layers()) {
77 const DTTopology& topo = det->specificTopology();
79 log <<
"Layer " << det->id() <<
" SL " << det->superLayer()->id() <<
" chamber " << det->chamber()->id()
82 <<
" Position " << surf.position() <<
" normVect " <<
roundVecIfNear0(surf.normalVector())
83 <<
" bounds W/H/L: " << surf.bounds().width() <<
"/" << surf.bounds().thickness() <<
"/"
84 << surf.bounds().length() <<
"\n";
Log< level::Info, true > LogVerbatim
constexpr valType roundVecIfNear0(valType value, double tolerance=1.e-7)
static std::vector< std::string > checklist log
#define DEFINE_FWK_MODULE(type)
float cellWidth() const
Returns the cell width.
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
int firstChannel() const
Returns the wire number of the first wire.
int lastChannel() const
Returns the wire number of the last wire.
void analyze(Event const &iEvent, EventSetup const &) override
float cellHeight() const
Returns the cell height.
int channels() const
Returns the number of wires in the layer.
ESTransientHandle< T > getTransientHandle(const ESGetToken< T, R > &iToken) const
const edm::ESGetToken< DTGeometry, MuonGeometryRecord > m_token
DTGeometryTest(const ParameterSet &)