ATLAS Offline Software
Loading...
Searching...
No Matches
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
11namespace MuonTGC_Cabling {
12
14 public:
23
24 // Constructor & Destructor
26
27 TGCDatabase(DatabaseType type, const std::string& filename,
28 const std::string& blockname);
29
30 TGCDatabase(const TGCDatabase&) = default;
31
32 virtual ~TGCDatabase();
33
34 // assignment operator
35 TGCDatabase& operator=(const TGCDatabase&) = default;
36
38
39 virtual int getEntry(int entry, int column) const;
40
41 virtual int getEntrySize(int entry) const;
42
43 virtual int getMaxEntry() const;
44
45 virtual bool update(const std::vector<int>&);
46
47 virtual int find(const std::vector<int>&) const;
48
49 virtual int getIndexDBIn(int* indexIn) const;
50 virtual int getIndexDBOut(int* indexOut) const;
51
52 protected:
53 virtual void readDB() {}
54 std::string m_filename;
55 std::string m_blockname;
56 std::vector<std::vector<int> > m_database;
57
58 private:
60};
61
62} // namespace MuonTGC_Cabling
63
64#endif
virtual int getIndexDBIn(int *indexIn) const
virtual int getMaxEntry() const
virtual bool update(const std::vector< int > &)
TGCDatabase(DatabaseType type=NoDatabaseType)
DatabaseType getDatabaseType() const
Definition TGCDatabase.h:37
virtual int getEntry(int entry, int column) const
virtual int find(const std::vector< int > &) const
virtual int getIndexDBOut(int *indexOut) const
TGCDatabase(const TGCDatabase &)=default
TGCDatabase & operator=(const TGCDatabase &)=default
std::vector< std::vector< int > > m_database
Definition TGCDatabase.h:56
virtual int getEntrySize(int entry) const