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 L1TObjects_L1MuCSCTFConfiguration_h
#define L1TObjects_L1MuCSCTFConfiguration_h
#include "CondFormats/Serialization/interface/Serializable.h"
#include <string>
class L1MuCSCTFConfiguration {
private:
std::string registers[12];
public:
const std::string* configAsText(void) const throw() { return registers; }
using const_iterator = const std::string*;
const_iterator begin() const { return registers; }
const_iterator end() const { return registers + 12; }
const std::string& operator[](int iIndex) const { return registers[iIndex]; }
L1MuCSCTFConfiguration& operator=(const L1MuCSCTFConfiguration& conf) {
for (int sp = 0; sp < 12; sp++)
registers[sp] = conf.registers[sp];
return *this;
}
L1MuCSCTFConfiguration(void) {}
L1MuCSCTFConfiguration(std::string regs[12]) {
for (int sp = 0; sp < 12; sp++)
registers[sp] = regs[sp];
}
L1MuCSCTFConfiguration(const L1MuCSCTFConfiguration& conf) {
for (int sp = 0; sp < 12; sp++)
registers[sp] = conf.registers[sp];
}
~L1MuCSCTFConfiguration(void) {}
/// print all the L1 CSCTF Configuration Parameters
void print(std::ostream&) const;
COND_SERIALIZABLE;
};
#endif
|