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