|
|
Go to the documentation of this file.
18 #include "RelationalAccess/IConnectionService.h"
19 #include "RelationalAccess/IConnectionServiceConfiguration.h"
21 #include "CoralBase/Attribute.h"
22 #include "CoralKernel/Context.h"
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;
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
T getUntrackedParameter(std::string const &, T const &) const
void endJob(void) override
void htmlOutput(std::string &htmlDir)
#define DEFINE_FWK_MODULE(type)
~EcalBarrelMonitorDbModule() override
Destructor.
Generate a Monitor Element from DB data.
void analyze(const edm::Event &e, const edm::EventSetup &c, coral::ISessionProxy *s)
Analyze.
static PFTauRenderPlugin instance
void beginJob(void) override
EcalBarrelMonitorDbModule(const edm::ParameterSet &ps)
Constructor.
coral::ISessionProxy * session_
MonitorElementsDb * ME_Db_