ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCablings
MuonTGC_Cabling
src
TGCDatabase.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
MuonTGC_Cabling/TGCDatabase.h
"
6
7
namespace
MuonTGC_Cabling
{
8
9
TGCDatabase::TGCDatabase
(
DatabaseType
vtype) :
m_type
(vtype) {}
10
11
TGCDatabase::TGCDatabase
(
DatabaseType
vtype,
const
std::string& vfilename,
12
const
std::string& vblockname)
13
:
m_filename
(vfilename),
m_blockname
(vblockname),
m_type
(vtype) {}
14
15
TGCDatabase::~TGCDatabase
() {}
16
17
int
TGCDatabase::getEntry
(
int
entry,
int
column)
const
{
18
return
m_database
[entry].at(column);
19
}
20
21
int
TGCDatabase::getEntrySize
(
int
entry)
const
{
22
return
m_database
[entry].size();
23
}
24
25
int
TGCDatabase::getMaxEntry
()
const
{
26
return
m_database
.size();
27
}
28
29
bool
TGCDatabase::update
(
const
std::vector<int>&) {
30
// not implemented in the base class
31
return
false
;
32
}
33
34
int
TGCDatabase::find
(
const
std::vector<int>&)
const
{
35
// not implemented in the base class
36
return
-1;
37
}
38
39
int
TGCDatabase::getIndexDBIn
(
int
* indexIn)
const
{
40
// not implemented in the base class
41
if
(!indexIn) {
42
return
-1;
43
}
44
45
return
-1;
46
}
47
48
int
TGCDatabase::getIndexDBOut
(
int
* indexOut)
const
{
49
// not implemented in the base class
50
if
(!indexOut) {
51
return
-1;
52
}
53
54
return
-1;
55
}
56
57
}
// namespace MuonTGC_Cabling
TGCDatabase.h
MuonTGC_Cabling::TGCDatabase::m_filename
std::string m_filename
Definition
TGCDatabase.h:54
MuonTGC_Cabling::TGCDatabase::getIndexDBIn
virtual int getIndexDBIn(int *indexIn) const
Definition
TGCDatabase.cxx:39
MuonTGC_Cabling::TGCDatabase::m_blockname
std::string m_blockname
Definition
TGCDatabase.h:55
MuonTGC_Cabling::TGCDatabase::~TGCDatabase
virtual ~TGCDatabase()
Definition
TGCDatabase.cxx:15
MuonTGC_Cabling::TGCDatabase::getMaxEntry
virtual int getMaxEntry() const
Definition
TGCDatabase.cxx:25
MuonTGC_Cabling::TGCDatabase::update
virtual bool update(const std::vector< int > &)
Definition
TGCDatabase.cxx:29
MuonTGC_Cabling::TGCDatabase::TGCDatabase
TGCDatabase(DatabaseType type=NoDatabaseType)
Definition
TGCDatabase.cxx:9
MuonTGC_Cabling::TGCDatabase::DatabaseType
DatabaseType
Definition
TGCDatabase.h:15
MuonTGC_Cabling::TGCDatabase::getEntry
virtual int getEntry(int entry, int column) const
Definition
TGCDatabase.cxx:17
MuonTGC_Cabling::TGCDatabase::find
virtual int find(const std::vector< int > &) const
Definition
TGCDatabase.cxx:34
MuonTGC_Cabling::TGCDatabase::getIndexDBOut
virtual int getIndexDBOut(int *indexOut) const
Definition
TGCDatabase.cxx:48
MuonTGC_Cabling::TGCDatabase::m_type
DatabaseType m_type
Definition
TGCDatabase.h:59
MuonTGC_Cabling::TGCDatabase::m_database
std::vector< std::vector< int > > m_database
Definition
TGCDatabase.h:56
MuonTGC_Cabling::TGCDatabase::getEntrySize
virtual int getEntrySize(int entry) const
Definition
TGCDatabase.cxx:21
MuonTGC_Cabling
Definition
TGCCable.h:12
Generated on
for ATLAS Offline Software by
1.17.0