ATLAS Offline Software
TGCDatabase.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONTGC_CABLING_TGCDATABASE_HH
6 #define MUONTGC_CABLING_TGCDATABASE_HH
7 
8 #include <string>
9 #include <vector>
10 
11 namespace MuonTGC_Cabling
12 {
13 
15 {
16 public:
20 
21  // Constructor & Destructor
23 
25  const std::string& filename,
26  const std::string& blockname);
27 
28  TGCDatabase(const TGCDatabase &) = default;
29 
30  virtual ~TGCDatabase(void);
31 
32  // assignment operator
33  TGCDatabase& operator=(const TGCDatabase&) = default;
34 
35  DatabaseType getDatabaseType(void) const { return m_type; }
36 
37  virtual int getEntry(int entry, int column) const;
38 
39  virtual int getEntrySize(int entry) const;
40 
41  virtual int getMaxEntry(void) const;
42 
43  virtual bool update(const std::vector<int>& );
44 
45  virtual int find(const std::vector<int>&) const;
46 
47  virtual int getIndexDBIn(int* indexIn) const;
48  virtual int getIndexDBOut(int* indexOut) const;
49 
50 protected:
51  virtual void readDB(void) {}
52  std::string m_filename;
53  std::string m_blockname;
54  std::vector< std::vector<int> > m_database;
55 
56 private:
58 
59 };
60 
61 } // end of namespace
62 
63 #endif
MuonTGC_Cabling::TGCDatabase::PPToSL
@ PPToSL
Definition: TGCDatabase.h:18
MuonTGC_Cabling::TGCDatabase::ASDToPP
@ ASDToPP
Definition: TGCDatabase.h:18
MuonTGC_Cabling::TGCDatabase::TGCDatabase
TGCDatabase(const TGCDatabase &)=default
MuonTGC_Cabling::TGCDatabase::NoDatabaseType
@ NoDatabaseType
Definition: TGCDatabase.h:17
DeMoUpdate.column
dictionary column
Definition: DeMoUpdate.py:1110
MuonTGC_Cabling::TGCDatabase::getDatabaseType
DatabaseType getDatabaseType(void) const
Definition: TGCDatabase.h:35
MuonTGC_Cabling::TGCDatabase::m_filename
std::string m_filename
Definition: TGCDatabase.h:52
MuonTGC_Cabling::TGCDatabase
Definition: TGCDatabase.h:15
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
python.egammaTruthD3PDObject.blockname
blockname
Definition: egammaTruthD3PDObject.py:64
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::m_blockname
std::string m_blockname
Definition: TGCDatabase.h:53
MuonTGC_Cabling::TGCDatabase::MaxDatabaseType
@ MaxDatabaseType
Definition: TGCDatabase.h:19
MuonTGC_Cabling::TGCDatabase::operator=
TGCDatabase & operator=(const TGCDatabase &)=default
MuonTGC_Cabling::TGCDatabase::SLBToROD
@ SLBToROD
Definition: TGCDatabase.h:18
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
MuonTGC_Cabling::TGCDatabase::find
virtual int find(const std::vector< int > &) const
Definition: TGCDatabase.cxx:46
CaloCellTimeCorrFiller.filename
filename
Definition: CaloCellTimeCorrFiller.py:24
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::InPP
@ InPP
Definition: TGCDatabase.h:18
MuonTGC_Cabling::TGCDatabase::DatabaseType
DatabaseType
Definition: TGCDatabase.h:17
MuonTGC_Cabling::TGCDatabase::~TGCDatabase
virtual ~TGCDatabase(void)
Definition: TGCDatabase.cxx:24
MuonTGC_Cabling::TGCDatabase::m_type
DatabaseType m_type
Definition: TGCDatabase.h:57
MuonTGC_Cabling::TGCDatabase::readDB
virtual void readDB(void)
Definition: TGCDatabase.h:51