34 : alignmentsLabel_(p.getParameter<
std::
string>(
"alignmentsLabel")),
35 myLabel_(p.getParameter<
std::
string>(
"appendToDataLabel"))
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::shared_ptr<TrackerGeometry>
87 _tracker = std::shared_ptr<TrackerGeometry>(builder.
build(&(*gD), *ptp, tTopo));
98 if (alignments->
empty() && alignmentErrors->
empty() && globalPosition->
empty()) {
99 edm::LogInfo(
"Config") <<
"@SUB=TrackerDigiGeometryRecord::produce" 100 <<
"Alignment(Error)s and global position (label '" 102 <<
"'" <<
myLabel_ <<
"') assumes fake and does not apply.";
113 if (surfaceDeformations->empty()) {
114 edm::LogInfo(
"Config") <<
"@SUB=TrackerDigiGeometryRecord::produce" 115 <<
"AlignmentSurfaceDeformations (label '" 117 <<
"'" <<
myLabel_ <<
"') assumes fake and does not apply.";
~TrackerDigiGeometryESModule() override
T getParameter(std::string const &) const
bool empty() const
Test of empty vector without having to look into internals:
Class to update a given geometry with a set of alignments.
std::shared_ptr< TrackerGeometry > produce(const TrackerDigiGeometryRecord &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
TrackerGeometry * build(const GeometricDet *gd, const PTrackerParameters &ptp, const TrackerTopology *tTopo)
const std::string myLabel_
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
const DepRecordT getRecord() const
void attachSurfaceDeformations(C *geometry, const AlignmentSurfaceDeformations *surfaceDeformations)
const std::string alignmentsLabel_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void applyAlignments(C *geometry, const Alignments *alignments, const AlignmentErrorsExtended *alignmentErrors, const AlignTransform &globalCoordinates)
std::shared_ptr< TrackerGeometry > _tracker
Called when geometry description changes.
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
TrackerDigiGeometryESModule(const edm::ParameterSet &p)
bool empty() const
Test of empty vector without having to look into internals:
const AlignTransform & DetectorGlobalPosition(const Alignments &allGlobals, const DetId &id)
T const * product() const