Skip to content

Commit

Permalink
Fix the issue of 2026D94 which can now work in the dd4hep version
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Feb 21, 2023
1 parent 65b94be commit d3c7d21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import FWCore.ParameterSet.Config as cms

from Geometry.HGCalCommonData.hgcalEEParametersInitialize_cfi import *
from Geometry.HGCalCommonData.hgcalEEParametersInitialization_cfi import *

hfnoseParametersInitialize = hgcalEEParametersInitialize.clone(
name = "HGCalHFNoseSensitive",
Expand All @@ -10,9 +10,3 @@
nameT = "HFNose",
nameX = "HGCalHFNoseSensitive"
)

from Configuration.ProcessModifiers.dd4hep_cff import dd4hep

dd4hep.toModify(hfnoseParametersInitialize,
fromDD4hep = True
)
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ HGCalNumberingInitialization::~HGCalNumberingInitialization() {}

// ------------ method called to produce the data ------------
HGCalNumberingInitialization::ReturnType HGCalNumberingInitialization::produce(const IdealGeometryRecord& iRecord) {
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HGCalGeom") << "in HGCalNumberingInitialization::produce for " << name_;
#endif
const auto& pHGpar = iRecord.get(hgParToken_);
return std::make_unique<HGCalDDDConstants>(&pHGpar, name_);
}
Expand Down

0 comments on commit d3c7d21

Please sign in to comment.