/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Alignment/SurveyAnalysis/plugins/SurveyAlignmentAlgorithm.cc
36 строк
2 KB
Shahzad Malik Muzaffar
[ALCA-DB] [LLVM21] Apply clang-tidy changes
26 ноя 2025, 17:09
26 ноя 2025, 17:09
3994667
Код
Авторство
О чём код?
#include "Alignment/CommonAlignment/interface/AlignableObjectId.h" #include "Alignment/CommonAlignmentAlgorithm/interface/AlignmentParameterStore.h" #include "Alignment/SurveyAnalysis/interface/SurveyAlignmentSensor.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "Alignment/SurveyAnalysis/plugins/SurveyAlignmentAlgorithm.h" SurveyAlignmentAlgorithm::SurveyAlignmentAlgorithm(const edm::ParameterSet& cfg, const edm::ConsumesCollector& iC) : AlignmentAlgorithmBase(cfg, iC), theOutfile(cfg.getParameter<std::string>("outfile")), theIterations(cfg.getParameter<unsigned int>("nIteration")), theLevels(cfg.getParameter<std::vector<std::string> >("levels")) {} void SurveyAlignmentAlgorithm::initialize( const edm::EventSetup&, AlignableTracker*, AlignableMuon*, AlignableExtras*, AlignmentParameterStore* store) { std::vector<align::StructureType> levels; // FIXME: - currently defaulting to RunI as this was the previous behaviour // - check this, when resurrecting this code in the future AlignableObjectId alignableObjectId{AlignableObjectId::Geometry::General}; levels.reserve(theLevels.size()); for (unsigned int l = 0; l < theLevels.size(); ++l) { levels.push_back(alignableObjectId.stringToId(theLevels[l].c_str())); } SurveyAlignmentSensor align(store->alignables(), levels); align.iterate(theIterations, theOutfile, true); } // Plug in to framework #include "Alignment/CommonAlignmentAlgorithm/interface/AlignmentAlgorithmPluginFactory.h" DEFINE_EDM_PLUGIN(AlignmentAlgorithmPluginFactory, SurveyAlignmentAlgorithm, "SurveyAlignmentAlgorithm");