18 #include "RelationalAccess/IConnectionService.h" 19 #include "RelationalAccess/IConnectionServiceConfiguration.h" 21 #include "CoralBase/Attribute.h" 22 #include "CoralKernel/Context.h" 29 usesResource(
"DQMStore");
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;
74 std::cout <<
"EcalBarrelMonitorDbModule: endJob, icycle = " <<
icycle_ << std::endl;
84 context.loadComponent(
"CORAL/Services/ConnectionService");
85 context.loadComponent(
"CORAL/Services/EnvironmentAuthenticationService");
86 coral::IHandle<coral::IConnectionService> connectionService =
87 context.query<coral::IConnectionService>(
"CORAL/Services/ConnectionService");
88 context.loadComponent(
"CORAL/RelationalPlugins/oracle");
91 coral::IConnectionServiceConfiguration &
config = connectionService->configuration();
92 config.setConnectionRetrialPeriod(1);
93 config.setConnectionRetrialTimeOut(10);
95 session_ = connectionService->connect(
"ECAL CondDB", coral::ReadOnly);
101 std::cerr <<
"CORAL Exception : " <<
e.what() << std::endl;
103 std::cerr <<
"Standard C++ exception : " <<
e.what() << std::endl;
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.
T getUntrackedParameter(std::string const &, T const &) const
MonitorElementsDb * ME_Db_
#define DEFINE_FWK_MODULE(type)
void beginJob(void) override
coral::ISessionProxy * session_
void htmlOutput(std::string &htmlDir)
~EcalBarrelMonitorDbModule() override
Destructor.