18 #include "RelationalAccess/IConnectionService.h"
19 #include "RelationalAccess/IConnectionServiceConfiguration.h"
21 #include "CoralBase/Attribute.h"
22 #include "CoralKernel/Context.h"
35 if ( xmlFile_.size() != 0 ) {
36 std::cout <<
"Monitor Elements from DB xml source file is " << xmlFile_ << std::endl;
47 <<
" htmlDir = " <<
htmlDir_ << std::endl;
49 std::cout <<
" HTML output is disabled" << std::endl;
78 std::cout <<
"EcalBarrelMonitorDbModule: endJob, icycle = " <<
icycle_ << std::endl;
90 context.loadComponent(
"CORAL/Services/ConnectionService");
91 context.loadComponent(
"CORAL/Services/EnvironmentAuthenticationService");
92 coral::IHandle<coral::IConnectionService> connectionService = context.query<coral::IConnectionService>(
"CORAL/Services/ConnectionService");
93 context.loadComponent(
"CORAL/RelationalPlugins/oracle");
96 coral::IConnectionServiceConfiguration&
config = connectionService->configuration();
97 config.setConnectionRetrialPeriod(1);
98 config.setConnectionRetrialTimeOut(10);
100 session_ = connectionService->connect(
"ECAL CondDB", coral::ReadOnly);
105 std::cerr <<
"CORAL Exception : " << e.what() << std::endl;
107 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.