1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/**
Translates a EcalClusterEnergyCorrection record to XML
and vice versa
\author
\version $Id: EcalClusterEnergyCorrectionObjectSpecificXMLTranslator.h,v 1.0 $
\date November 2011
*/
#ifndef __EcalClusterEnergyCorrectionObjectSpecificXMLTranslator_h_
#define __EcalClusterEnergyCorrectionObjectSpecificXMLTranslator_h_
#include "CondTools/Ecal/interface/EcalCondHeader.h"
#include "CondFormats/EcalObjects/interface/EcalFunctionParameters.h"
#include <string>
class EcalClusterEnergyCorrectionObjectSpecificXMLTranslator {
public:
static int readXML(const std::string& filename, EcalCondHeader& header, EcalFunParams& record);
static int writeXML(const std::string& filename, const EcalCondHeader& header, const EcalFunParams& record);
private:
// dump the CMSSW object container to XML
static std::string dumpXML(const EcalCondHeader& header, const EcalFunParams& record);
};
#endif // __EcalClusterEnergyCorrectionXMLTranslator_h_
|