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 boost::shared_ptr<TrackerGeometry>
87 _tracker = boost::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.";
T getParameter(std::string const &) const
virtual ~TrackerDigiGeometryESModule()
boost::shared_ptr< TrackerGeometry > _tracker
Called when geometry description changes.
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_
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
boost::shared_ptr< TrackerGeometry > produce(const TrackerDigiGeometryRecord &)
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)
T const * product() const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
TrackerDigiGeometryESModule(const edm::ParameterSet &p)
const AlignTransform & DetectorGlobalPosition(const Alignments &allGlobals, const DetId &id)
volatile std::atomic< bool > shutdown_flag false