Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CondTools
Ecal
interface
EcalCondHandler.h
Go to the documentation of this file.
1
#ifndef _CondTools_Ecal_EcalCondHandler_
2
#define _CondTools_Ecal_EcalCondHandler_
3
4
#include "
CondCore/PopCon/interface/PopConSourceHandler.h
"
5
#include "
CondTools/Ecal/interface/EcalCondHeader.h
"
6
#include <string>
7
8
9
template
<
typename
Payload,
typename
XMLTranslator>
10
class
EcalCondHandler
:
11
public
popcon::PopConSourceHandler
<Payload> {
12
13
public
:
14
15
EcalCondHandler
(
const
edm::ParameterSet
& ps):
16
xmlFileSource_
(ps.getUntrackedParameter<std::
string
>(
"xmlFile"
)),
17
since_
(ps.getUntrackedParameter<long long>(
"since"
)){}
18
19
virtual
void
getNewObjects
(){
20
21
EcalCondHeader
header;
22
Payload * payload =
new
Payload;
23
XMLTranslator::readXML
(
xmlFileSource_
,header,*payload);
24
popcon::PopConSourceHandler<Payload>::m_to_transfer
.push_back(
25
std::make_pair(payload,
since_
));
26
}
27
28
virtual
std::string
id
()
const
{
return
std::string
(
"dummy"
);}
29
30
private
:
31
32
std::string
xmlFileSource_
;
33
long
long
since_
;
34
35
36
};
37
38
#endif
39
40
// Configure (x)emacs for this file ...
41
// Local Variables:
42
// mode:c++
43
// compile-command: "scram b"
44
// End
EcalCondHandler::EcalCondHandler
EcalCondHandler(const edm::ParameterSet &ps)
Definition:
EcalCondHandler.h:15
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:31
EcalCondHandler::id
virtual std::string id() const
Definition:
EcalCondHandler.h:28
EcalCondHeader
Definition:
EcalCondHeader.h:17
EcalCondHandler::since_
long long since_
Definition:
EcalCondHandler.h:33
EcalCondHandler
Definition:
EcalCondHandler.h:10
PopConSourceHandler.h
EcalCondHandler::getNewObjects
virtual void getNewObjects()
Definition:
EcalCondHandler.h:19
insertMaterial.readXML
def readXML
Definition:
insertMaterial.py:58
edm::ParameterSet
Definition:
ParameterSet.h:36
EcalCondHeader.h
EcalCondHandler::xmlFileSource_
std::string xmlFileSource_
Definition:
EcalCondHandler.h:32
Generated for CMSSW Reference Manual by
1.8.5