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::unique_ptr<MTDGeometry>
87 std::unique_ptr<MTDGeometry>
mtd(builder.
build(&(*gD), *ptp, tTopo));
98 if (alignments->
empty() && alignmentErrors->
empty() && globalPosition->
empty()) {
99 edm::LogInfo(
"Config") <<
"@SUB=MTDDigiGeometryRecord::produce" 100 <<
"Alignment(Error)s and global position (label '" 102 <<
"'" <<
myLabel_ <<
"') assumes fake and does not apply.";
113 if (surfaceDeformations->empty()) {
114 edm::LogInfo(
"Config") <<
"@SUB=MTDDigiGeometryRecord::produce" 115 <<
"AlignmentSurfaceDeformations (label '" 117 <<
"'" <<
myLabel_ <<
"') assumes fake and does not apply.";
T getParameter(std::string const &) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
bool empty() const
Test of empty vector without having to look into internals:
Class to update a given geometry with a set of alignments.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const DepRecordT getRecord() const
const std::string myLabel_
void attachSurfaceDeformations(C *geometry, const AlignmentSurfaceDeformations *surfaceDeformations)
MTDDigiGeometryESModule(const edm::ParameterSet &p)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
MTDGeometry * build(const GeometricTimingDet *gd, const PMTDParameters &ptp, const MTDTopology *tTopo)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void applyAlignments(C *geometry, const Alignments *alignments, const AlignmentErrorsExtended *alignmentErrors, const AlignTransform &globalCoordinates)
const std::string alignmentsLabel_
Called when geometry description changes.
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)
std::unique_ptr< MTDGeometry > produce(const MTDDigiGeometryRecord &)
~MTDDigiGeometryESModule() override
T const * product() const