30 : alignmentsLabel_(p.getParameter<std::
string>(
"alignmentsLabel")),
31 myLabel_(p.getParameter<std::
string>(
"appendToDataLabel")),
39 edm::LogInfo(
"Geometry") <<
"@SUB=TrackerDigiGeometryESModule"
52 descTrackerGeometryConstants.
add<
bool>(
"upgradeGeometry",
false );
53 descTrackerGeometryConstants.
add<
int>(
"ROWS_PER_ROC", 80 );
54 descTrackerGeometryConstants.
add<
int>(
"COLS_PER_ROC", 52 );
55 descTrackerGeometryConstants.
add<
int>(
"BIG_PIX_PER_ROC_X", 1 );
56 descTrackerGeometryConstants.
add<
int>(
"BIG_PIX_PER_ROC_Y", 2 );
57 descTrackerGeometryConstants.
add<
int>(
"ROCS_X", 0 );
58 descTrackerGeometryConstants.
add<
int>(
"ROCS_Y", 0 );
61 descTrackerSLHCGeometryConstants.
add<
bool>(
"upgradeGeometry",
true );
62 descTrackerSLHCGeometryConstants.add<
int>(
"ROWS_PER_ROC", 80 );
63 descTrackerSLHCGeometryConstants.add<
int>(
"COLS_PER_ROC", 52 );
64 descTrackerSLHCGeometryConstants.add<
int>(
"BIG_PIX_PER_ROC_X", 0 );
65 descTrackerSLHCGeometryConstants.add<
int>(
"BIG_PIX_PER_ROC_Y", 0 );
66 descTrackerSLHCGeometryConstants.add<
int>(
"ROCS_X", 2 );
67 descTrackerSLHCGeometryConstants.add<
int>(
"ROCS_Y", 8 );
71 descDB.add<
bool>(
"fromDDD",
false );
72 descDB.add<
bool>(
"applyAlignment",
true );
75 descriptions.
add(
"trackerGeometryDB", descDB );
79 desc.
add<
bool>(
"fromDDD",
true );
80 desc.
add<
bool>(
"applyAlignment",
true );
83 descriptions.
add(
"trackerGeometry", desc );
87 descSLHCDB.
add<
bool>(
"fromDDD",
false );
88 descSLHCDB.
add<
bool>(
"applyAlignment",
true );
91 descriptions.
add(
"trackerSLHCGeometryDB", descSLHCDB );
95 descSLHC.
add<
bool>(
"fromDDD",
true );
96 descSLHC.
add<
bool>(
"applyAlignment",
true );
99 descriptions.
add(
"trackerSLHCGeometry", descSLHC );
103 boost::shared_ptr<TrackerGeometry>
124 if (alignments->empty() && alignmentErrors->empty() && globalPosition->empty()) {
125 edm::LogInfo(
"Config") <<
"@SUB=TrackerDigiGeometryRecord::produce"
126 <<
"Alignment(Error)s and global position (label '"
128 <<
"'" <<
myLabel_ <<
"') assumes fake and does not apply.";
139 if (surfaceDeformations->empty()) {
140 edm::LogInfo(
"Config") <<
"@SUB=TrackerDigiGeometryRecord::produce"
141 <<
"AlignmentSurfaceDeformations (label '"
143 <<
"'" <<
myLabel_ <<
"') assumes fake and does not apply.";
T getParameter(std::string const &) const
virtual ~TrackerDigiGeometryESModule()
ParameterDescriptionBase * addOptional(U const &iLabel, T const &value)
boost::shared_ptr< TrackerGeometry > _tracker
Called when geometry description changes.
Class to update a given geometry with a set of alignments.
TrackerGeometry * build(const GeometricDet *gd, const edm::ParameterSet &pSet)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
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)
void applyAlignments(C *geometry, const Alignments *alignments, const AlignmentErrors *alignmentErrors, const AlignTransform &globalCoordinates)
const std::string alignmentsLabel_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
const edm::ParameterSet m_pSet
#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