/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CondCore/HLTPlugins/test/testAlCaRecoTriggerBitsPayloadInspector.cpp
38 строк
1 KB
Purva-Chaudhari
Removed lexical_cast boost dependency
16 авг 2021, 11:57
16 авг 2021, 11:57
f107145
Код
Авторство
О чём код?
#include <iostream> #include <sstream> #include "CondCore/Utilities/interface/PayloadInspector.h" #include "CondCore/HLTPlugins/plugins/AlCaRecoTriggerBits_PayloadInspector.cc" #include "FWCore/PluginManager/interface/PluginManager.h" #include "FWCore/PluginManager/interface/standard.h" #include "FWCore/ServiceRegistry/interface/ServiceRegistry.h" int main(int argc, char** argv) { Py_Initialize(); edmplugin::PluginManager::Config config; edmplugin::PluginManager::configure(edmplugin::standard::config()); std::vector<edm::ParameterSet> psets; edm::ParameterSet pSet; pSet.addParameter("@service_type", std::string("SiteLocalConfigService")); psets.push_back(pSet); edm::ServiceToken servToken(edm::ServiceRegistry::createSet(psets)); edm::ServiceRegistry::Operate operate(servToken); std::string connectionString("frontier://FrontierProd/CMS_CONDITIONS"); std::string tag = "AlCaRecoHLTpaths8e29_1e31_v7_hlt"; cond::Time_t start = static_cast<unsigned long long>(270000); cond::Time_t end = static_cast<unsigned long long>(304820); std::cout << "## AlCaRecoTriggerBit Histos" << std::endl; AlCaRecoTriggerBits_Display histo1; histo1.process(connectionString, PI::mk_input(tag, 1, 1)); std::cout << histo1.data() << std::endl; AlCaRecoTriggerBits_Compare histo2; histo2.process(connectionString, PI::mk_input(tag, start, end)); std::cout << histo2.data() << std::endl; Py_Finalize(); }