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;
77 std::cout <<
"EcalEndcapMonitorDbModule: endJob, icycle = " <<
icycle_ << std::endl;
89 context.loadComponent(
"CORAL/Services/ConnectionService");
90 context.loadComponent(
"CORAL/Services/EnvironmentAuthenticationService");
91 coral::IHandle<coral::IConnectionService> connectionService = context.query<coral::IConnectionService>(
"CORAL/Services/ConnectionService");
92 context.loadComponent(
"CORAL/RelationalPlugins/oracle");
95 coral::IConnectionServiceConfiguration&
config = connectionService->configuration();
96 config.setConnectionRetrialPeriod(1);
97 config.setConnectionRetrialTimeOut(10);
99 session_ = connectionService->connect(
"ECAL CondDB", coral::ReadOnly);
104 std::cerr <<
"CORAL Exception : " << e.what() << std::endl;
106 std::cerr <<
"Standard C++ exception : " << e.what() << std::endl;
T getUntrackedParameter(std::string const &, T const &) const
MonitorElementsDb * ME_Db_
static PFTauRenderPlugin instance
coral::ISessionProxy * session_
Generate a Monitor Element from DB data.
void analyze(const edm::Event &e, const edm::EventSetup &c, coral::ISessionProxy *s)
Analyze.
virtual ~EcalEndcapMonitorDbModule()
Destructor.
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
EcalEndcapMonitorDbModule(const edm::ParameterSet &ps)
Constructor.
void showDirStructure(void) const
void htmlOutput(std::string &htmlDir)