91 desc.
add<
bool>(
"fromDDD",
true);
92 desc.
add<
bool>(
"fromDD4hep",
false);
93 desc.
add<
bool>(
"applyAlignment",
false);
95 descriptions.
add(
"gemGeometry", desc);
99 auto gemGeometry = std::make_unique<GEMGeometry>();
102 edm::LogVerbatim(
"GEMGeometry") <<
"GEMGeometryESModule::produce :: GEMGeometryBuilder builder ddd";
106 builder.
build(*gemGeometry, cpv.product(), mdc);
108 edm::LogVerbatim(
"GEMGeometry") <<
"GEMGeometryESModule::produce :: GEMGeometryBuilder builder dd4hep";
114 edm::LogVerbatim(
"GEMGeometry") <<
"GEMGeometryESModule::produce :: GEMGeometryBuilder builder db";
117 builder.
build(*gemGeometry, riggem);
126 if (alignments.empty() && alignmentErrors.empty() && globalPosition.empty()) {
127 edm::LogInfo(
"Config") <<
"@SUB=GEMGeometryRecord::produce"
129 <<
"') empty: it is assumed fake and will not apply.";
Log< level::Info, true > LogVerbatim
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
edm::ESGetToken< AlignmentErrorsExtended, GEMAlignmentErrorExtendedRcd > alignmentErrorsToken_
Class to update a given geometry with a set of alignments.
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > dd4hepcpvToken_
void applyAlignments(const C *geometry, const Alignments *alignments, const AlignmentErrorsExtended *alignmentErrors, const AlignTransform &globalCoordinates)
std::unique_ptr< GEMGeometry > produce(const MuonGeometryRecord &record)
Produce GEMGeometry.
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
void build(GEMGeometry &theGeometry, const DDCompactView *cview, const MuonGeometryConstants &muonConstants)
edm::ESGetToken< Alignments, GlobalPositionRcd > globalPositionToken_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::ESGetToken< MuonGeometryConstants, IdealGeometryRecord > mdcToken_
Log< level::Info, false > LogInfo
static void fillDescriptions(edm::ConfigurationDescriptions &)
Define the cfi file.
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvToken_
GEMGeometryESModule(const edm::ParameterSet &p)
Constructor.
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
edm::ESGetToken< RecoIdealGeometry, GEMRecoGeometryRcd > riggemToken_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
T const * product() const
const AlignTransform & DetectorGlobalPosition(const Alignments &allGlobals, const DetId &id)
edm::ESGetToken< Alignments, GEMAlignmentRcd > alignmentsToken_
const std::string alignmentsLabel_
void build(GEMGeometry &theGeometry, const RecoIdealGeometry &rgeo)