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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#ifndef PixelTTCciConfig_h
#define PixelTTCciConfig_h
//
// This class reads the TTC configuration file
//
//
//
#include <string>
#include <vector>
#include <map>
#include <set>
#include <fstream>
#include <iostream>
#include <sstream>
#include "CalibFormats/SiPixelObjects/interface/PixelConfigBase.h"
namespace pos {
class PixelTTCciConfig : public PixelConfigBase {
public:
PixelTTCciConfig(std::string filename);
PixelTTCciConfig(std::vector<std::vector<std::string> > &);
//std::string getTTCConfigPath() {return ttcConfigPath_;}
std::stringstream &getTTCConfigStream() { return ttcConfigStream_; }
void writeASCII(std::string dir) const override;
void writeXML(pos::PixelConfigKey key, int version, std::string path) const override { ; }
void writeXMLHeader(pos::PixelConfigKey key,
int version,
std::string path,
std::ofstream *out,
std::ofstream *out1 = nullptr,
std::ofstream *out2 = nullptr) const override;
void writeXML(std::ofstream *out, std::ofstream *out1 = nullptr, std::ofstream *out2 = nullptr) const override;
void writeXMLTrailer(std::ofstream *out,
std::ofstream *out1 = nullptr,
std::ofstream *out2 = nullptr) const override;
private:
//std::string ttcConfigPath_;
std::stringstream ttcConfigStream_;
};
} // namespace pos
#endif
|