62 : alignmentsLabel_(
p.getParameter<
std::
string>(
"alignmentsLabel")),
63 myLabel_(
p.getParameter<
std::
string>(
"appendToDataLabel")),
64 applyAlignment_(
p.getParameter<
bool>(
"applyAlignment")) {
83 edm::LogInfo(
"Geometry") <<
"@SUB=TrackerDigiGeometryESModule" 94 descDB.
add<
bool>(
"fromDDD",
false);
95 descDB.
add<
bool>(
"applyAlignment",
true);
97 descriptions.
add(
"trackerGeometryDB", descDB);
101 desc.add<
bool>(
"fromDDD",
true);
102 desc.add<
bool>(
"applyAlignment",
true);
104 descriptions.
add(
"trackerGeometry",
desc);
121 std::unique_ptr<TrackerGeometry>
tracker(builder.
build(&gD, &ptitp, ptp, &tTopo));
129 if (alignments.empty() && alignmentErrors.empty() && globalPosition.empty()) {
130 edm::LogInfo(
"Config") <<
"@SUB=TrackerDigiGeometryRecord::produce" 132 <<
"') empty: Geometry producer (label " 133 <<
"'" <<
myLabel_ <<
"') assumes fake and does not apply.";
144 if (surfaceDeformations.empty()) {
145 edm::LogInfo(
"Config") <<
"@SUB=TrackerDigiGeometryRecord::produce" 147 <<
"') empty: Geometry producer (label " 148 <<
"'" <<
myLabel_ <<
"') assumes fake and does not apply.";
~TrackerDigiGeometryESModule() override
void attachSurfaceDeformations(const C *geometry, const AlignmentSurfaceDeformations *surfaceDeformations)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
const bool applyAlignment_
Class to update a given geometry with a set of alignments.
TrackerGeometry * build(const GeometricDet *gd, const PTrackerAdditionalParametersPerDet *ptitp, const PTrackerParameters &ptp, const TrackerTopology *tTopo)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const std::string myLabel_
edm::ESGetToken< GeometricDet, IdealGeometryRecord > geometricDetToken_
std::unique_ptr< TrackerGeometry > produce(const TrackerDigiGeometryRecord &)
edm::ESGetToken< AlignmentErrorsExtended, TrackerAlignmentErrorExtendedRcd > alignmentErrorsToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopoToken_
void applyAlignments(const C *geometry, const Alignments *alignments, const AlignmentErrorsExtended *alignmentErrors, const AlignTransform &globalCoordinates)
edm::ESGetToken< Alignments, GlobalPositionRcd > globalAlignmentToken_
const std::string alignmentsLabel_
Called when geometry description changes.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::ESGetToken< AlignmentSurfaceDeformations, TrackerSurfaceDeformationRcd > deformationsToken_
Log< level::Info, false > LogInfo
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
TrackerDigiGeometryESModule(const edm::ParameterSet &p)
edm::ESGetToken< PTrackerParameters, PTrackerParametersRcd > trackerParamsToken_
const AlignTransform & DetectorGlobalPosition(const Alignments &allGlobals, const DetId &id)
edm::ESGetToken< Alignments, TrackerAlignmentRcd > trackerAlignmentToken_
edm::ESGetToken< PTrackerAdditionalParametersPerDet, PTrackerAdditionalParametersPerDetRcd > trackerGeometricDetExtraToken_
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const