/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
RecoMuon/GlobalTrackingTools/src/ThrParameters.cc
37 строк
1 KB
Christopher Jones
Added esConsumes to DynamicTruncation
21 сен 2021, 00:24
21 сен 2021, 00:24
b5a1b44
Код
Авторство
О чём код?
#include "RecoMuon/GlobalTrackingTools/interface/ThrParameters.h" #include "FWCore/Framework/interface/ESHandle.h" using namespace edm; using namespace std; ThrParameters::ThrParameters(ESHandle<DYTThrObject> dytThresholdsH, const AlignmentErrorsExtended& dtAlignmentErrors, const AlignmentErrorsExtended& cscAlignmentErrors) { if (dytThresholdsH.isValid()) { dytThresholds = dytThresholdsH.product(); isValidThdDB_ = true; } else { dytThresholds = nullptr; isValidThdDB_ = false; } // Ape are always filled even they're null for (std::vector<AlignTransformErrorExtended>::const_iterator it = dtAlignmentErrors.m_alignError.begin(); it != dtAlignmentErrors.m_alignError.end(); it++) { CLHEP::HepSymMatrix error = (*it).matrix(); GlobalError glbErr(error[0][0], error[1][0], error[1][1], error[2][0], error[2][1], error[2][2]); DTChamberId DTid((*it).rawId()); dtApeMap.insert(pair<DTChamberId, GlobalError>(DTid, glbErr)); } for (std::vector<AlignTransformErrorExtended>::const_iterator it = cscAlignmentErrors.m_alignError.begin(); it != cscAlignmentErrors.m_alignError.end(); it++) { CLHEP::HepSymMatrix error = (*it).matrix(); GlobalError glbErr(error[0][0], error[1][0], error[1][1], error[2][0], error[2][1], error[2][2]); CSCDetId CSCid((*it).rawId()); cscApeMap.insert(pair<CSCDetId, GlobalError>(CSCid, glbErr)); } } ThrParameters::~ThrParameters() {}