38 : m_dtLabel(
""), m_cscLabel(
""), idealGeometryLabel(
"idealForInputSurveyDB") {}
43 : m_dtLabel(
dtLabel), m_cscLabel(
cscLabel), idealGeometryLabel(idealLabel) {}
85 unsigned int theSurveyIndex = 0;
86 const Alignments* theSurveyValues = &*dtSurvey;
88 const auto& barrels =
output->DTBarrel();
89 for (
const auto& iter : barrels) {
90 addSurveyInfo_(iter, &theSurveyIndex, theSurveyValues, theSurveyErrors);
94 theSurveyValues = &*cscSurvey;
95 theSurveyErrors = &*cscSurveyError;
96 const auto& endcaps =
output->CSCEndcaps();
97 for (
const auto& iter : endcaps) {
98 addSurveyInfo_(iter, &theSurveyIndex, theSurveyValues, theSurveyErrors);
109 unsigned int* theSurveyIndex,
114 unsigned int nComp =
comp.size();
116 for (
unsigned int i = 0;
i < nComp; ++
i)
122 throw cms::Exception(
"DatabaseError") <<
"Error reading survey info from DB. Mismatched id!";
125 const CLHEP::Hep3Vector&
pos = theSurveyValues->
m_align[*theSurveyIndex].translation();
126 const CLHEP::HepRotation&
rot = theSurveyValues->
m_align[*theSurveyIndex].rotation();