Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sunanda
committed
Apr 29, 2020
1 parent
db247f0
commit 7134f71
Showing
11 changed files
with
98 additions
and
96 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
Geometry/MuonNumbering/interface/MuonGeometryConstantsBuild.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef MuonNumbering_MuonGeometryConstantsBuild_h | ||
#define MuonNumbering_MuonGeometryConstantsBuild_h | ||
|
||
#include <string> | ||
#include <vector> | ||
#include "DetectorDescription/Core/interface/DDCompactView.h" | ||
#include "DetectorDescription/DDCMS/interface/DDCompactView.h" | ||
|
||
class MuonGeometryConstants; | ||
|
||
class MuonGeometryConstantsBuild { | ||
public: | ||
MuonGeometryConstantsBuild() {} | ||
|
||
bool build(const DDCompactView* cpv, MuonGeometryConstants& php); | ||
bool build(const cms::DDCompactView* cpv, MuonGeometryConstants& php); | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...nNumbering/python/muonDDDConstants_cff.py → ...ering/python/muonGeometryConstants_cff.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from Geometry.MuonNumbering.muonDDDConstants_cfi import * | ||
from Geometry.MuonNumbering.muonGeometryConstants_cfi import * | ||
|
||
from Configuration.ProcessModifiers.dd4hep_cff import dd4hep | ||
|
||
dd4hep.toModify(muonDDDConstants, | ||
dd4hep.toModify(muonGeometryConstants, | ||
fromDD4Hep = cms.bool(True), | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include "Geometry/MuonNumbering/interface/MuonGeometryConstants.h" | ||
|
||
#include "FWCore/MessageLogger/interface/MessageLogger.h" | ||
#include "FWCore/Utilities/interface/Exception.h" | ||
|
||
#define EDM_ML_DEBUG | ||
|
||
int MuonGeometryConstants::getValue(const std::string& name) const { | ||
#ifdef EDM_ML_DEBUG | ||
edm::LogVerbatim("Geometry") << "about to look for ... " << name << std::endl; | ||
#endif | ||
if (namesAndValues_.empty()) | ||
throw cms::Exception("GeometryBuildFailure", "MuonGeometryConstants does not have requested value for " + name); | ||
|
||
std::map<std::string, int>::const_iterator findIt = namesAndValues_.find(name); | ||
if (findIt == namesAndValues_.end()) | ||
throw cms::Exception("GeometryBuildFailure", "MuonGeometryConstants does not have requested value for " + name); | ||
|
||
#ifdef EDM_ML_DEBUG | ||
edm::LogVerbatim("Geometry") << "MuonGeometryConstants::Value for " << name << " is " << findIt->second; | ||
#endif | ||
return findIt->second; | ||
} | ||
|
||
void MuonGeometryConstants::addValue(const std::string& name, const int& value) { namesAndValues_[name] = value; } | ||
|
||
#include "FWCore/Utilities/interface/typelookup.h" | ||
|
||
TYPELOOKUP_DATA_REG(MuonGeometryConstants); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters