58 : alignmentsLabel_(
p.getParameter<
std::
string>(
"alignmentsLabel")),
59 myLabel_(
p.getParameter<
std::
string>(
"appendToDataLabel")),
60 applyAlignment_(
p.getParameter<
bool>(
"applyAlignment")) {
77 edm::LogInfo(
"Geometry") <<
"@SUB=TrackerDigiGeometryESModule" 88 descDB.
add<
bool>(
"fromDDD",
false);
89 descDB.
add<
bool>(
"applyAlignment",
true);
91 descriptions.
add(
"trackerGeometryDB", descDB);
95 desc.add<
bool>(
"fromDDD",
true);
96 desc.add<
bool>(
"applyAlignment",
true);
98 descriptions.
add(
"trackerGeometry",
desc);
113 std::unique_ptr<TrackerGeometry>
tracker(builder.
build(&gD, ptp, &tTopo));
121 if (alignments.empty() && alignmentErrors.empty() && globalPosition.empty()) {
122 edm::LogInfo(
"Config") <<
"@SUB=TrackerDigiGeometryRecord::produce" 124 <<
"') empty: Geometry producer (label " 125 <<
"'" <<
myLabel_ <<
"') assumes fake and does not apply.";
136 if (surfaceDeformations.empty()) {
137 edm::LogInfo(
"Config") <<
"@SUB=TrackerDigiGeometryRecord::produce" 139 <<
"') empty: Geometry producer (label " 140 <<
"'" <<
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.
uint32_t cc[maxCellsPerHit]
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
TrackerGeometry * build(const GeometricDet *gd, const PTrackerParameters &ptp, const TrackerTopology *tTopo)
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)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
edm::ESGetToken< AlignmentSurfaceDeformations, TrackerSurfaceDeformationRcd > deformationsToken_
Log< level::Info, false > LogInfo
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_
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const