63 : alignmentsLabel_(
p.getParameter<
std::
string>(
"alignmentsLabel")),
64 myLabel_(
p.getParameter<
std::
string>(
"appendToDataLabel")),
65 applyAlignment_(
p.getParameter<
bool>(
"applyAlignment")),
66 fromDDD_(
p.getParameter<
bool>(
"fromDDD"))
83 edm::LogInfo(
"Geometry") <<
"@SUB=MTDDigiGeometryESModule" 92 descDB.
add<
bool>(
"fromDDD",
false);
93 descDB.
add<
bool>(
"applyAlignment",
true);
95 descriptions.
add(
"mtdGeometryDB", descDB);
99 desc.add<
bool>(
"fromDDD",
true);
100 desc.add<
bool>(
"applyAlignment",
true);
102 descriptions.
add(
"mtdGeometry",
desc);
117 std::unique_ptr<MTDGeometry>
mtd(builder.
build(&(gD), ptp, &tTopo));
125 if (alignments.
empty() && alignmentErrors.
empty() && globalPosition.
empty()) {
126 edm::LogInfo(
"Config") <<
"@SUB=MTDDigiGeometryRecord::produce" 128 <<
"') empty: Geometry producer (label " 129 <<
"'" <<
myLabel_ <<
"') assumes fake and does not apply.";
140 if (surfaceDeformations.
empty()) {
141 edm::LogInfo(
"Config") <<
"@SUB=MTDDigiGeometryRecord::produce" 143 <<
"') empty: Geometry producer (label " 144 <<
"'" <<
myLabel_ <<
"') assumes fake and does not apply.";
void attachSurfaceDeformations(const C *geometry, const AlignmentSurfaceDeformations *surfaceDeformations)
edm::ESGetToken< GeometricTimingDet, IdealGeometryRecord > geomTimingDetToken_
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
edm::ESGetToken< Alignments, MTDAlignmentRcd > mtdAlignToken_
Class to update a given geometry with a set of alignments.
uint32_t cc[maxCellsPerHit]
edm::ESGetToken< MTDTopology, MTDTopologyRcd > mtdTopoToken_
edm::ESGetToken< AlignmentSurfaceDeformations, MTDSurfaceDeformationRcd > deformationsToken_
edm::ESGetToken< Alignments, GlobalPositionRcd > globalAlignToken_
void applyAlignments(const C *geometry, const Alignments *alignments, const AlignmentErrorsExtended *alignmentErrors, const AlignTransform &globalCoordinates)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::ESGetToken< PMTDParameters, PMTDParametersRcd > pmtdParamsToken_
const std::string myLabel_
bool empty() const
Test of empty vector without having to look into internals:
edm::ESGetToken< AlignmentErrorsExtended, MTDAlignmentErrorExtendedRcd > alignErrorsToken_
MTDDigiGeometryESModule(const edm::ParameterSet &p)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
bool empty() const
Test of empty vector without having to look into internals:
MTDGeometry * build(const GeometricTimingDet *gd, const PMTDParameters &ptp, const MTDTopology *tTopo)
Log< level::Info, false > LogInfo
const std::string alignmentsLabel_
Called when geometry description changes.
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const bool applyAlignment_
const AlignTransform & DetectorGlobalPosition(const Alignments &allGlobals, const DetId &id)
std::unique_ptr< MTDGeometry > produce(const MTDDigiGeometryRecord &)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const