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;
73 std::cout <<
"EcalBarrelMonitorDbModule: endJob, icycle = " <<
icycle_ << std::endl;
83 context.loadComponent(
"CORAL/Services/ConnectionService");
84 context.loadComponent(
"CORAL/Services/EnvironmentAuthenticationService");
85 coral::IHandle<coral::IConnectionService> connectionService =
86 context.query<coral::IConnectionService>(
"CORAL/Services/ConnectionService");
87 context.loadComponent(
"CORAL/RelationalPlugins/oracle");
90 coral::IConnectionServiceConfiguration &
config = connectionService->configuration();
91 config.setConnectionRetrialPeriod(1);
92 config.setConnectionRetrialTimeOut(10);
94 session_ = connectionService->connect(
"ECAL CondDB", coral::ReadOnly);
100 std::cerr <<
"CORAL Exception : " << e.what() << std::endl;
102 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.
const edm::EventSetup & c
void endJob(void) override
static PFTauRenderPlugin instance
#define DEFINE_FWK_MODULE(type)
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.
MonitorElementsDb * ME_Db_
void beginJob(void) override
coral::ISessionProxy * session_
tuple config
parse the configuration file
void htmlOutput(std::string &htmlDir)
~EcalBarrelMonitorDbModule() override
Destructor.