Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-07 22:41:42

0001 #include <iostream>
0002 #include <sstream>
0003 #include "CondCore/Utilities/interface/PayloadInspector.h"
0004 #include "CondCore/Utilities/plugins/BasicP_PayloadInspector.cc"
0005 
0006 #include "FWCore/PluginManager/interface/PluginManager.h"
0007 #include "FWCore/PluginManager/interface/standard.h"
0008 #include "FWCore/ServiceRegistry/interface/ServiceRegistry.h"
0009 
0010 int main(int argc, char** argv) {
0011   Py_Initialize();
0012 
0013   edmplugin::PluginManager::Config config;
0014   edmplugin::PluginManager::configure(edmplugin::standard::config());
0015 
0016   std::vector<edm::ParameterSet> psets;
0017   edm::ParameterSet pSet;
0018   pSet.addParameter("@service_type", std::string("SiteLocalConfigService"));
0019   psets.push_back(pSet);
0020   edm::ServiceToken servToken(edm::ServiceRegistry::createSet(psets));
0021   edm::ServiceRegistry::Operate operate(servToken);
0022 
0023   std::string connectionString("frontier://FrontierProd/CMS_CONDITIONS");
0024 
0025   std::string tag = std::string("BasicPayload_v10.0");
0026   cond::Time_t since = std::stoull("901");
0027 
0028   std::cout << "## PNG Histo" << std::endl;
0029 
0030   BasicPayload_data6 histo1;
0031   histo1.process(connectionString, PI::mk_input(tag, since, since));
0032   std::cout << histo1.data() << std::endl;
0033   Py_Finalize();
0034 }