CondTools
Ecal
interface
EcalFloatCondObjectContainerXMLTranslator.h
Go to the documentation of this file.
1
10
#ifndef __EcalFloatCondObjectContainterXMLTranslator_h_
11
#define __EcalFloatCondObjectContainterXMLTranslator_h_
12
13
#include "
CondTools/Ecal/interface/EcalCondHeader.h
"
14
#include "
CondFormats/EcalObjects/interface/EcalCondObjectContainer.h
"
15
#include <string>
16
#include <vector>
17
18
class
EcalFloatCondObjectContainerXMLTranslator
{
19
public
:
20
static
int
readXML
(
const
std::string
&
filename
,
EcalCondHeader
&
header
,
EcalFloatCondObjectContainer
&
record
);
21
22
static
std::vector<float>
barrelfromXML
(
const
std::string
&
filename
);
23
24
static
std::vector<float>
endcapfromXML
(
const
std::string
&
filename
);
25
26
static
int
writeXML
(
const
std::string
&
filename
,
27
const
EcalCondHeader
&
header
,
28
const
EcalFloatCondObjectContainer
&
record
);
29
30
// dump the two flat arrays (hashed-indexed as in EBDetId, EEDetId) to XML
31
static
std::string
dumpXML
(
const
EcalCondHeader
&
header
,
const
std::vector<float>& eb,
const
std::vector<float>& ee);
32
33
private
:
34
// dump the CMSSW object container to XML
35
static
std::string
dumpXML
(
const
EcalCondHeader
&
header
,
const
EcalFloatCondObjectContainer
&
record
);
36
};
37
38
#endif // __EcalFloatCondObjectContainerXMLTranslator_h_
EcalFloatCondObjectContainerXMLTranslator::barrelfromXML
static std::vector< float > barrelfromXML(const std::string &filename)
Definition:
EcalFloatCondObjectContainerXMLTranslator.cc:140
GlobalPosition_Frontier_DevDB_cff.record
record
Definition:
GlobalPosition_Frontier_DevDB_cff.py:10
EcalCondObjectContainer< float >
EcalFloatCondObjectContainerXMLTranslator::readXML
static int readXML(const std::string &filename, EcalCondHeader &header, EcalFloatCondObjectContainer &record)
Definition:
EcalFloatCondObjectContainerXMLTranslator.cc:23
EcalCondObjectContainer.h
corrVsCorr.filename
filename
Definition:
corrVsCorr.py:123
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
EcalCondHeader
Definition:
EcalCondHeader.h:16
EcalFloatCondObjectContainerXMLTranslator::endcapfromXML
static std::vector< float > endcapfromXML(const std::string &filename)
Definition:
EcalFloatCondObjectContainerXMLTranslator.cc:148
EcalFloatCondObjectContainerXMLTranslator::dumpXML
static std::string dumpXML(const EcalCondHeader &header, const std::vector< float > &eb, const std::vector< float > &ee)
Definition:
EcalFloatCondObjectContainerXMLTranslator.cc:156
EcalCondHeader.h
RecoTauValidation_cfi.header
header
Definition:
RecoTauValidation_cfi.py:292
EcalFloatCondObjectContainerXMLTranslator
Definition:
EcalFloatCondObjectContainerXMLTranslator.h:18
EcalFloatCondObjectContainerXMLTranslator::writeXML
static int writeXML(const std::string &filename, const EcalCondHeader &header, const EcalFloatCondObjectContainer &record)
Definition:
EcalFloatCondObjectContainerXMLTranslator.cc:246
Generated for CMSSW Reference Manual by
1.8.16