22 : alignmentsLabel_(p.getParameter<
std::
string>(
"alignmentsLabel")),
23 myLabel_(p.getParameter<
std::
string>(
"appendToDataLabel")),
24 applyAlignment_(p.getParameter<
bool>(
"applyAlignment"))
42 edm::LogInfo(
"Geometry") <<
"@SUB=TrackerDigiGeometryESModule" 56 descDB.
add<
bool>(
"fromDDD",
false );
57 descDB.
add<
bool>(
"applyAlignment",
true );
59 descriptions.
add(
"trackerGeometryDB", descDB );
63 desc.
add<
bool>(
"fromDDD",
true );
64 desc.
add<
bool>(
"applyAlignment",
true );
66 descriptions.
add(
"trackerGeometry", desc );
70 std::unique_ptr<TrackerGeometry>
83 std::unique_ptr<TrackerGeometry>
tracker(builder.
build(&gD, ptp, &tTopo));
91 if (alignments.empty() && alignmentErrors.empty() && globalPosition.empty()) {
92 edm::LogInfo(
"Config") <<
"@SUB=TrackerDigiGeometryRecord::produce" 93 <<
"Alignment(Error)s and global position (label '" 95 <<
"'" <<
myLabel_ <<
"') assumes fake and does not apply.";
105 if (surfaceDeformations.empty()) {
106 edm::LogInfo(
"Config") <<
"@SUB=TrackerDigiGeometryRecord::produce" 107 <<
"AlignmentSurfaceDeformations (label '" 109 <<
"'" <<
myLabel_ <<
"') assumes fake and does not apply.";
~TrackerDigiGeometryESModule() override
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
const bool applyAlignment_
Class to update a given geometry with a set of alignments.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
TrackerGeometry * build(const GeometricDet *gd, const PTrackerParameters &ptp, const TrackerTopology *tTopo)
const std::string myLabel_
std::unique_ptr< TrackerGeometry > produce(const TrackerDigiGeometryRecord &)
edm::ESGetToken< AlignmentErrorsExtended, TrackerAlignmentErrorExtendedRcd > alignmentErrorsToken_
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
edm::ESGetToken< GeometricDet, IdealGeometryRecord > geometricDetToken_
void attachSurfaceDeformations(C *geometry, const AlignmentSurfaceDeformations *surfaceDeformations)
const std::string alignmentsLabel_
Called when geometry description changes.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::ESGetToken< AlignmentSurfaceDeformations, TrackerSurfaceDeformationRcd > deformationsToken_
edm::ESGetToken< PTrackerParameters, PTrackerParametersRcd > trackerParamsToken_
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void applyAlignments(C *geometry, const Alignments *alignments, const AlignmentErrorsExtended *alignmentErrors, const AlignTransform &globalCoordinates)
edm::ESGetToken< Alignments, TrackerAlignmentRcd > trackerAlignmentToken_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
TrackerDigiGeometryESModule(const edm::ParameterSet &p)
edm::ESGetToken< Alignments, GlobalPositionRcd > globalAlignmentToken_
const AlignTransform & DetectorGlobalPosition(const Alignments &allGlobals, const DetId &id)
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopoToken_