CondTools
SiPixel
interface
PixelPopConSourceHandler.h
Go to the documentation of this file.
1
#ifndef PIXELPOPCONSOURCEHANDLER_H
2
#define PIXELPOPCONSOURCEHANDLER_H
3
4
// Package: CondTools/SiPixel
5
// Class: PixelPopConSourceHandler
13
//
14
// Original Author: Michael Eads
15
// Created: 19 Apr 2008
16
//
17
//
18
19
#include "
CondCore/PopCon/interface/PopConSourceHandler.h
"
20
#include <string>
21
#include <iostream>
22
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
23
24
template
<
class
T>
25
class
PixelPopConSourceHandler
:
public
popcon::PopConSourceHandler
<T> {
26
public
:
27
//PixelPopConSourceHandler(edm::ParameterSet const &) {;}
28
29
void
getNewObjects
()
override
{
30
// look at _connectString to see which method to call
31
if
(
_connectString
.find(
"oracle"
) == 0)
32
getNewObjects_coral
();
33
else
if
(
_connectString
.find(
"file"
) == 0)
34
getNewObjects_file
();
35
else
{
36
std::cout
<<
" PixelPopConSourceHandler::getNewObjects() - unknown connect string:"
<<
_connectString
37
<< std::endl;
38
std::cout
<<
" connect string must begin with \"oracle\" or \"file\""
<< std::endl;
39
}
40
41
}
// virtual void getNewObjects()
42
43
virtual
void
getNewObjects_coral
() { ; }
44
virtual
void
getNewObjects_file
() { ; }
45
std::string
id
()
const override
{
return
std::string
(
"PixelPopConSourceHandler"
); }
46
47
protected
:
48
std::string
_connectString
;
49
std::string
_schemaName
;
50
std::string
_viewName
;
51
std::string
_configKeyName
;
52
int
_runNumber
;
53
unsigned
int
_sinceIOV
;
54
};
55
56
#endif
PopConSourceHandler.h
PixelPopConSourceHandler::getNewObjects
void getNewObjects() override
Definition:
PixelPopConSourceHandler.h:29
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
PixelPopConSourceHandler::getNewObjects_file
virtual void getNewObjects_file()
Definition:
PixelPopConSourceHandler.h:44
PixelPopConSourceHandler::_connectString
std::string _connectString
Definition:
PixelPopConSourceHandler.h:48
PixelPopConSourceHandler::_viewName
std::string _viewName
Definition:
PixelPopConSourceHandler.h:50
PixelPopConSourceHandler::_schemaName
std::string _schemaName
Definition:
PixelPopConSourceHandler.h:49
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:30
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
PixelPopConSourceHandler::_runNumber
int _runNumber
Definition:
PixelPopConSourceHandler.h:52
ParameterSet.h
PixelPopConSourceHandler::_sinceIOV
unsigned int _sinceIOV
Definition:
PixelPopConSourceHandler.h:53
PixelPopConSourceHandler::_configKeyName
std::string _configKeyName
Definition:
PixelPopConSourceHandler.h:51
PixelPopConSourceHandler::getNewObjects_coral
virtual void getNewObjects_coral()
Definition:
PixelPopConSourceHandler.h:43
PixelPopConSourceHandler
Definition:
PixelPopConSourceHandler.h:25
PixelPopConSourceHandler::id
std::string id() const override
Definition:
PixelPopConSourceHandler.h:45
Generated for CMSSW Reference Manual by
1.8.16