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::getNewObjects
void getNewObjects() override
Definition:
EcalCondHandler.h:16
PopConSourceHandler.h
EcalCondHandler::xmlFileSource_
std::string xmlFileSource_
Definition:
EcalCondHandler.h:26
EcalCondHandler::EcalCondHandler
EcalCondHandler(const edm::ParameterSet &ps)
Definition:
EcalCondHandler.h:12
EcalCondHandler
Definition:
EcalCondHandler.h:10
jets_cff.payload
payload
Definition:
jets_cff.py:34
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:36
EcalCondHeader
Definition:
EcalCondHeader.h:16
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:30
std
Definition:
JetResolutionObject.h:76
EcalCondHeader.h
RecoTauValidation_cfi.header
header
Definition:
RecoTauValidation_cfi.py:292
EcalCondHandler::since_
long long since_
Definition:
EcalCondHandler.h:27
ParameterSet.h
EcalCondHandler::id
std::string id() const override
Definition:
EcalCondHandler.h:23
Generated for CMSSW Reference Manual by
1.8.16