#include <TGCDatabaseInPP.h>
|
| | TGCDatabaseInPP (const std::string &filename, const std::string &blockname) |
| | Constructor.
|
| | TGCDatabaseInPP (const TGCDatabaseInPP &) |
| | Copy constructor.
|
| virtual | ~TGCDatabaseInPP () |
| | 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 () const |
| virtual int | getEntry (int entry, int column) const |
| virtual int | getEntrySize (int entry) const |
| virtual int | getMaxEntry () const |
| virtual int | getIndexDBOut (int *indexOut) const |
Definition at line 12 of file TGCDatabaseInPP.h.
◆ DatabaseType
| Enumerator |
|---|
| NoDatabaseType | |
| ASDToPP | |
| InPP | |
| PPToSL | |
| SLBToROD | |
| MaxDatabaseType | |
Definition at line 15 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 29 of file TGCDatabaseInPP.h.
◆ TGCDatabaseInPP() [1/3]
| MuonTGC_Cabling::TGCDatabaseInPP::TGCDatabaseInPP |
( |
const std::string & | filename, |
|
|
const std::string & | blockname ) |
Constructor.
Definition at line 12 of file TGCDatabaseInPP.cxx.
15 for (
int iIndexIn = 0; iIndexIn <
NIndexIn; iIndexIn++) {
18 }
19
20
22}
virtual void readDB() override
int m_maxIndexIn[NIndexIn]
int m_minIndexIn[NIndexIn]
TGCDatabase(DatabaseType type=NoDatabaseType)
◆ TGCDatabaseInPP() [2/3]
| MuonTGC_Cabling::TGCDatabaseInPP::TGCDatabaseInPP |
( |
const TGCDatabaseInPP & | right | ) |
|
◆ ~TGCDatabaseInPP()
| MuonTGC_Cabling::TGCDatabaseInPP::~TGCDatabaseInPP |
( |
| ) |
|
|
virtual |
◆ TGCDatabaseInPP() [3/3]
| MuonTGC_Cabling::TGCDatabaseInPP::TGCDatabaseInPP |
( |
| ) |
|
|
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 177 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 |
( |
| ) |
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 72 of file TGCDatabaseInPP.cxx.
72 {
73 if (!indexIn) {
74 return -1;
75 }
76
79 return -1;
80 }
81
83}
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 |
( |
| ) |
const |
|
virtualinherited |
◆ getmaxIndexIn()
| void MuonTGC_Cabling::TGCDatabaseInPP::getmaxIndexIn |
( |
int * | tmpmaxIndexIn | ) |
const |
|
virtual |
Get the maximum values of indexIn with NIndexIn dimensions.
Definition at line 93 of file TGCDatabaseInPP.cxx.
93 {
94 for (
int iIndexIn = 0; iIndexIn <
NIndexIn; iIndexIn++) {
96 }
97}
◆ getminIndexIn()
| void MuonTGC_Cabling::TGCDatabaseInPP::getminIndexIn |
( |
int * | tmpminIndexIn | ) |
const |
|
virtual |
Get the minimum values of indexIn with NIndexIn dimensions.
Definition at line 99 of file TGCDatabaseInPP.cxx.
99 {
100 for (
int iIndexIn = 0; iIndexIn <
NIndexIn; iIndexIn++) {
102 }
103}
◆ getNIndexDBIn()
| void MuonTGC_Cabling::TGCDatabaseInPP::getNIndexDBIn |
( |
int & | tmpNIndexDBIn | ) |
const |
|
virtual |
◆ makeIndexDBIn()
| void MuonTGC_Cabling::TGCDatabaseInPP::makeIndexDBIn |
( |
| ) |
|
|
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++) {
170 tmpValIndexIn[iIndexIn] =
172 }
174 }
175}
◆ operator=()
hidden assignment operator
◆ readDB()
| void MuonTGC_Cabling::TGCDatabaseInPP::readDB |
( |
| ) |
|
|
overrideprivatevirtual |
Reimplemented from MuonTGC_Cabling::TGCDatabase.
Definition at line 105 of file TGCDatabaseInPP.cxx.
105 {
108
109 for (
int iIndexIn = 0; iIndexIn <
NIndexIn; iIndexIn++) {
112 }
113
114 while (getline(
file, buf)) {
116 break;
117 }
118 }
119
120 while (getline(
file, buf)) {
121 if (
buf.substr(0, 1) ==
"E" ||
buf.substr(0, 1) ==
"F") {
122 break;
123 }
124 std::istringstream
line(buf);
125 std::vector<int>
entry;
126 for (
int i = 0;
i < 6;
i++) {
127 int temp = -1;
129 entry.push_back(temp);
130
135 }
138 }
139 }
140 }
141 for (
int i = 0;
i < 3;
i++) {
142 int temp = -1;
144 if (temp < 0) {
145 break;
146 }
147 entry.push_back(temp);
148 }
150 }
151
153
155}
virtual void makeIndexDBIn()
Make the IndexDBIn table.
float j(const xAOD::IParticle &, const xAOD::TrackMeasurementValidation &hit, const Eigen::Matrix3d &jab_inv)
◆ update()
| bool MuonTGC_Cabling::TGCDatabaseInPP::update |
( |
const std::vector< int > & | input | ) |
|
|
overridevirtual |
Reimplemented from MuonTGC_Cabling::TGCDatabase.
Definition at line 34 of file TGCDatabaseInPP.cxx.
34 {
36 if (ip < 0) {
37 return false;
38 }
39
40 const unsigned int input_size =
input.size();
41
42 const unsigned int database_ip_size =
m_database[
ip].size();
43 for (
unsigned int i = 3;
i < database_ip_size;
i++) {
44 if (i <
input.size()) {
46 } else {
48 }
49 }
50 if (database_ip_size < input_size) {
51 for (
unsigned int i = database_ip_size;
i < input_size;
i++) {
53 }
54 }
55 return true;
56}
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: