Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8510
b: "refs/heads/CMSSW_7_2_X"
c: 42abba6
h: "refs/heads/CMSSW_7_2_X"
v: v3
  • Loading branch information
Paolo Meridiani committed May 17, 2006
1 parent 88700ec commit 3722309
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
"refs/heads/CMSSW_7_2_X": 67c774ccb46a2b8c7286346d3f878708d2635491
"refs/heads/CMSSW_7_2_X": 42abba6281abd2e204b107202cd45212a30c9f2b
8 changes: 7 additions & 1 deletion trunk/Geometry/CaloEventSetup/test/CaloGeometryAnalyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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<const TruncatedPyramid*>(cell)->getPosition(5.) << std::endl;
f << " // Return position is " << EBDetId(geom->getClosestCell(dynamic_cast<const TruncatedPyramid*>(cell)->getPosition(5.))) << std::endl;
}
if (subdetn == EcalEndcap)
f << " // " << EEDetId(*i) << std::endl;
if (subdetn == EcalPreshower)
Expand Down

0 comments on commit 3722309

Please sign in to comment.