#include <TGCDatabaseInPP.h>
|
| | TGCDatabaseInPP (const std::string &filename, const std::string &blockname) |
| | Constructor.
|
| | TGCDatabaseInPP (const TGCDatabaseInPP &) |
| | Copy constructor.
|
| virtual | ~TGCDatabaseInPP (void) |
| | Destructor.
|
| virtual bool | update (const std::vector< int > &) override |
| virtual int | find (const std::vector< int > &) const override |
| virtual int | getIndexDBIn (int *indexIn) const override |
| | Get IndexDBIn (position in the databse between 0 and database.size()-1) from indexIn which is NIndexIn-dimension array.
|
| virtual void | getindexDBVectorIn (std::vector< int > &tmpindexDBIn) const |
| | Get the IndexDBIn table.
|
| virtual void | getNIndexDBIn (int &tmpNIndexDBIn) const |
| | Get the size of the IndexDBIn table.
|
| virtual void | getmaxIndexIn (int *tmpmaxIndexIn) const |
| | Get the maximum values of indexIn with NIndexIn dimensions.
|
| virtual void | getminIndexIn (int *tmpminIndexIn) const |
| | Get the minimum values of indexIn with NIndexIn dimensions.
|
| DatabaseType | getDatabaseType (void) const |
| virtual int | getEntry (int entry, int column) const |
| virtual int | getEntrySize (int entry) const |
| virtual int | getMaxEntry (void) const |
| virtual int | getIndexDBOut (int *indexOut) const |
Definition at line 13 of file TGCDatabaseInPP.h.
◆ DatabaseType
| Enumerator |
|---|
| NoDatabaseType | |
| ASDToPP | |
| InPP | |
| PPToSL | |
| SLBToROD | |
| MaxDatabaseType | |
Definition at line 17 of file TGCDatabase.h.
◆ INDEXIN
share/MuonTGC_Cabling_PP.db
uu = output-channel
ID of
a connector
zz = input-channel
ID of
a connector
X, Y, ZZ = OR'ed channel informationin (if exist)
std::vector< Identifier > ID
(s, t, uu) is used as IndexIn in this class.
| Enumerator |
|---|
| NIndexIn | |
| IndexInMin | |
| IndexInMax | |
Definition at line 31 of file TGCDatabaseInPP.h.
◆ TGCDatabaseInPP() [1/3]
| MuonTGC_Cabling::TGCDatabaseInPP::TGCDatabaseInPP |
( |
const std::string & | filename, |
|
|
const std::string & | blockname ) |
Constructor.
Definition at line 13 of file TGCDatabaseInPP.cxx.
16{
17 for(
int iIndexIn=0; iIndexIn<
NIndexIn; iIndexIn++) {
20 }
21
22
24}
virtual void readDB(void) override
int m_maxIndexIn[NIndexIn]
int m_minIndexIn[NIndexIn]
TGCDatabase(DatabaseType type=NoDatabaseType)
◆ TGCDatabaseInPP() [2/3]
| MuonTGC_Cabling::TGCDatabaseInPP::TGCDatabaseInPP |
( |
const TGCDatabaseInPP & | right | ) |
|
Copy constructor.
Definition at line 26 of file TGCDatabaseInPP.cxx.
28{
33}
std::vector< int > m_indexDBIn
◆ ~TGCDatabaseInPP()
| MuonTGC_Cabling::TGCDatabaseInPP::~TGCDatabaseInPP |
( |
void | | ) |
|
|
virtual |
◆ TGCDatabaseInPP() [3/3]
| MuonTGC_Cabling::TGCDatabaseInPP::TGCDatabaseInPP |
( |
void | | ) |
|
|
inlineprivate |
◆ convertIndexDBIn()
| int MuonTGC_Cabling::TGCDatabaseInPP::convertIndexDBIn |
( |
int * | indexIn | ) |
const |
|
privatevirtual |
Get the internal number, which is between 0 and NIndexDBIn-1.
Definition at line 176 of file TGCDatabaseInPP.cxx.
177{
179 for(
int iIndexIn=1; iIndexIn<
NIndexIn; iIndexIn++) {
182 }
184}
◆ find()
| int MuonTGC_Cabling::TGCDatabaseInPP::find |
( |
const std::vector< int > & | channel | ) |
const |
|
overridevirtual |
◆ 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::TGCDatabaseInPP::getIndexDBIn |
( |
int * | indexIn | ) |
const |
|
overridevirtual |
Get IndexDBIn (position in the databse between 0 and database.size()-1) from indexIn which is NIndexIn-dimension array.
Reimplemented from MuonTGC_Cabling::TGCDatabase.
Definition at line 77 of file TGCDatabaseInPP.cxx.
78{
79 if(!indexIn) return -1;
80
83
85}
virtual int convertIndexDBIn(int *indexIn) const
Get the internal number, which is between 0 and NIndexDBIn-1.
◆ getIndexDBOut()
| int MuonTGC_Cabling::TGCDatabase::getIndexDBOut |
( |
int * | indexOut | ) |
const |
|
virtualinherited |
◆ getindexDBVectorIn()
| void MuonTGC_Cabling::TGCDatabaseInPP::getindexDBVectorIn |
( |
std::vector< int > & | tmpindexDBIn | ) |
const |
|
virtual |
◆ getMaxEntry()
| int MuonTGC_Cabling::TGCDatabase::getMaxEntry |
( |
void | | ) |
const |
|
virtualinherited |
◆ getmaxIndexIn()
| void MuonTGC_Cabling::TGCDatabaseInPP::getmaxIndexIn |
( |
int * | tmpmaxIndexIn | ) |
const |
|
virtual |
Get the maximum values of indexIn with NIndexIn dimensions.
Definition at line 97 of file TGCDatabaseInPP.cxx.
98{
99 for(
int iIndexIn=0; iIndexIn<
NIndexIn; iIndexIn++) {
101 }
102}
◆ getminIndexIn()
| void MuonTGC_Cabling::TGCDatabaseInPP::getminIndexIn |
( |
int * | tmpminIndexIn | ) |
const |
|
virtual |
Get the minimum values of indexIn with NIndexIn dimensions.
Definition at line 104 of file TGCDatabaseInPP.cxx.
105{
106 for(
int iIndexIn=0; iIndexIn<
NIndexIn; iIndexIn++) {
108 }
109}
◆ getNIndexDBIn()
| void MuonTGC_Cabling::TGCDatabaseInPP::getNIndexDBIn |
( |
int & | tmpNIndexDBIn | ) |
const |
|
virtual |
◆ makeIndexDBIn()
| void MuonTGC_Cabling::TGCDatabaseInPP::makeIndexDBIn |
( |
void | | ) |
|
|
privatevirtual |
Make the IndexDBIn table.
Definition at line 157 of file TGCDatabaseInPP.cxx.
157 {
159 for(
int iIndexIn=0; iIndexIn<
NIndexIn; iIndexIn++) {
161 }
162 for(
int iIndexDBIn=0; iIndexDBIn<
m_NIndexDBIn; iIndexDBIn++) {
164 }
165
167 for(
int i=0;
i<size;
i++) {
169 for(
int iIndexIn=0; iIndexIn<
NIndexIn; iIndexIn++) {
171 }
173 }
174}
◆ operator=()
hidden assignment operator
◆ readDB()
| void MuonTGC_Cabling::TGCDatabaseInPP::readDB |
( |
void | | ) |
|
|
overrideprivatevirtual |
Reimplemented from MuonTGC_Cabling::TGCDatabase.
Definition at line 111 of file TGCDatabaseInPP.cxx.
111 {
114
115 for(
int iIndexIn=0; iIndexIn<
NIndexIn; iIndexIn++) {
118 }
119
120 while(getline(
file,buf)){
122 }
123
124 while(getline(
file,buf)){
125 if(
buf.substr(0,1)==
"E"||
buf.substr(0,1)==
"F")
break;
126 std::istringstream
line(buf);
127 std::vector<int>
entry;
128 for(
int i=0;
i<6;
i++){
129 int temp=-1;
131 entry.push_back(temp);
132
137 }
140 }
141 }
142 }
143 for(
int i=0;
i<3;
i++){
144 int temp=-1;
146 if(temp<0) break;
147 entry.push_back(temp);
148 }
150 }
151
153
155}
virtual void makeIndexDBIn(void)
Make the IndexDBIn table.
◆ update()
| bool MuonTGC_Cabling::TGCDatabaseInPP::update |
( |
const std::vector< int > & | input | ) |
|
|
overridevirtual |
Reimplemented from MuonTGC_Cabling::TGCDatabase.
Definition at line 39 of file TGCDatabaseInPP.cxx.
40{
42 if(ip<0) return false;
43
44 const unsigned int input_size =
input.size();
45
46 const unsigned int database_ip_size =
m_database[
ip].size();
47 for(
unsigned int i=3;
i<database_ip_size;
i++){
50 } else {
52 }
53 }
54 if(database_ip_size < input_size){
55 for(
unsigned int i=database_ip_size;
i<input_size;
i++){
57 }
58 }
59 return true;
60}
virtual int find(const std::vector< int > &) const override
◆ 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_indexDBIn
| std::vector<int> MuonTGC_Cabling::TGCDatabaseInPP::m_indexDBIn |
|
private |
◆ m_maxIndexIn
| int MuonTGC_Cabling::TGCDatabaseInPP::m_maxIndexIn[NIndexIn] {} |
|
private |
◆ m_minIndexIn
| int MuonTGC_Cabling::TGCDatabaseInPP::m_minIndexIn[NIndexIn] {} |
|
private |
◆ m_NIndexDBIn
| int MuonTGC_Cabling::TGCDatabaseInPP::m_NIndexDBIn = 0 |
|
private |
◆ m_type
The documentation for this class was generated from the following files: