35 : alignmentsLabel_(p.getParameter<
std::
string>(
"alignmentsLabel")),
36 myLabel_(p.getParameter<
std::
string>(
"appendToDataLabel")),
37 fromDDD_(p.getParameter<
bool>(
"fromDDD"))
52 std::shared_ptr<DTGeometry>
61 [
this, &
host](
auto const& rec) {
66 [
this, &
host](
auto const& rec) {
83 if (alignments->
empty() && alignmentErrors->
empty() && globalPosition->
empty()) {
84 edm::LogInfo(
"Config") <<
"@SUB=DTGeometryRecord::produce" 85 <<
"Alignment(Error)s and global position (label '" 87 <<
"'" <<
myLabel_ <<
"') assumes fake and does not apply.";
91 &(*alignments), &(*alignmentErrors),
101 std::shared_ptr<HostType>&
host) {
115 builder.
build(host, &(*cpv), *mdc);
119 std::shared_ptr<HostType>&
host ) {
130 builder.
build(host, *rig);
T getParameter(std::string const &) const
std::shared_ptr< DTGeometry > produce(const MuonGeometryRecord &record)
Produce DTGeometry.
bool empty() const
Test of empty vector without having to look into internals:
Class to update a given geometry with a set of alignments.
edm::ReusableObjectHolder< HostType > holder_
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
~DTGeometryESModule() override
Destructor.
const std::string myLabel_
const DepRecordT getRecord() const
void get(HolderT &iHolder) const
const std::string alignmentsLabel_
edm::ESProductHost< DTGeometry, MuonNumberingRecord, DTRecoGeometryRcd > HostType
void setupDBGeometry(DTRecoGeometryRcd const &, std::shared_ptr< HostType > &)
void applyAlignments(C *geometry, const Alignments *alignments, const AlignmentErrorsExtended *alignmentErrors, const AlignTransform &globalCoordinates)
void setupGeometry(MuonNumberingRecord const &, std::shared_ptr< HostType > &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
bool empty() const
Test of empty vector without having to look into internals:
void build(std::shared_ptr< DTGeometry > theGeometry, const DDCompactView *cview, const MuonDDDConstants &muonConstants)
const AlignTransform & DetectorGlobalPosition(const Alignments &allGlobals, const DetId &id)
DTGeometryESModule(const edm::ParameterSet &p)
Constructor.
void build(const std::shared_ptr< DTGeometry > &theGeometry, const RecoIdealGeometry &rig)