38 : m_dtLabel(
""), m_cscLabel(
""), idealGeometryLabel(
"idealForInputSurveyDB") {}
43 : m_dtLabel(
dtLabel), m_cscLabel(
cscLabel), idealGeometryLabel(idealLabel) {}
87 unsigned int theSurveyIndex = 0;
88 const Alignments* theSurveyValues = &*dtSurvey;
90 const auto& barrels =
output->DTBarrel();
91 for (
const auto& iter : barrels) {
92 addSurveyInfo_(iter, &theSurveyIndex, theSurveyValues, theSurveyErrors);
96 theSurveyValues = &*cscSurvey;
97 theSurveyErrors = &*cscSurveyError;
98 const auto& endcaps =
output->CSCEndcaps();
99 for (
const auto& iter : endcaps) {
100 addSurveyInfo_(iter, &theSurveyIndex, theSurveyValues, theSurveyErrors);
111 unsigned int* theSurveyIndex,
116 unsigned int nComp =
comp.size();
118 for (
unsigned int i = 0;
i < nComp; ++
i)
124 throw cms::Exception(
"DatabaseError") <<
"Error reading survey info from DB. Mismatched id!";
127 const CLHEP::Hep3Vector&
pos = theSurveyValues->
m_align[*theSurveyIndex].translation();
128 const CLHEP::HepRotation&
rot = theSurveyValues->
m_align[*theSurveyIndex].rotation();