|
|
Go to the documentation of this file.
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.";
edm::ESGetToken< PTrackerParameters, PTrackerParametersRcd > trackerParamsToken_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
const std::string alignmentsLabel_
Called when geometry description changes.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
TrackerGeometry * build(const GeometricDet *gd, const PTrackerParameters &ptp, const TrackerTopology *tTopo)
Log< level::Info, false > LogInfo
edm::ESGetToken< AlignmentErrorsExtended, TrackerAlignmentErrorExtendedRcd > alignmentErrorsToken_
void applyAlignments(const C *geometry, const Alignments *alignments, const AlignmentErrorsExtended *alignmentErrors, const AlignTransform &globalCoordinates)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::ESGetToken< GeometricDet, IdealGeometryRecord > geometricDetToken_
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
TrackerDigiGeometryESModule(const edm::ParameterSet &p)
const AlignTransform & DetectorGlobalPosition(const Alignments &allGlobals, const DetId &id)
~TrackerDigiGeometryESModule() override
edm::ESGetToken< Alignments, GlobalPositionRcd > globalAlignmentToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopoToken_
const std::string myLabel_
edm::ESGetToken< Alignments, TrackerAlignmentRcd > trackerAlignmentToken_
void attachSurfaceDeformations(const C *geometry, const AlignmentSurfaceDeformations *surfaceDeformations)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
const bool applyAlignment_
std::unique_ptr< TrackerGeometry > produce(const TrackerDigiGeometryRecord &)
edm::ESGetToken< AlignmentSurfaceDeformations, TrackerSurfaceDeformationRcd > deformationsToken_
Class to update a given geometry with a set of alignments.