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 PixelTrimBase_h
#define PixelTrimBase_h
/**
* \file CalibFormats/SiPixelObjects/interface/PixelTrimBase.h
* \brief This class provides a base class for the pixel trim data for the pixel FEC configuration
*
* This is a pure interface (abstract class) that
* needs to have an implementation.
*
* Need to figure out what is 'VMEcommand' below!
*
* All applications should just use this
* interface and not care about the specific
* implementation
*
*/
#include <string>
#include "CalibFormats/SiPixelObjects/interface/PixelTrimOverrideBase.h"
#include "CalibFormats/SiPixelObjects/interface/PixelTrimBase.h"
#include "CalibFormats/SiPixelObjects/interface/PixelROCTrimBits.h"
#include "CalibFormats/SiPixelObjects/interface/PixelROCName.h"
#include "CalibFormats/SiPixelObjects/interface/PixelNameTranslation.h"
#include "CalibFormats/SiPixelObjects/interface/PixelFECConfigInterface.h"
namespace pos {
/*! \defgroup TrimObjects "Trim Objects"
* \ingroup ConfigurationObjects "Configuration Objects"
*
* @{
*
* \class PixelTrimBase PixelTrimBase.h
* \brief This class provides a base class for the pixel trim data for the pixel FEC configuration
*
* This is a pure interface (abstract class) that
* needs to have an implementation.
*
* Need to figure out what is 'VMEcommand' below!
*
* All applications should just use this
* interface and not care about the specific
* implementation
*
*/
class PixelTrimBase : public PixelConfigBase {
public:
PixelTrimBase(std::string description, std::string creator, std::string date);
~PixelTrimBase() override;
void setOverride(PixelTrimOverrideBase* trimOverride);
//Build the commands needed to configure ROCs
//on control link
virtual void generateConfiguration(PixelFECConfigInterface* pixelFEC,
PixelNameTranslation* trans,
const PixelMaskBase& pixelMask) const = 0;
virtual void writeBinary(std::string filename) const = 0;
void writeASCII(std::string filename) const override = 0;
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 {
;
}
virtual PixelROCTrimBits getTrimBits(int ROCId) const = 0;
virtual PixelROCTrimBits* getTrimBits(PixelROCName name) = 0;
friend std::ostream& operator<<(std::ostream& s, const PixelTrimBase& mask);
private:
PixelTrimOverrideBase* trimOverride_;
};
} // namespace pos
/* @} */
#endif
|