ATLAS Offline Software
Public Types | Public Member Functions | Static Public Attributes | Protected Attributes | Private Member Functions | Private Attributes | List of all members
MuonTGC_Cabling::TGCDatabaseASDToPP Class Reference

#include <TGCDatabaseASDToPP.h>

Inheritance diagram for MuonTGC_Cabling::TGCDatabaseASDToPP:
Collaboration diagram for MuonTGC_Cabling::TGCDatabaseASDToPP:

Public Types

enum  DATABASESIZE { DATABASESIZE =8 }
 
enum  INDEXIN { NIndexIn =3 }
 
enum  INDEXOUT { NIndexOut =3 }
 
enum  DatabaseType {
  NoDatabaseType =-1, ASDToPP, InPP, PPToSL,
  SLBToROD, MaxDatabaseType
}
 

Public Member Functions

 TGCDatabaseASDToPP (const std::string &filename, const std::string &blockname, bool v_isCommon=true)
 Constructor. More...
 
 TGCDatabaseASDToPP (const TGCDatabaseASDToPP &, bool v_isCommon=true)
 Copy constructor. More...
 
virtual ~TGCDatabaseASDToPP (void)
 Destructor. More...
 
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. More...
 
virtual int getIndexDBOut (int *indexOut) const override
 Get IndexDBOut (position in the databse between 0 and database.size()-1) from indexOut which is NIndexOut-dimension array. More...
 
virtual void getindexDBVectorIn (std::vector< int > &tmpindexDBIn) const
 Get the IndexDBIn table. More...
 
virtual void getNIndexDBIn (int &tmpNIndexDBIn) const
 Get the size of the IndexDBIn table. More...
 
virtual void getmaxIndexIn (int *tmpmaxIndexIn) const
 Get the maximum values of indexIn with NIndexIn dimensions. More...
 
virtual void getminIndexIn (int *tmpminIndexIn) const
 Get the minimum values of indexIn with NIndexIn dimensions. More...
 
virtual void getindexDBVectorOut (std::vector< int > &tmpindexDBOut) const
 Get the IndexDBOut table. More...
 
virtual void getNIndexDBOut (int &tmpNIndexDBOut) const
 Get the size of the IndexDBOut table. More...
 
virtual void getmaxIndexOut (int *tmpmaxIndexOut) const
 Get the maximum values of indexOut with NIndexOut dimensions. More...
 
virtual void getminIndexOut (int *tmpminIndexOut) const
 Get the minimum values of indexOut with NIndexOut dimensions. More...
 
bool isCommon () const
 This method is used to know the database is common or sector specific. More...
 
DatabaseType getDatabaseType (void) const
 
virtual int getEntry (int entry, int column) const
 
virtual int getEntrySize (int entry) const
 
virtual int getMaxEntry (void) const
 

Static Public Attributes

static const int IndexIn [NIndexIn] = {0, 1, 6}
 
static const int ReverseIndexIn [DATABASESIZE] = {0, 1, -1, -1, -1, -1, 2, -1}
 
static const int IndexOut [NIndexOut] = {3, 4, 5}
 
static const int ReverseIndexOut [DATABASESIZE] = {-1, -1, -1, 0, 1, 2, -1, -1}
 

Protected Attributes

std::string m_filename
 
std::string m_blockname
 
std::vector< std::vector< int > > m_database
 

Private Member Functions

virtual void readDB (void) override
 
 TGCDatabaseASDToPP (void)
 
virtual void makeIndexDBIn (void)
 Make the IndexDBIn table. More...
 
virtual int convertIndexDBIn (int *indexIn) const
 Get the interal number, which is between 0 and NIndexDBIn-1. More...
 
virtual void makeIndexDBOut (void)
 Make the IndexDBOut table. More...
 
virtual int convertIndexDBOut (int *indexOut) const
 Get the interal number, which is between 0 and NIndexDBOut-1. More...
 
TGCDatabaseASDToPPoperator= (const TGCDatabaseASDToPP &right)
 hidden assignment operator More...
 

Private Attributes

std::vector< int > m_indexDBIn
 
int m_NIndexDBIn = 0
 
int m_maxIndexIn [NIndexIn] {}
 
int m_minIndexIn [NIndexIn] {}
 
std::vector< int > m_indexDBOut
 
int m_NIndexDBOut = 0
 
int m_maxIndexOut [NIndexOut] {}
 
int m_minIndexOut [NIndexOut] {}
 
bool m_isCommon
 This bool variable is used to know the database is common or sector specific. More...
 
DatabaseType m_type
 

Detailed Description

Definition at line 13 of file TGCDatabaseASDToPP.h.

Member Enumeration Documentation

◆ DATABASESIZE

share/MuonTGC_Cabling_ASD2PP.db
s t uuu x y zz
uuu = Wire-group ID
x = PP ID
y = PP input-connector ID
zz = PP input-channel ID of a connector

(x, y, zz) is used as IndexOut in this class.

Enumerator
DATABASESIZE 

Definition at line 30 of file TGCDatabaseASDToPP.h.

30 {DATABASESIZE=8};

◆ DatabaseType

Enumerator
NoDatabaseType 
ASDToPP 
InPP 
PPToSL 
SLBToROD 
MaxDatabaseType 

Definition at line 17 of file TGCDatabase.h.

◆ INDEXIN

Enumerator
NIndexIn 

Definition at line 31 of file TGCDatabaseASDToPP.h.

31 {NIndexIn=3};

◆ INDEXOUT

Enumerator
NIndexOut 

Definition at line 34 of file TGCDatabaseASDToPP.h.

34 {NIndexOut=3};

Constructor & Destructor Documentation

◆ TGCDatabaseASDToPP() [1/3]

MuonTGC_Cabling::TGCDatabaseASDToPP::TGCDatabaseASDToPP ( const std::string &  filename,
const std::string &  blockname,
bool  v_isCommon = true 
)

Constructor.

Definition at line 18 of file TGCDatabaseASDToPP.cxx.

22  m_NIndexDBIn(0), m_NIndexDBOut(0), m_isCommon(v_isCommon)
23 {
24  for(int iIndexIn=0; iIndexIn<NIndexIn; iIndexIn++) {
25  m_maxIndexIn[iIndexIn] = 0;
26  m_minIndexIn[iIndexIn] = 9999;
27  }
28  for(int iIndexOut=0; iIndexOut<NIndexOut; iIndexOut++) {
29  m_maxIndexOut[iIndexOut] = 0;
30  m_minIndexOut[iIndexOut] = 9999;
31  }
32 
33  // read out ascii file and fill database
35 }

◆ TGCDatabaseASDToPP() [2/3]

MuonTGC_Cabling::TGCDatabaseASDToPP::TGCDatabaseASDToPP ( const TGCDatabaseASDToPP right,
bool  v_isCommon = true 
)

Copy constructor.

Definition at line 37 of file TGCDatabaseASDToPP.cxx.

38  : TGCDatabase(right), m_isCommon(v_isCommon)
39 {
40  right.getindexDBVectorIn(m_indexDBIn);
41  right.getNIndexDBIn(m_NIndexDBIn);
42  right.getmaxIndexIn(m_maxIndexIn);
43  right.getminIndexIn(m_minIndexIn);
44 
45  right.getindexDBVectorOut(m_indexDBOut);
46  right.getNIndexDBOut(m_NIndexDBOut);
47  right.getmaxIndexOut(m_maxIndexOut);
48  right.getminIndexOut(m_minIndexOut);
49 }

◆ ~TGCDatabaseASDToPP()

MuonTGC_Cabling::TGCDatabaseASDToPP::~TGCDatabaseASDToPP ( void  )
virtual

Destructor.

Definition at line 51 of file TGCDatabaseASDToPP.cxx.

52 {
53 }

◆ TGCDatabaseASDToPP() [3/3]

MuonTGC_Cabling::TGCDatabaseASDToPP::TGCDatabaseASDToPP ( void  )
inlineprivate

Definition at line 81 of file TGCDatabaseASDToPP.h.

81 {}

Member Function Documentation

◆ convertIndexDBIn()

int MuonTGC_Cabling::TGCDatabaseASDToPP::convertIndexDBIn ( int *  indexIn) const
privatevirtual

Get the interal number, which is between 0 and NIndexDBIn-1.

Definition at line 281 of file TGCDatabaseASDToPP.cxx.

282 {
283  // cppcheck-suppress uninitvar; false positive
284  int converted = indexIn[0]-m_minIndexIn[0];
285  for(int iIndexIn=1; iIndexIn<NIndexIn; iIndexIn++) {
286  converted *= (m_maxIndexIn[iIndexIn]-m_minIndexIn[iIndexIn]+1);
287  converted += indexIn[iIndexIn]-m_minIndexIn[iIndexIn];
288  }
289  return converted;
290 }

◆ convertIndexDBOut()

int MuonTGC_Cabling::TGCDatabaseASDToPP::convertIndexDBOut ( int *  indexOut) const
privatevirtual

Get the interal number, which is between 0 and NIndexDBOut-1.

Definition at line 312 of file TGCDatabaseASDToPP.cxx.

313 {
314  // cppcheck-suppress uninitvar; false positive
315  int converted = indexOut[0]-m_minIndexOut[0];
316  for(int iIndexOut=1; iIndexOut<NIndexOut; iIndexOut++) {
317  converted *= (m_maxIndexOut[iIndexOut]-m_minIndexOut[iIndexOut]+1);
318  converted += indexOut[iIndexOut]-m_minIndexOut[iIndexOut];
319  }
320  return converted;
321 }

◆ find()

int MuonTGC_Cabling::TGCDatabaseASDToPP::find ( const std::vector< int > &  channel) const
overridevirtual

Reimplemented from MuonTGC_Cabling::TGCDatabase.

Definition at line 93 of file TGCDatabaseASDToPP.cxx.

94 {
95  int index=-1;
96  const size_t size = m_database.size();
97  for(size_t i=0; i<size; i++){
98  if(m_database[i].at(2) == channel.at(2) &&
99  m_database[i].at(1) == channel.at(1) &&
100  m_database[i].at(0) == channel.at(0)) {
101  index = i;
102  break;
103  }
104  }
105  return index;
106 }

◆ getDatabaseType()

DatabaseType MuonTGC_Cabling::TGCDatabase::getDatabaseType ( void  ) const
inlineinherited

Definition at line 35 of file TGCDatabase.h.

35 { return m_type; }

◆ getEntry()

int MuonTGC_Cabling::TGCDatabase::getEntry ( int  entry,
int  column 
) const
virtualinherited

Definition at line 28 of file TGCDatabase.cxx.

28  {
29  return m_database[entry].at(column);
30 }

◆ getEntrySize()

int MuonTGC_Cabling::TGCDatabase::getEntrySize ( int  entry) const
virtualinherited

Definition at line 32 of file TGCDatabase.cxx.

32  {
33  return m_database[entry].size();
34 }

◆ getIndexDBIn()

int MuonTGC_Cabling::TGCDatabaseASDToPP::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 108 of file TGCDatabaseASDToPP.cxx.

109 {
110  if(!indexIn) return -1;
111 
112  int converted = convertIndexDBIn(indexIn);
113  if(converted<0 || converted>=m_NIndexDBIn) return -1;
114 
115  return m_indexDBIn.at(converted);
116 }

◆ getIndexDBOut()

int MuonTGC_Cabling::TGCDatabaseASDToPP::getIndexDBOut ( int *  indexOut) const
overridevirtual

Get IndexDBOut (position in the databse between 0 and database.size()-1) from indexOut which is NIndexOut-dimension array.

Reimplemented from MuonTGC_Cabling::TGCDatabase.

Definition at line 142 of file TGCDatabaseASDToPP.cxx.

143 {
144  if(!indexOut) return -1;
145 
146  int converted = convertIndexDBOut(indexOut);
147  if(converted<0 || converted>=m_NIndexDBOut) return -1;
148 
149  return m_indexDBOut.at(converted);
150 }

◆ getindexDBVectorIn()

void MuonTGC_Cabling::TGCDatabaseASDToPP::getindexDBVectorIn ( std::vector< int > &  tmpindexDBIn) const
virtual

Get the IndexDBIn table.

Definition at line 118 of file TGCDatabaseASDToPP.cxx.

119 {
120  tmpindexDBIn = m_indexDBIn;
121 }

◆ getindexDBVectorOut()

void MuonTGC_Cabling::TGCDatabaseASDToPP::getindexDBVectorOut ( std::vector< int > &  tmpindexDBOut) const
virtual

Get the IndexDBOut table.

Definition at line 152 of file TGCDatabaseASDToPP.cxx.

153 {
154  tmpindexDBOut = m_indexDBOut;
155 }

◆ getMaxEntry()

int MuonTGC_Cabling::TGCDatabase::getMaxEntry ( void  ) const
virtualinherited

Definition at line 36 of file TGCDatabase.cxx.

36  {
37  return m_database.size();
38 }

◆ getmaxIndexIn()

void MuonTGC_Cabling::TGCDatabaseASDToPP::getmaxIndexIn ( int *  tmpmaxIndexIn) const
virtual

Get the maximum values of indexIn with NIndexIn dimensions.

Definition at line 128 of file TGCDatabaseASDToPP.cxx.

129 {
130  for(int iIndexIn=0; iIndexIn<NIndexIn; iIndexIn++) {
131  tmpmaxIndexIn[iIndexIn] = m_maxIndexIn[iIndexIn];
132  }
133 }

◆ getmaxIndexOut()

void MuonTGC_Cabling::TGCDatabaseASDToPP::getmaxIndexOut ( int *  tmpmaxIndexOut) const
virtual

Get the maximum values of indexOut with NIndexOut dimensions.

Definition at line 162 of file TGCDatabaseASDToPP.cxx.

163 {
164  for(int iIndexOut=0; iIndexOut<NIndexOut; iIndexOut++) {
165  tmpmaxIndexOut[iIndexOut] = m_maxIndexOut[iIndexOut];
166  }
167 }

◆ getminIndexIn()

void MuonTGC_Cabling::TGCDatabaseASDToPP::getminIndexIn ( int *  tmpminIndexIn) const
virtual

Get the minimum values of indexIn with NIndexIn dimensions.

Definition at line 135 of file TGCDatabaseASDToPP.cxx.

136 {
137  for(int iIndexIn=0; iIndexIn<NIndexIn; iIndexIn++) {
138  tmpminIndexIn[iIndexIn] = m_minIndexIn[iIndexIn];
139  }
140 }

◆ getminIndexOut()

void MuonTGC_Cabling::TGCDatabaseASDToPP::getminIndexOut ( int *  tmpminIndexOut) const
virtual

Get the minimum values of indexOut with NIndexOut dimensions.

Definition at line 169 of file TGCDatabaseASDToPP.cxx.

170 {
171  for(int iIndexOut=0; iIndexOut<NIndexOut; iIndexOut++) {
172  tmpminIndexOut[iIndexOut] = m_minIndexOut[iIndexOut];
173  }
174 }

◆ getNIndexDBIn()

void MuonTGC_Cabling::TGCDatabaseASDToPP::getNIndexDBIn ( int &  tmpNIndexDBIn) const
virtual

Get the size of the IndexDBIn table.

Definition at line 123 of file TGCDatabaseASDToPP.cxx.

124 {
125  tmpNIndexDBIn = m_NIndexDBIn;
126 }

◆ getNIndexDBOut()

void MuonTGC_Cabling::TGCDatabaseASDToPP::getNIndexDBOut ( int &  tmpNIndexDBOut) const
virtual

Get the size of the IndexDBOut table.

Definition at line 157 of file TGCDatabaseASDToPP.cxx.

158 {
159  tmpNIndexDBOut = m_NIndexDBOut;
160 }

◆ isCommon()

bool MuonTGC_Cabling::TGCDatabaseASDToPP::isCommon ( ) const

This method is used to know the database is common or sector specific.

Definition at line 176 of file TGCDatabaseASDToPP.cxx.

177 {
178  return m_isCommon;
179 }

◆ makeIndexDBIn()

void MuonTGC_Cabling::TGCDatabaseASDToPP::makeIndexDBIn ( void  )
privatevirtual

Make the IndexDBIn table.

Definition at line 261 of file TGCDatabaseASDToPP.cxx.

262 {
263  m_NIndexDBIn = 1;
264  for(int iIndexIn=0; iIndexIn<NIndexIn; iIndexIn++) {
265  m_NIndexDBIn *= (m_maxIndexIn[iIndexIn]-m_minIndexIn[iIndexIn]+1);
266  }
267  for(int iIndexDBIn=0; iIndexDBIn<m_NIndexDBIn; iIndexDBIn++) {
268  m_indexDBIn.push_back(-1);
269  }
270 
271  const int size = m_database.size();
272  for(int i=0; i<size; i++) {
273  int tmpValIndexIn[NIndexIn];
274  for(int iIndexIn=0; iIndexIn<NIndexIn; iIndexIn++) {
275  tmpValIndexIn[iIndexIn] = m_database.at(i).at(IndexIn[iIndexIn]);
276  }
277  m_indexDBIn.at(convertIndexDBIn(tmpValIndexIn)) = i;
278  }
279 }

◆ makeIndexDBOut()

void MuonTGC_Cabling::TGCDatabaseASDToPP::makeIndexDBOut ( void  )
privatevirtual

Make the IndexDBOut table.

Definition at line 292 of file TGCDatabaseASDToPP.cxx.

293 {
294  m_NIndexDBOut = 1;
295  for(int iIndexOut=0; iIndexOut<NIndexOut; iIndexOut++) {
296  m_NIndexDBOut *= (m_maxIndexOut[iIndexOut]-m_minIndexOut[iIndexOut]+1);
297  }
298  for(int iIndexDBOut=0; iIndexDBOut<m_NIndexDBOut; iIndexDBOut++) {
299  m_indexDBOut.push_back(-1);
300  }
301 
302  const int size = m_database.size();
303  for(int i=0; i<size; i++) {
304  int tmpValIndexOut[NIndexOut];
305  for(int iIndexOut=0; iIndexOut<NIndexOut; iIndexOut++) {
306  tmpValIndexOut[iIndexOut] = m_database.at(i).at(IndexOut[iIndexOut]);
307  }
308  m_indexDBOut.at(convertIndexDBOut(tmpValIndexOut)) = i;
309  }
310 }

◆ operator=()

TGCDatabaseASDToPP& MuonTGC_Cabling::TGCDatabaseASDToPP::operator= ( const TGCDatabaseASDToPP right)
private

hidden assignment operator

◆ readDB()

void MuonTGC_Cabling::TGCDatabaseASDToPP::readDB ( void  )
overrideprivatevirtual

Reimplemented from MuonTGC_Cabling::TGCDatabase.

Definition at line 181 of file TGCDatabaseASDToPP.cxx.

182 {
183  std::ifstream file(m_filename.c_str());
184  std::string buf;
185 
186  for(int iIndexIn=0; iIndexIn<NIndexIn; iIndexIn++) {
187  m_maxIndexIn[iIndexIn] = 0;
188  m_minIndexIn[iIndexIn] = 9999;
189  }
190  for(int iIndexOut=0; iIndexOut<NIndexOut; iIndexOut++) {
191  m_maxIndexOut[iIndexOut] = 0;
192  m_minIndexOut[iIndexOut] = 9999;
193  }
194 
195  while(getline(file,buf)){
196  if(buf.substr(0,m_blockname.size())==m_blockname) break;
197  }
198 
199  while(getline(file,buf)){
200  if(buf.substr(0,1)=="E"||buf.substr(0,1)=="F") break;
201  std::istringstream line(buf);
202  std::vector<int> entry;
203  for(int i=0; i<DATABASESIZE-2; i++){
204  int temp=-1;
205  line >> temp;
206  entry.push_back(temp);
207  }
208  m_database.push_back(entry);
209  }
210 
211  file.close();
212 
213  int nline = 0;
214  const unsigned int database_size = m_database.size();
215  for(unsigned int i=0; i<database_size; i++){
216  // line is defined in whole sector. [0..n]
217  if(i>0&&m_database[i].at(0)!=m_database[i-1].at(0)) nline=0;
218  m_database[i].push_back(nline++);
219 
220  if(i==database_size-1||
221  m_database[i].at(0)!=m_database[i+1].at(0)||
222  m_database[i].at(1)!=m_database[i+1].at(1)){
223  // increase with R in chamber [0..n]
224  int totline = m_database[i].at(2)+1;
225  for(int j=0; j<totline; j++){
226  m_database[i-j].push_back(j);
227  }
228  }
229  }
230 
231 
232  for(unsigned int i=0; i<database_size; i++){
233  for(int j=0; j<DATABASESIZE; j++){
234  int temp = m_database[i].at(j);
235  int k = ReverseIndexOut[j];
236  if(k>=0) {
237  if(m_maxIndexOut[k]<temp) {
238  m_maxIndexOut[k] = temp;
239  }
240  if(m_minIndexOut[k]>temp) {
241  m_minIndexOut[k] = temp;
242  }
243  }
244 
245  k = ReverseIndexIn[j];
246  if(k>=0) {
247  if(m_maxIndexIn[k]<temp) {
248  m_maxIndexIn[k] = temp;
249  }
250  if(m_minIndexIn[k]>temp) {
251  m_minIndexIn[k] = temp;
252  }
253  }
254  }
255  }
256 
257  makeIndexDBIn();
258  makeIndexDBOut();
259 }

◆ update()

bool MuonTGC_Cabling::TGCDatabaseASDToPP::update ( const std::vector< int > &  input)
overridevirtual

Reimplemented from MuonTGC_Cabling::TGCDatabase.

Definition at line 55 of file TGCDatabaseASDToPP.cxx.

56 {
57  int ip = find(input);
58  if(ip<0) return false;
59 
60  int tmpValIndexOut[NIndexOut];
61  for(int iIndexOut=0; iIndexOut<NIndexOut; iIndexOut++) {
62  tmpValIndexOut[iIndexOut] = input.at(IndexOut[iIndexOut]);
63  }
64 
65  bool over_range = false;
66  for(int iIndexOut=0; iIndexOut<NIndexOut; iIndexOut++) {
67  if(m_maxIndexOut[iIndexOut]<tmpValIndexOut[iIndexOut]) {
68  m_maxIndexOut[iIndexOut] = tmpValIndexOut[iIndexOut];
69  over_range = true;
70  }
71  if(m_minIndexOut[iIndexOut]>tmpValIndexOut[iIndexOut]) {
72  m_minIndexOut[iIndexOut] = tmpValIndexOut[iIndexOut];
73  over_range = true;
74  }
75  }
76  if(over_range) {
77  m_indexDBOut.clear();
79  }
80 
81  int converted = convertIndexDBOut(tmpValIndexOut);
82  if(converted<0 || converted>=m_NIndexDBOut) return false;
83 
85 
86  m_database[ip].at(3) = input.at(3);
87  m_database[ip].at(4) = input.at(4);
88  m_database[ip].at(5) = input.at(5);
89 
90  return true;
91 }

Member Data Documentation

◆ IndexIn

const int MuonTGC_Cabling::TGCDatabaseASDToPP::IndexIn = {0, 1, 6}
static

Definition at line 32 of file TGCDatabaseASDToPP.h.

◆ IndexOut

const int MuonTGC_Cabling::TGCDatabaseASDToPP::IndexOut = {3, 4, 5}
static

Definition at line 35 of file TGCDatabaseASDToPP.h.

◆ m_blockname

std::string MuonTGC_Cabling::TGCDatabase::m_blockname
protectedinherited

Definition at line 53 of file TGCDatabase.h.

◆ m_database

std::vector< std::vector<int> > MuonTGC_Cabling::TGCDatabase::m_database
protectedinherited

Definition at line 54 of file TGCDatabase.h.

◆ m_filename

std::string MuonTGC_Cabling::TGCDatabase::m_filename
protectedinherited

Definition at line 52 of file TGCDatabase.h.

◆ m_indexDBIn

std::vector<int> MuonTGC_Cabling::TGCDatabaseASDToPP::m_indexDBIn
private

Definition at line 88 of file TGCDatabaseASDToPP.h.

◆ m_indexDBOut

std::vector<int> MuonTGC_Cabling::TGCDatabaseASDToPP::m_indexDBOut
private

Definition at line 98 of file TGCDatabaseASDToPP.h.

◆ m_isCommon

bool MuonTGC_Cabling::TGCDatabaseASDToPP::m_isCommon
private

This bool variable is used to know the database is common or sector specific.

Definition at line 104 of file TGCDatabaseASDToPP.h.

◆ m_maxIndexIn

int MuonTGC_Cabling::TGCDatabaseASDToPP::m_maxIndexIn[NIndexIn] {}
private

Definition at line 90 of file TGCDatabaseASDToPP.h.

◆ m_maxIndexOut

int MuonTGC_Cabling::TGCDatabaseASDToPP::m_maxIndexOut[NIndexOut] {}
private

Definition at line 100 of file TGCDatabaseASDToPP.h.

◆ m_minIndexIn

int MuonTGC_Cabling::TGCDatabaseASDToPP::m_minIndexIn[NIndexIn] {}
private

Definition at line 91 of file TGCDatabaseASDToPP.h.

◆ m_minIndexOut

int MuonTGC_Cabling::TGCDatabaseASDToPP::m_minIndexOut[NIndexOut] {}
private

Definition at line 101 of file TGCDatabaseASDToPP.h.

◆ m_NIndexDBIn

int MuonTGC_Cabling::TGCDatabaseASDToPP::m_NIndexDBIn = 0
private

Definition at line 89 of file TGCDatabaseASDToPP.h.

◆ m_NIndexDBOut

int MuonTGC_Cabling::TGCDatabaseASDToPP::m_NIndexDBOut = 0
private

Definition at line 99 of file TGCDatabaseASDToPP.h.

◆ m_type

DatabaseType MuonTGC_Cabling::TGCDatabase::m_type
privateinherited

Definition at line 57 of file TGCDatabase.h.

◆ ReverseIndexIn

const int MuonTGC_Cabling::TGCDatabaseASDToPP::ReverseIndexIn = {0, 1, -1, -1, -1, -1, 2, -1}
static

Definition at line 33 of file TGCDatabaseASDToPP.h.

◆ ReverseIndexOut

const int MuonTGC_Cabling::TGCDatabaseASDToPP::ReverseIndexOut = {-1, -1, -1, 0, 1, 2, -1, -1}
static

Definition at line 36 of file TGCDatabaseASDToPP.h.


The documentation for this class was generated from the following files:
MuonTGC_Cabling::TGCDatabaseASDToPP::ReverseIndexOut
static const int ReverseIndexOut[DATABASESIZE]
Definition: TGCDatabaseASDToPP.h:36
MuonTGC_Cabling::TGCDatabase::PPToSL
@ PPToSL
Definition: TGCDatabase.h:18
ConvertOldHistosToNewHistos.converted
converted
Definition: ConvertOldHistosToNewHistos.py:40
checkFileSG.line
line
Definition: checkFileSG.py:75
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
MuonTGC_Cabling::TGCDatabaseASDToPP::NIndexOut
@ NIndexOut
Definition: TGCDatabaseASDToPP.h:34
xAOD::L2MuonParameters::Chamber
Chamber
Define chamber types and locations.
Definition: TrigMuonDefs.h:15
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
ID
std::vector< Identifier > ID
Definition: CalibHitIDCheck.h:24
MuonTGC_Cabling::TGCDatabase::ASDToPP
@ ASDToPP
Definition: TGCDatabase.h:18
index
Definition: index.py:1
MuonTGC_Cabling::TGCDatabaseASDToPP::IndexIn
static const int IndexIn[NIndexIn]
Definition: TGCDatabaseASDToPP.h:32
LB_AnalMapSplitter.of
of
Definition: LB_AnalMapSplitter.py:48
MuonTGC_Cabling::TGCDatabaseASDToPP::DATABASESIZE
DATABASESIZE
Definition: TGCDatabaseASDToPP.h:30
MuonTGC_Cabling::TGCDatabaseASDToPP::m_maxIndexIn
int m_maxIndexIn[NIndexIn]
Definition: TGCDatabaseASDToPP.h:90
MuonTGC_Cabling::TGCDatabaseASDToPP::convertIndexDBIn
virtual int convertIndexDBIn(int *indexIn) const
Get the interal number, which is between 0 and NIndexDBIn-1.
Definition: TGCDatabaseASDToPP.cxx:281
MuonTGC_Cabling::TGCDatabase::NoDatabaseType
@ NoDatabaseType
Definition: TGCDatabase.h:17
DeMoUpdate.column
dictionary column
Definition: DeMoUpdate.py:1110
MuonTGC_Cabling::TGCDatabaseASDToPP::NIndexIn
@ NIndexIn
Definition: TGCDatabaseASDToPP.h:31
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
MuonTGC_Cabling::TGCDatabaseASDToPP::IndexOut
static const int IndexOut[NIndexOut]
Definition: TGCDatabaseASDToPP.h:35
x
#define x
MuonTGC_Cabling::TGCDatabaseASDToPP::find
virtual int find(const std::vector< int > &) const override
Definition: TGCDatabaseASDToPP.cxx:93
python.RingerConstants.Layer
Layer
Definition: RingerConstants.py:42
MuonTGC_Cabling::TGCDatabaseASDToPP::m_minIndexOut
int m_minIndexOut[NIndexOut]
Definition: TGCDatabaseASDToPP.h:101
MuonTGC_Cabling::TGCDatabaseASDToPP::makeIndexDBOut
virtual void makeIndexDBOut(void)
Make the IndexDBOut table.
Definition: TGCDatabaseASDToPP.cxx:292
MuonTGC_Cabling::TGCDatabase::m_filename
std::string m_filename
Definition: TGCDatabase.h:52
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
lumiFormat.i
int i
Definition: lumiFormat.py:85
python.DecayParser.buf
buf
print ("=> [%s]"cmd)
Definition: DecayParser.py:27
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
file
TFile * file
Definition: tile_monitor.h:29
MuonTGC_Cabling::TGCDatabaseASDToPP::readDB
virtual void readDB(void) override
Definition: TGCDatabaseASDToPP.cxx:181
find_tgc_unfilled_channelids.ip
ip
Definition: find_tgc_unfilled_channelids.py:3
MuonTGC_Cabling::TGCDatabaseASDToPP::ReverseIndexIn
static const int ReverseIndexIn[DATABASESIZE]
Definition: TGCDatabaseASDToPP.h:33
MuonTGC_Cabling::TGCDatabaseASDToPP::m_indexDBIn
std::vector< int > m_indexDBIn
Definition: TGCDatabaseASDToPP.h:88
python.egammaTruthD3PDObject.blockname
blockname
Definition: egammaTruthD3PDObject.py:64
MuonTGC_Cabling::TGCDatabaseASDToPP::makeIndexDBIn
virtual void makeIndexDBIn(void)
Make the IndexDBIn table.
Definition: TGCDatabaseASDToPP.cxx:261
MuonTGC_Cabling::TGCDatabaseASDToPP::m_minIndexIn
int m_minIndexIn[NIndexIn]
Definition: TGCDatabaseASDToPP.h:91
GetAllXsec.entry
list entry
Definition: GetAllXsec.py:132
MuonTGC_Cabling::TGCDatabaseASDToPP::m_NIndexDBOut
int m_NIndexDBOut
Definition: TGCDatabaseASDToPP.h:99
MuonTGC_Cabling::TGCDatabase::m_blockname
std::string m_blockname
Definition: TGCDatabase.h:53
MuonTGC_Cabling::TGCDatabaseASDToPP::m_isCommon
bool m_isCommon
This bool variable is used to know the database is common or sector specific.
Definition: TGCDatabaseASDToPP.h:104
MuonTGC_Cabling::TGCDatabaseASDToPP::m_maxIndexOut
int m_maxIndexOut[NIndexOut]
Definition: TGCDatabaseASDToPP.h:100
MuonTGC_Cabling::TGCDatabase::MaxDatabaseType
@ MaxDatabaseType
Definition: TGCDatabase.h:19
MuonTGC_Cabling::TGCDatabase::SLBToROD
@ SLBToROD
Definition: TGCDatabase.h:18
DeMoScan.index
string index
Definition: DeMoScan.py:364
MuonTGC_Cabling::TGCDatabaseASDToPP::convertIndexDBOut
virtual int convertIndexDBOut(int *indexOut) const
Get the interal number, which is between 0 and NIndexDBOut-1.
Definition: TGCDatabaseASDToPP.cxx:312
a
TList * a
Definition: liststreamerinfos.cxx:10
CaloLCW_tf.group
group
Definition: CaloLCW_tf.py:28
y
#define y
MuonTGC_Cabling::TGCDatabaseASDToPP::m_indexDBOut
std::vector< int > m_indexDBOut
Definition: TGCDatabaseASDToPP.h:98
CaloCellTimeCorrFiller.filename
filename
Definition: CaloCellTimeCorrFiller.py:24
MuonTGC_Cabling::TGCDatabase::TGCDatabase
TGCDatabase(DatabaseType type=NoDatabaseType)
Definition: TGCDatabase.cxx:10
MuonTGC_Cabling::TGCDatabaseASDToPP::m_NIndexDBIn
int m_NIndexDBIn
Definition: TGCDatabaseASDToPP.h:89
MuonTGC_Cabling::TGCDatabase::m_database
std::vector< std::vector< int > > m_database
Definition: TGCDatabase.h:54
MuonTGC_Cabling::TGCDatabase::InPP
@ InPP
Definition: TGCDatabase.h:18
MuonTGC_Cabling::TGCDatabase::m_type
DatabaseType m_type
Definition: TGCDatabase.h:57
fitman.k
k
Definition: fitman.py:528