Main Page
Namespaces
Classes
Package Documentation
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
void
getNewObjects
()
override
{
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
std::string
id
()
const override
{
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
insertMaterial.readXML
def readXML(fileName)
Definition:
insertMaterial.py:58
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
std
Definition:
JetResolutionObject.h:80
EcalCondHandler::EcalCondHandler
EcalCondHandler(const edm::ParameterSet &ps)
Definition:
EcalCondHandler.h:15
RecoTauValidation_cfi.header
header
Definition:
RecoTauValidation_cfi.py:296
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:32
EcalCondHandler::getNewObjects
void getNewObjects() override
Definition:
EcalCondHandler.h:19
EcalCondHeader
Definition:
EcalCondHeader.h:17
EcalCondHandler::since_
long long since_
Definition:
EcalCondHandler.h:33
EcalCondHandler
Definition:
EcalCondHandler.h:10
jets_cff.payload
payload
Definition:
jets_cff.py:107
PopConSourceHandler.h
EcalCondHandler::id
std::string id() const override
Definition:
EcalCondHandler.h:28
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.11