#include <TGCDatabasePPToSL.h>
Definition at line 13 of file TGCDatabasePPToSL.h.
◆ DatabaseType
| Enumerator |
|---|
| NoDatabaseType | |
| ASDToPP | |
| InPP | |
| PPToSL | |
| SLBToROD | |
| MaxDatabaseType | |
Definition at line 17 of file TGCDatabase.h.
◆ TGCDatabasePPToSL() [1/3]
| MuonTGC_Cabling::TGCDatabasePPToSL::TGCDatabasePPToSL |
( |
const std::string & | filename, |
|
|
const std::string & | blockname ) |
Definition at line 13 of file TGCDatabasePPToSL.cxx.
16{
17
19}
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 27 of file TGCDatabasePPToSL.cxx.
27 {
30
33 std::string_view region = std::string_view(
m_blockname).substr(space+1,1);
35
37 if(type ==
"WT")
offset = 1;
38 if(type ==
"WD")
offset = 2;
39 if(type ==
"ST")
offset = 3;
40 if(type ==
"SD")
offset = 4;
41 if(type ==
"WI")
offset = 5;
42 if(type ==
"SI")
offset = 6;
43 if(type ==
"W")
offset = 1;
44 if(type ==
"S")
offset = 2;
45
46 while(getline(
file,buf)){
47 if(
buf.compare(0,1,region)==0)
break;
48 }
49
50 while(getline(
file,buf)){
51 if(
buf.compare(1,
module.size(),module)==0)
break;
52 }
53
54 while(getline(
file,buf)){
55 if(
buf.compare(0,2,
" ")!=0)
break;
57 if(offset==0){
58 std::istringstream
line(buf);
59 std::vector<int>
entry;
60 for(
int i=0;
i<3;
i++){
61 int temp=-1;
63 entry.push_back(temp);
64 }
66 }
67 }
68
70}
◆ update()
| bool MuonTGC_Cabling::TGCDatabasePPToSL::update |
( |
const std::vector< int > & | input | ) |
|
|
virtual |
Reimplemented from MuonTGC_Cabling::TGCDatabase.
Definition at line 76 of file TGCDatabasePPToSL.cxx.
77{
79 if(ip<0) return false;
80
81 const unsigned int input_size =
input.size();
82
83 const unsigned int database_size =
m_database[
ip].size();
84 for(
unsigned int i=1;
i<database_size;
i++){
85 if(i<input_size){
87 } else {
89 }
90 }
91
92 return true;
93}
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: