ATLAS Offline Software
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 
10 namespace MuonTGC_Cabling
11 {
12 
14 {
15 public:
32 
34  TGCDatabaseInPP(const std::string& filename, const std::string& blockname);
38  virtual ~TGCDatabaseInPP(void);
39 
40  virtual bool update(const std::vector<int>&) override;
41 
42  virtual int find(const std::vector<int>&) const override;
43 
46  virtual int getIndexDBIn(int* indexIn) const override;
47 
49  virtual void getindexDBVectorIn(std::vector<int>& tmpindexDBIn) const;
51  virtual void getNIndexDBIn(int& tmpNIndexDBIn) const;
53  virtual void getmaxIndexIn(int* tmpmaxIndexIn) const;
55  virtual void getminIndexIn(int* tmpminIndexIn) const;
56 
57 private:
58  virtual void readDB(void) override;
59  TGCDatabaseInPP(void) {}
60 
62  virtual void makeIndexDBIn(void);
64  virtual int convertIndexDBIn(int* indexIn) const;
65 
66  std::vector<int> m_indexDBIn;
67  int m_NIndexDBIn = 0;
70 
73 };
74 
75 } // end of namespace
76 
77 #endif
MuonTGC_Cabling::TGCDatabaseInPP::IndexInMax
@ IndexInMax
Definition: TGCDatabaseInPP.h:31
MuonTGC_Cabling::TGCDatabaseInPP::INDEXIN
INDEXIN
Definition: TGCDatabaseInPP.h:31
MuonTGC_Cabling::TGCDatabaseInPP::~TGCDatabaseInPP
virtual ~TGCDatabaseInPP(void)
Destructor.
Definition: TGCDatabaseInPP.cxx:35
TGCDatabase.h
MuonTGC_Cabling::TGCDatabaseInPP::find
virtual int find(const std::vector< int > &) const override
Definition: TGCDatabaseInPP.cxx:62
MuonTGC_Cabling::TGCDatabaseInPP::update
virtual bool update(const std::vector< int > &) override
Definition: TGCDatabaseInPP.cxx:39
MuonTGC_Cabling::TGCDatabaseInPP::operator=
TGCDatabaseInPP & operator=(const TGCDatabaseInPP &right)
hidden assignment operator
MuonTGC_Cabling::TGCDatabaseInPP::m_minIndexIn
int m_minIndexIn[NIndexIn]
Definition: TGCDatabaseInPP.h:69
MuonTGC_Cabling::TGCDatabaseInPP::readDB
virtual void readDB(void) override
Definition: TGCDatabaseInPP.cxx:111
MuonTGC_Cabling::TGCDatabaseInPP::getminIndexIn
virtual void getminIndexIn(int *tmpminIndexIn) const
Get the minimum values of indexIn with NIndexIn dimensions.
Definition: TGCDatabaseInPP.cxx:104
MuonTGC_Cabling::TGCDatabaseInPP::getindexDBVectorIn
virtual void getindexDBVectorIn(std::vector< int > &tmpindexDBIn) const
Get the IndexDBIn table.
Definition: TGCDatabaseInPP.cxx:87
MuonTGC_Cabling::TGCDatabaseInPP::getNIndexDBIn
virtual void getNIndexDBIn(int &tmpNIndexDBIn) const
Get the size of the IndexDBIn table.
Definition: TGCDatabaseInPP.cxx:92
MuonTGC_Cabling::TGCDatabase
Definition: TGCDatabase.h:15
MuonTGC_Cabling::TGCDatabaseInPP
Definition: TGCDatabaseInPP.h:14
MuonTGC_Cabling::TGCDatabaseInPP::m_indexDBIn
std::vector< int > m_indexDBIn
Definition: TGCDatabaseInPP.h:66
MuonTGC_Cabling
Definition: TGCCable.h:13
MuonTGC_Cabling::TGCDatabaseInPP::TGCDatabaseInPP
TGCDatabaseInPP(void)
Definition: TGCDatabaseInPP.h:59
python.egammaTruthD3PDObject.blockname
blockname
Definition: egammaTruthD3PDObject.py:64
MuonTGC_Cabling::TGCDatabaseInPP::makeIndexDBIn
virtual void makeIndexDBIn(void)
Make the IndexDBIn table.
Definition: TGCDatabaseInPP.cxx:157
MuonTGC_Cabling::TGCDatabaseInPP::m_NIndexDBIn
int m_NIndexDBIn
Definition: TGCDatabaseInPP.h:67
MuonTGC_Cabling::TGCDatabaseInPP::IndexInMin
@ IndexInMin
Definition: TGCDatabaseInPP.h:31
MuonTGC_Cabling::TGCDatabaseInPP::convertIndexDBIn
virtual int convertIndexDBIn(int *indexIn) const
Get the internal number, which is between 0 and NIndexDBIn-1.
Definition: TGCDatabaseInPP.cxx:176
MuonTGC_Cabling::TGCDatabaseInPP::getmaxIndexIn
virtual void getmaxIndexIn(int *tmpmaxIndexIn) const
Get the maximum values of indexIn with NIndexIn dimensions.
Definition: TGCDatabaseInPP.cxx:97
CaloCellTimeCorrFiller.filename
filename
Definition: CaloCellTimeCorrFiller.py:24
MuonTGC_Cabling::TGCDatabaseInPP::getIndexDBIn
virtual int getIndexDBIn(int *indexIn) const override
Get IndexDBIn (position in the databse between 0 and database.size()-1) from indexIn which is NIndexI...
Definition: TGCDatabaseInPP.cxx:77
MuonTGC_Cabling::TGCDatabaseInPP::NIndexIn
@ NIndexIn
Definition: TGCDatabaseInPP.h:31
MuonTGC_Cabling::TGCDatabaseInPP::m_maxIndexIn
int m_maxIndexIn[NIndexIn]
Definition: TGCDatabaseInPP.h:68