CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ThrParameters.cc
Go to the documentation of this file.
3 
4 using namespace edm;
5 using namespace std;
6 
8  const AlignmentErrorsExtended& dtAlignmentErrors,
9  const AlignmentErrorsExtended& cscAlignmentErrors) {
10  if (dytThresholdsH.isValid()) {
11  dytThresholds = dytThresholdsH.product();
12  isValidThdDB_ = true;
13  } else {
14  dytThresholds = nullptr;
15  isValidThdDB_ = false;
16  }
17 
18  // Ape are always filled even they're null
19  for (std::vector<AlignTransformErrorExtended>::const_iterator it = dtAlignmentErrors.m_alignError.begin();
20  it != dtAlignmentErrors.m_alignError.end();
21  it++) {
22  CLHEP::HepSymMatrix error = (*it).matrix();
23  GlobalError glbErr(error[0][0], error[1][0], error[1][1], error[2][0], error[2][1], error[2][2]);
24  DTChamberId DTid((*it).rawId());
25  dtApeMap.insert(pair<DTChamberId, GlobalError>(DTid, glbErr));
26  }
27  for (std::vector<AlignTransformErrorExtended>::const_iterator it = cscAlignmentErrors.m_alignError.begin();
28  it != cscAlignmentErrors.m_alignError.end();
29  it++) {
30  CLHEP::HepSymMatrix error = (*it).matrix();
31  GlobalError glbErr(error[0][0], error[1][0], error[1][1], error[2][0], error[2][1], error[2][2]);
32  CSCDetId CSCid((*it).rawId());
33  cscApeMap.insert(pair<CSCDetId, GlobalError>(CSCid, glbErr));
34  }
35 }
36 
ThrParameters(edm::ESHandle< DYTThrObject >, const AlignmentErrorsExtended &dtAlignmentErrors, const AlignmentErrorsExtended &cscAlignmentErrors)
Definition: ThrParameters.cc:7
std::vector< AlignTransformErrorExtended > m_alignError
T const * product() const
Definition: ESHandle.h:86
bool isValid() const
Definition: ESHandle.h:44