#include <TGCDatabasePPToSL.h>
Definition at line 12 of file TGCDatabasePPToSL.h.
◆ DatabaseType
| Enumerator |
|---|
| NoDatabaseType | |
| ASDToPP | |
| InPP | |
| PPToSL | |
| SLBToROD | |
| MaxDatabaseType | |
Definition at line 15 of file TGCDatabase.h.
◆ TGCDatabasePPToSL() [1/3]
| MuonTGC_Cabling::TGCDatabasePPToSL::TGCDatabasePPToSL |
( |
const std::string & | filename, |
|
|
const std::string & | blockname ) |
Definition at line 12 of file TGCDatabasePPToSL.cxx.
15
17}
virtual void readDB(void)
TGCDatabase(DatabaseType type=NoDatabaseType)
◆ TGCDatabasePPToSL() [2/3]
| MuonTGC_Cabling::TGCDatabasePPToSL::TGCDatabasePPToSL |
( |
const TGCDatabasePPToSL & | right | ) |
|
◆ ~TGCDatabasePPToSL()
| MuonTGC_Cabling::TGCDatabasePPToSL::~TGCDatabasePPToSL |
( |
void | | ) |
|
|
virtual |
◆ TGCDatabasePPToSL() [3/3]
| MuonTGC_Cabling::TGCDatabasePPToSL::TGCDatabasePPToSL |
( |
void | | ) |
|
|
inlineprivate |
◆ find()
| int MuonTGC_Cabling::TGCDatabasePPToSL::find |
( |
const std::vector< int > & | channel | ) |
const |
|
virtual |
◆ getDatabaseType()
| DatabaseType MuonTGC_Cabling::TGCDatabase::getDatabaseType |
( |
void | | ) |
const |
|
inlineinherited |
◆ getEntry()
| int MuonTGC_Cabling::TGCDatabase::getEntry |
( |
int | entry, |
|
|
int | column ) const |
|
virtualinherited |
◆ getEntrySize()
| int MuonTGC_Cabling::TGCDatabase::getEntrySize |
( |
int | entry | ) |
const |
|
virtualinherited |
◆ getIndexDBIn()
| int MuonTGC_Cabling::TGCDatabase::getIndexDBIn |
( |
int * | indexIn | ) |
const |
|
virtualinherited |
◆ getIndexDBOut()
| int MuonTGC_Cabling::TGCDatabase::getIndexDBOut |
( |
int * | indexOut | ) |
const |
|
virtualinherited |
◆ getMaxEntry()
| int MuonTGC_Cabling::TGCDatabase::getMaxEntry |
( |
void | | ) |
const |
|
virtualinherited |
◆ operator=()
hidden assignment operator
◆ readDB()
| void MuonTGC_Cabling::TGCDatabasePPToSL::readDB |
( |
void | | ) |
|
|
privatevirtual |
Reimplemented from MuonTGC_Cabling::TGCDatabase.
Definition at line 22 of file TGCDatabasePPToSL.cxx.
22 {
25
28 std::string_view region =
30 std::string_view
type = std::string_view(
m_blockname).substr(space + 2);
31
33 if (type == "WT") {
35 }
36 if (type == "WD") {
38 }
39 if (type == "ST") {
41 }
42 if (type == "SD") {
44 }
45 if (type == "WI") {
47 }
48 if (type == "SI") {
50 }
51 if (type == "W") {
53 }
54 if (type == "S") {
56 }
57
58 while (getline(
file, buf)) {
59 if (
buf.compare(0, 1, region) == 0) {
60 break;
61 }
62 }
63
64 while (getline(
file, buf)) {
65 if (
buf.compare(1,
module.size(), module) == 0) {
66 break;
67 }
68 }
69
70 while (getline(
file, buf)) {
71 if (
buf.compare(0, 2,
" ") != 0) {
72 break;
73 }
74 if (
buf.compare(2, 1,
"0") == 0) {
76 }
77 if (offset == 0) {
78 std::istringstream
line(buf);
79 std::vector<int>
entry;
80 for (
int i = 0;
i < 3;
i++) {
81 int temp = -1;
83 entry.push_back(temp);
84 }
86 }
87 }
88
90}
◆ update()
| bool MuonTGC_Cabling::TGCDatabasePPToSL::update |
( |
const std::vector< int > & | input | ) |
|
|
virtual |
Reimplemented from MuonTGC_Cabling::TGCDatabase.
Definition at line 94 of file TGCDatabasePPToSL.cxx.
94 {
96 if (ip < 0) {
97 return false;
98 }
99
100 const unsigned int input_size =
input.size();
101
102 const unsigned int database_size =
m_database[
ip].size();
103 for (
unsigned int i = 1;
i < database_size;
i++) {
104 if (i < input_size) {
106 } else {
108 }
109 }
110
111 return true;
112}
virtual int find(const std::vector< int > &) const
◆ m_blockname
| std::string MuonTGC_Cabling::TGCDatabase::m_blockname |
|
protectedinherited |
◆ m_database
| std::vector<std::vector<int> > MuonTGC_Cabling::TGCDatabase::m_database |
|
protectedinherited |
◆ m_filename
| std::string MuonTGC_Cabling::TGCDatabase::m_filename |
|
protectedinherited |
◆ m_type
The documentation for this class was generated from the following files: