18 #include "RelationalAccess/IConnectionService.h" 19 #include "RelationalAccess/IConnectionServiceConfiguration.h" 21 #include "CoralBase/Attribute.h" 22 #include "CoralKernel/Context.h" 34 if (!xmlFile_.empty()) {
35 std::cout <<
"Monitor Elements from DB xml source file is " << xmlFile_ << std::endl;
46 <<
" htmlDir = " <<
htmlDir_ << std::endl;
48 std::cout <<
" HTML output is disabled" << std::endl;
76 std::cout <<
"EcalBarrelMonitorDbModule: endJob, icycle = " <<
icycle_ << std::endl;
86 context.loadComponent(
"CORAL/Services/ConnectionService");
87 context.loadComponent(
"CORAL/Services/EnvironmentAuthenticationService");
88 coral::IHandle<coral::IConnectionService> connectionService =
89 context.query<coral::IConnectionService>(
"CORAL/Services/ConnectionService");
90 context.loadComponent(
"CORAL/RelationalPlugins/oracle");
93 coral::IConnectionServiceConfiguration &
config = connectionService->configuration();
94 config.setConnectionRetrialPeriod(1);
95 config.setConnectionRetrialTimeOut(10);
97 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
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
void endJob(void) override
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.
#define DEFINE_FWK_MODULE(type)
MonitorElementsDb * ME_Db_
void beginJob(void) override
void showDirStructure() const
coral::ISessionProxy * session_
void htmlOutput(std::string &htmlDir)
~EcalBarrelMonitorDbModule() override
Destructor.