Skip to content

Commit

Permalink
Merge pull request #32551 from vargasa/cmfix
Browse files Browse the repository at this point in the history
[DD4hep] Tracker Use DD4hep Units Follow-up
  • Loading branch information
cmsbuild committed Dec 21, 2020
2 parents 1977d72 + 2afb7bb commit 0f97856
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -9,6 +9,8 @@
#include <TCanvas.h>
#include <TFrame.h>

#include <DD4hep/DD4hepUnits.h>

#include "FWCore/MessageLogger/interface/MessageLogger.h"

#include "DataFormats/GeometryVector/interface/GlobalPoint.h"
Expand Down Expand Up @@ -39,7 +41,7 @@ DD4hep_MaterialAccountingGroup::DD4hep_MaterialAccountingGroup(const std::string
if (firstChild) {
std::vector<std::vector<cms::Node*>> children = fv.children(k);
for (auto const& path : children) {
cms::Translation trans = fv.translation(path);
cms::Translation trans = fv.translation(path) / dd4hep::cm;
GlobalPoint gp = GlobalPoint(trans.x(), trans.y(), trans.z());
m_elements.emplace_back(gp);
edm::LogVerbatim("TrackerMaterialAnalysis")
Expand Down

0 comments on commit 0f97856

Please sign in to comment.