34 : alignmentsLabel_(p.getParameter<
std::
string>(
"alignmentsLabel")),
35 myLabel_(p.getParameter<
std::
string>(
"appendToDataLabel"))
42 edm::LogInfo(
"Geometry") <<
"@SUB=MTDDigiGeometryESModule" 56 descDB.
add<
bool>(
"fromDDD",
false );
57 descDB.
add<
bool>(
"applyAlignment",
true );
59 descriptions.
add(
"mtdGeometryDB", descDB );
63 desc.
add<
bool>(
"fromDDD",
true );
64 desc.
add<
bool>(
"applyAlignment",
true );
66 descriptions.
add(
"mtdGeometry", desc );
70 std::shared_ptr<MTDGeometry>
87 mtd_ = std::shared_ptr<MTDGeometry>(builder.
build(&(*gD), *ptp, tTopo));
99 if (alignments->
empty() && alignmentErrors->
empty() && globalPosition->
empty()) {
100 edm::LogInfo(
"Config") <<
"@SUB=MTDDigiGeometryRecord::produce" 101 <<
"Alignment(Error)s and global position (label '" 103 <<
"'" <<
myLabel_ <<
"') assumes fake and does not apply.";
114 if (surfaceDeformations->empty()) {
115 edm::LogInfo(
"Config") <<
"@SUB=MTDDigiGeometryRecord::produce" 116 <<
"AlignmentSurfaceDeformations (label '" 118 <<
"'" <<
myLabel_ <<
"') assumes fake and does not apply.";
T getParameter(std::string const &) const
bool empty() const
Test of empty vector without having to look into internals:
Class to update a given geometry with a set of alignments.
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const DepRecordT getRecord() const
const std::string myLabel_
void attachSurfaceDeformations(C *geometry, const AlignmentSurfaceDeformations *surfaceDeformations)
std::shared_ptr< MTDGeometry > produce(const MTDDigiGeometryRecord &)
MTDDigiGeometryESModule(const edm::ParameterSet &p)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
MTDGeometry * build(const GeometricTimingDet *gd, const PMTDParameters &ptp, const MTDTopology *tTopo)
void applyAlignments(C *geometry, const Alignments *alignments, const AlignmentErrorsExtended *alignmentErrors, const AlignTransform &globalCoordinates)
const std::string alignmentsLabel_
std::shared_ptr< MTDGeometry > mtd_
Called when geometry description changes.
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool empty() const
Test of empty vector without having to look into internals:
const AlignTransform & DetectorGlobalPosition(const Alignments &allGlobals, const DetId &id)
~MTDDigiGeometryESModule() override
T const * product() const