ATLAS Offline Software
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 
6 
7 namespace MuonTGC_Cabling
8 {
9 
11  : m_type(vtype)
12 {
13 }
14 
16  const std::string& vfilename,
17  const std::string& vblockname)
18  : m_filename(vfilename),
19  m_blockname(vblockname),
20  m_type(vtype)
21 {
22 }
23 
25 {
26 }
27 
28 int TGCDatabase::getEntry(int entry, int column) const {
29  return m_database[entry].at(column);
30 }
31 
33  return m_database[entry].size();
34 }
35 
36 int TGCDatabase::getMaxEntry(void) const {
37  return m_database.size();
38 }
39 
40 bool TGCDatabase::update(const std::vector<int>&)
41 {
42  // not implemented in the base class
43  return false;
44 }
45 
46 int TGCDatabase::find(const std::vector<int>&) const
47 {
48  // not implemented in the base class
49  return -1;
50 }
51 
52 int TGCDatabase::getIndexDBIn(int* indexIn) const
53 {
54  // not implemented in the base class
55  if(!indexIn) return -1;
56 
57  return -1;
58 }
59 
60 int TGCDatabase::getIndexDBOut(int* indexOut) const
61 {
62  // not implemented in the base class
63  if(!indexOut) return -1;
64 
65  return -1;
66 }
67 
68 } // end of namespace
TGCDatabase.h
DeMoUpdate.column
dictionary column
Definition: DeMoUpdate.py:1110
m_type
TokenType m_type
the type
Definition: TProperty.cxx:44
MuonTGC_Cabling::TGCDatabase::getIndexDBIn
virtual int getIndexDBIn(int *indexIn) const
Definition: TGCDatabase.cxx:52
MuonTGC_Cabling::TGCDatabase::update
virtual bool update(const std::vector< int > &)
Definition: TGCDatabase.cxx:40
MuonTGC_Cabling::TGCDatabase::getEntry
virtual int getEntry(int entry, int column) const
Definition: TGCDatabase.cxx:28
MuonTGC_Cabling
Definition: TGCCable.h:13
MuonTGC_Cabling::TGCDatabase::getMaxEntry
virtual int getMaxEntry(void) const
Definition: TGCDatabase.cxx:36
MuonTGC_Cabling::TGCDatabase::getIndexDBOut
virtual int getIndexDBOut(int *indexOut) const
Definition: TGCDatabase.cxx:60
MuonTGC_Cabling::TGCDatabase::getEntrySize
virtual int getEntrySize(int entry) const
Definition: TGCDatabase.cxx:32
GetAllXsec.entry
list entry
Definition: GetAllXsec.py:132
MuonTGC_Cabling::TGCDatabase::find
virtual int find(const std::vector< int > &) const
Definition: TGCDatabase.cxx:46
MuonTGC_Cabling::TGCDatabase::TGCDatabase
TGCDatabase(DatabaseType type=NoDatabaseType)
Definition: TGCDatabase.cxx:10
MuonTGC_Cabling::TGCDatabase::m_database
std::vector< std::vector< int > > m_database
Definition: TGCDatabase.h:54
MuonTGC_Cabling::TGCDatabase::DatabaseType
DatabaseType
Definition: TGCDatabase.h:17
MuonTGC_Cabling::TGCDatabase::~TGCDatabase
virtual ~TGCDatabase(void)
Definition: TGCDatabase.cxx:24