16 #include "RelationalAccess/IConnectionService.h"
17 #include "RelationalAccess/IConnectionServiceConfiguration.h"
19 #include "CoralBase/Attribute.h"
20 #include "CoralKernel/Context.h"
33 if ( xmlFile_.size() != 0 ) {
34 std::cout <<
"Monitor Elements from DB xml source file is " << xmlFile_ << std::endl;
45 <<
" htmlDir = " <<
htmlDir_ << std::endl;
47 std::cout <<
" HTML output is disabled" << std::endl;
76 std::cout <<
"EcalBarrelMonitorDbModule: endJob, icycle = " <<
icycle_ << std::endl;
88 context.loadComponent(
"CORAL/Services/ConnectionService");
89 context.loadComponent(
"CORAL/Services/EnvironmentAuthenticationService");
90 coral::IHandle<coral::IConnectionService> connectionService = context.query<coral::IConnectionService>(
"CORAL/Services/ConnectionService");
91 context.loadComponent(
"CORAL/RelationalPlugins/oracle");
94 coral::IConnectionServiceConfiguration&
config = connectionService->configuration();
95 config.setConnectionRetrialPeriod(1);
96 config.setConnectionRetrialTimeOut(10);
98 session_ = connectionService->connect(
"ECAL CondDB", coral::ReadOnly);
103 std::cerr <<
"CORAL Exception : " << e.what() << std::endl;
105 std::cerr <<
"Standard C++ exception : " << e.what() << std::endl;
T getUntrackedParameter(std::string const &, T const &) const
static PFTauRenderPlugin instance
Generate a Monitor Element from DB data.
EcalBarrelMonitorDbModule(const edm::ParameterSet &ps)
Constructor.
void analyze(const edm::Event &e, const edm::EventSetup &c, coral::ISessionProxy *s)
Analyze.
virtual ~EcalBarrelMonitorDbModule()
Destructor.
MonitorElementsDb * ME_Db_
coral::ISessionProxy * session_
void showDirStructure(void) const
void htmlOutput(std::string &htmlDir)
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.