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;
79 std::cout <<
"EcalEndcapMonitorDbModule: endJob, icycle = " <<
icycle_ << std::endl;
91 context.loadComponent(
"CORAL/Services/ConnectionService");
92 context.loadComponent(
"CORAL/Services/EnvironmentAuthenticationService");
93 coral::IHandle<coral::IConnectionService> connectionService = context.query<coral::IConnectionService>(
"CORAL/Services/ConnectionService");
94 context.loadComponent(
"CORAL/RelationalPlugins/oracle");
97 coral::IConnectionServiceConfiguration&
config = connectionService->configuration();
98 config.setConnectionRetrialPeriod(1);
99 config.setConnectionRetrialTimeOut(10);
101 session_ = connectionService->connect(
"ECAL CondDB", coral::ReadOnly);
106 std::cerr <<
"CORAL Exception : " << e.what() << std::endl;
108 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)