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
|
#ifndef PixelTrimACommon_h
#define PixelTrimACommon_h
/**
* \file CalibFormats/SiPixelObjects/interface/PixelTrimCommon.h
* \brief This class implements..
*
* A longer explanation will be placed here later
*
*/
#include <string>
#include <vector>
#include "CalibFormats/SiPixelObjects/interface/PixelTrimBase.h"
#include "CalibFormats/SiPixelObjects/interface/PixelMaskBase.h"
#include "CalibFormats/SiPixelObjects/interface/PixelROCTrimBits.h"
#include "CalibFormats/SiPixelObjects/interface/PixelNameTranslation.h"
namespace pos {
/*! \ingroup TrimObjects "Trim Objects"
* \ingroup ConfigurationObjects "Configuration Objects"
*
* @{
*
* \class PixelTrimCommon PixelTrimCommon.h
* \brief This class implements..
*
* A longer explanation will be placed here later
*
*/
class PixelTrimCommon : public PixelTrimBase {
public:
PixelTrimCommon(std::string filename);
//Build the commands needed to configure ROCs
//on control link
void generateConfiguration(PixelFECConfigInterface* pixelFEC,
PixelNameTranslation* trans,
const PixelMaskBase& pixelMask) const override;
void writeBinary(std::string filename) const override;
void writeASCII(std::string filename) const override;
void writeXML(pos::PixelConfigKey key, int version, std::string path) const override { ; }
using PixelTrimBase::writeXML;
using PixelTrimBase::writeXMLHeader;
using PixelTrimBase::writeXMLTrailer;
void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream* out) const override { ; }
void writeXML(std::ofstream* out) const override { ; }
void writeXMLTrailer(std::ofstream* out) const override { ; }
private:
std::vector<PixelROCName> rocname_;
std::vector<unsigned int> trimbits_;
};
} // namespace pos
#endif
|