Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:25:24

0001 #include "FWCore/PluginManager/interface/PluginManager.h"
0002 #include "FWCore/PluginManager/interface/standard.h"
0003 #include "RecoLuminosity/LumiProducer/interface/DataPipe.h"
0004 #include "RecoLuminosity/LumiProducer/interface/DataPipeFactory.h"
0005 //#include <boost/program_options.hpp>
0006 //ToDo:change to use command options
0007 #include <iostream>
0008 int main() {
0009   edmplugin::PluginManager::Config config;
0010   edmplugin::PluginManager::configure(edmplugin::standard::config());
0011   //const std::string con("sqlite_file:pippo.db");
0012   const std::string con("oracle://devdb10/cms_xiezhen_dev");
0013   const std::string authpath("/afs/cern.ch/user/x/xiezhen");
0014   std::cout << "fill out hlx data" << std::endl;
0015   unsigned int fakerunnumber = 1234;
0016   //fill cmsrunsummary data
0017   std::cout << "fill out runsummary data" << std::endl;
0018   std::unique_ptr<lumi::DataPipe> runptr(lumi::DataPipeFactory::get()->create("CMSRunSummaryDummy2DB", con));
0019   runptr->setAuthPath(authpath);
0020   runptr->retrieveData(fakerunnumber);
0021 
0022   //fill lhx data
0023   std::unique_ptr<lumi::DataPipe> lumiptr(lumi::DataPipeFactory::get()->create("LumiDummy2DB", con));
0024   lumiptr->setAuthPath(authpath);
0025   lumiptr->retrieveData(fakerunnumber);
0026 
0027   //fill trg data
0028   std::cout << "fill out trg data" << std::endl;
0029   std::unique_ptr<lumi::DataPipe> trgptr(lumi::DataPipeFactory::get()->create("TRGDummy2DB", con));
0030   trgptr->setAuthPath(authpath);
0031   trgptr->retrieveData(fakerunnumber);
0032 
0033   //fill hlt conf data
0034   std::cout << "fill out conf data" << std::endl;
0035   std::unique_ptr<lumi::DataPipe> confptr(lumi::DataPipeFactory::get()->create("HLTConfDummy2DB", con));
0036   confptr->setAuthPath(authpath);
0037   confptr->retrieveData(fakerunnumber);
0038 
0039   //fill hlt scaler data
0040   std::cout << "fill out hlt data" << std::endl;
0041   std::unique_ptr<lumi::DataPipe> hltptr(lumi::DataPipeFactory::get()->create("HLTDummy2DB", con));
0042   hltptr->setAuthPath(authpath);
0043   hltptr->retrieveData(fakerunnumber);
0044   return 0;
0045 }