ATLAS Offline Software
PixelStaveTypes.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 PixelStaveTypes_H
6 #define PixelStaveTypes_H
7 
8 // Class to interpret and query PixelStaveType table
9 
11 class IGeometryDBSvc;
12 #include <map>
13 
15 
16 public :
18  int getFluidType(int layer, int phiModule) const;
19  int getBiStaveType(int layer, int phiModule) const;
20 
21 private :
22  class Key
23  {
24  public:
25  Key(int layer_in, int phiModule_in);
26  int layer;
27  int phiModule;
28  bool operator<(const Key &rhs) const;
29  };
30 
31  class Datum
32  {
33  public:
34  Datum(int fluidType_in = 0, int biStaveType_in = 0);
35  int fluidType;
37  };
38 
39  const Datum & getData(int layer, int phiModule) const;
40 
41  typedef std::map<Key, Datum> MapType;
43 
44  std::map<int,int> m_maxSector;
45 
46  static const Datum s_defaultDatum;
47 
48 };
49 
50 #endif // PixelStaveTypes_H
PixelStaveTypes::getBiStaveType
int getBiStaveType(int layer, int phiModule) const
Definition: PixelStaveTypes.cxx:57
PixelStaveTypes::Datum::fluidType
int fluidType
Definition: PixelStaveTypes.h:35
PixelStaveTypes::Key
Definition: PixelStaveTypes.h:23
PixelStaveTypes::m_dataLookup
MapType m_dataLookup
Definition: PixelStaveTypes.h:42
CaloCondBlobAlgs_fillNoiseFromASCII.db
db
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:43
PixelStaveTypes::Key::layer
int layer
Definition: PixelStaveTypes.h:26
PixelStaveTypes::MapType
std::map< Key, Datum > MapType
Definition: PixelStaveTypes.h:41
IRDBAccessSvc.h
Definition of the abstract IRDBAccessSvc interface.
PixelStaveTypes::Key::phiModule
int phiModule
Definition: PixelStaveTypes.h:27
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
PixelStaveTypes::s_defaultDatum
static const Datum s_defaultDatum
Definition: PixelStaveTypes.h:46
IGeometryDBSvc
Definition: IGeometryDBSvc.h:21
IRDBRecordset_ptr
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
Definition: IRDBAccessSvc.h:25
PixelStaveTypes::Key::Key
Key(int layer_in, int phiModule_in)
Definition: PixelStaveTypes.cxx:23
PixelStaveTypes::Datum
Definition: PixelStaveTypes.h:32
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
PixelStaveTypes::m_maxSector
std::map< int, int > m_maxSector
Definition: PixelStaveTypes.h:44
python.ext.table_printer.table
list table
Definition: table_printer.py:81
PixelStaveTypes::getFluidType
int getFluidType(int layer, int phiModule) const
Definition: PixelStaveTypes.cxx:51
TRT::Hit::phiModule
@ phiModule
Definition: HitInfo.h:80
PixelStaveTypes::Datum::biStaveType
int biStaveType
Definition: PixelStaveTypes.h:36
PixelStaveTypes::Datum::Datum
Datum(int fluidType_in=0, int biStaveType_in=0)
Definition: PixelStaveTypes.cxx:18
PixelStaveTypes
Definition: PixelStaveTypes.h:14
PixelStaveTypes::Key::operator<
bool operator<(const Key &rhs) const
Definition: PixelStaveTypes.cxx:29
PixelStaveTypes::PixelStaveTypes
PixelStaveTypes(const IGeometryDBSvc *db, const IRDBRecordset_ptr &table)
Definition: PixelStaveTypes.cxx:37
PixelStaveTypes::getData
const Datum & getData(int layer, int phiModule) const
Definition: PixelStaveTypes.cxx:64