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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
#ifndef PixelTBMSettings_h
#define PixelTBMSettings_h
/**
* \file CalibFormats/SiPixelObjects/interface/PixelTBMSettings.h
* \brief This class implements..
*
* A longer explanation will be placed here later
*
*/
#include <vector>
#include "CalibFormats/SiPixelObjects/interface/PixelConfigBase.h"
#include "CalibFormats/SiPixelObjects/interface/PixelFECConfigInterface.h"
#include "CalibFormats/SiPixelObjects/interface/PixelNameTranslation.h"
namespace pos {
/*! \ingroup ConfigurationObjects "Configuration Objects"
*
* @{
*
* \class PixelTBMSettings PixelTBMSettings.h
* \brief This is the documentation about PixelTBMSettings...
*
* A longer explanation will be placed here later
*
*/
class PixelTBMSettings : public PixelConfigBase {
public:
PixelTBMSettings(std::vector<std::vector<std::string> > &tableMat);
PixelTBMSettings(std::string filename);
// modified by MR on 29-04-2008 16:43:30
PixelTBMSettings() : PixelConfigBase("", "", "") { ; }
~PixelTBMSettings() override {}
//Generate the DAC settings
void generateConfiguration(PixelFECConfigInterface *pixelFEC,
PixelNameTranslation *trans,
bool physics = false,
bool doResets = true) const;
void writeBinary(std::string filename) const;
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;
unsigned char getAnalogInputBias() const { return analogInputBias_; }
void setAnalogInputBias(unsigned char analogInputBias) { analogInputBias_ = analogInputBias; }
unsigned char getAnalogOutputBias() const { return analogOutputBias_; }
void setAnalogOutputBias(unsigned char analogOutputBias) { analogOutputBias_ = analogOutputBias; }
unsigned char getAnalogOutputGain() const { return analogOutputGain_; }
void setAnalogOutputGain(unsigned char analogOutputGain) { analogOutputGain_ = analogOutputGain; }
// Added by Dario (Apr 2008)
bool getMode(void) const { return singlemode_; }
void setMode(bool mode) { singlemode_ = mode; }
PixelROCName const &getROCName() const { return rocid_; }
void setROCName(std::string rocname) {
PixelROCName tmp(rocname);
rocid_ = tmp;
}
void setTBMGenericValue(std::string, int);
private:
PixelROCName rocid_;
PixelModuleName moduleId_;
unsigned char analogInputBias_;
unsigned char analogOutputBias_;
unsigned char analogOutputGain_;
bool singlemode_;
};
std::ostream &operator<<(std::ostream &s, const PixelTBMSettings &mask);
} // namespace pos
/* @} */
#endif
|