From 37223098fc48691accbb1bfa5e5c0e1842092654 Mon Sep 17 00:00:00 2001 From: Paolo Meridiani Date: Wed, 17 May 2006 09:30:05 +0000 Subject: [PATCH] --- yaml --- r: 8510 b: "refs/heads/CMSSW_7_2_X" c: 42abba6281abd2e204b107202cd45212a30c9f2b h: "refs/heads/CMSSW_7_2_X" v: v3 --- [refs] | 2 +- .../Geometry/CaloEventSetup/test/CaloGeometryAnalyzer.cc | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index d5516e0f93d42..944b2a302f9dc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -"refs/heads/CMSSW_7_2_X": 67c774ccb46a2b8c7286346d3f878708d2635491 +"refs/heads/CMSSW_7_2_X": 42abba6281abd2e204b107202cd45212a30c9f2b diff --git a/trunk/Geometry/CaloEventSetup/test/CaloGeometryAnalyzer.cc b/trunk/Geometry/CaloEventSetup/test/CaloGeometryAnalyzer.cc index f16bcdfd68086..94b37ee2f1e7b 100644 --- a/trunk/Geometry/CaloEventSetup/test/CaloGeometryAnalyzer.cc +++ b/trunk/Geometry/CaloEventSetup/test/CaloGeometryAnalyzer.cc @@ -30,6 +30,7 @@ #include "Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h" #include "Geometry/CaloGeometry/interface/CaloGeometry.h" #include "Geometry/CaloGeometry/interface/CaloCellGeometry.h" +#include "Geometry/CaloGeometry/interface/TruncatedPyramid.h" #include "Geometry/Records/interface/IdealGeometryRecord.h" #include "DataFormats/HcalDetId/interface/HcalDetId.h" #include "DataFormats/EcalDetId/interface/EcalSubdetector.h" @@ -101,7 +102,12 @@ void CaloGeometryAnalyzer::build(const CaloGeometry& cg, DetId::Detector det, in if (det == DetId::Ecal) { if (subdetn == EcalBarrel) - f << " // " << EBDetId(*i) << std::endl; + { + f << " // " << EBDetId(*i) << std::endl; + + f << " // Checking getClosestCell for position " << dynamic_cast(cell)->getPosition(5.) << std::endl; + f << " // Return position is " << EBDetId(geom->getClosestCell(dynamic_cast(cell)->getPosition(5.))) << std::endl; + } if (subdetn == EcalEndcap) f << " // " << EEDetId(*i) << std::endl; if (subdetn == EcalPreshower)