ATLAS Offline Software
Loading...
Searching...
No Matches
TGCDatabaseInPP.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_TGCDATABASEINPP_HH
6#define MUONTGC_CABLING_TGCDATABASEINPP_HH
7
9
10namespace MuonTGC_Cabling {
11
13 public:
29 enum INDEXIN { NIndexIn = 3, IndexInMin = 0, IndexInMax = 2 };
30
32 TGCDatabaseInPP(const std::string& filename, const std::string& blockname);
36 virtual ~TGCDatabaseInPP();
37
38 virtual bool update(const std::vector<int>&) override;
39
40 virtual int find(const std::vector<int>&) const override;
41
44 virtual int getIndexDBIn(int* indexIn) const override;
45
47 virtual void getindexDBVectorIn(std::vector<int>& tmpindexDBIn) const;
49 virtual void getNIndexDBIn(int& tmpNIndexDBIn) const;
51 virtual void getmaxIndexIn(int* tmpmaxIndexIn) const;
53 virtual void getminIndexIn(int* tmpminIndexIn) const;
54
55 private:
56 virtual void readDB() override;
58
60 virtual void makeIndexDBIn();
62 virtual int convertIndexDBIn(int* indexIn) const;
63
64 std::vector<int> m_indexDBIn;
65 int m_NIndexDBIn = 0;
68
71};
72
73} // namespace MuonTGC_Cabling
74
75#endif
TGCDatabaseInPP & operator=(const TGCDatabaseInPP &right)
hidden assignment operator
virtual int getIndexDBIn(int *indexIn) const override
Get IndexDBIn (position in the databse between 0 and database.size()-1) from indexIn which is NIndexI...
virtual void makeIndexDBIn()
Make the IndexDBIn table.
virtual int find(const std::vector< int > &) const override
TGCDatabaseInPP(const std::string &filename, const std::string &blockname)
Constructor.
virtual bool update(const std::vector< int > &) override
virtual void getmaxIndexIn(int *tmpmaxIndexIn) const
Get the maximum values of indexIn with NIndexIn dimensions.
virtual void getminIndexIn(int *tmpminIndexIn) const
Get the minimum values of indexIn with NIndexIn dimensions.
virtual void getNIndexDBIn(int &tmpNIndexDBIn) const
Get the size of the IndexDBIn table.
virtual ~TGCDatabaseInPP()
Destructor.
virtual int convertIndexDBIn(int *indexIn) const
Get the internal number, which is between 0 and NIndexDBIn-1.
virtual void getindexDBVectorIn(std::vector< int > &tmpindexDBIn) const
Get the IndexDBIn table.
TGCDatabase(DatabaseType type=NoDatabaseType)