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 "
FWCore/ParameterSet/interface/ParameterSet.h
"
7
#include <string>
8
9
template
<
typename
Payload,
typename
XMLTranslator>
10
class
EcalCondHandler
:
public
popcon::PopConSourceHandler
<Payload> {
11
public
:
12
EcalCondHandler
(
const
edm::ParameterSet
& ps)
13
:
xmlFileSource_
(ps.getUntrackedParameter<
std
::
string
>(
"xmlFile"
)),
14
since_
(ps.getUntrackedParameter<long long>(
"since"
)) {}
15
16
void
getNewObjects
()
override
{
17
EcalCondHeader
header
;
18
Payload*
payload
=
new
Payload;
19
XMLTranslator::readXML(
xmlFileSource_
,
header
, *
payload
);
20
popcon::PopConSourceHandler<Payload>::m_to_transfer
.push_back(std::make_pair(
payload
,
since_
));
21
}
22
23
std::string
id
()
const override
{
return
std::string
(
"dummy"
); }
24
25
private
:
26
std::string
xmlFileSource_
;
27
long
long
since_
;
28
};
29
30
#endif
31
32
// Configure (x)emacs for this file ...
33
// Local Variables:
34
// mode:c++
35
// compile-command: "scram b"
36
// End
EcalCondHandler::id
std::string id() const override
Definition:
EcalCondHandler.h:23
std
Definition:
JetResolutionObject.h:76
EcalCondHandler::EcalCondHandler
EcalCondHandler(const edm::ParameterSet &ps)
Definition:
EcalCondHandler.h:12
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
RecoTauValidation_cfi.header
header
Definition:
RecoTauValidation_cfi.py:291
ParameterSet.h
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:30
EcalCondHandler::getNewObjects
void getNewObjects() override
Definition:
EcalCondHandler.h:16
EcalCondHeader
Definition:
EcalCondHeader.h:16
EcalCondHandler::since_
long long since_
Definition:
EcalCondHandler.h:27
EcalCondHandler
Definition:
EcalCondHandler.h:10
jetsAK4_Puppi_cff.payload
payload
Definition:
jetsAK4_Puppi_cff.py:17
PopConSourceHandler.h
edm::ParameterSet
Definition:
ParameterSet.h:47
EcalCondHeader.h
EcalCondHandler::xmlFileSource_
std::string xmlFileSource_
Definition:
EcalCondHandler.h:26
Generated for CMSSW Reference Manual by
1.8.14