ATLAS Offline Software
MdtChamberTypeInfo.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /***************************************************************************
6  * Muon Calibration Identifiers
7  * -----------------------------------------
8  *
9  * Author : Martin Woudstra
10  * Creation Date: 09 May 2005
11  * Last Update : 09 May 2005
12  ***************************************************************************/
13 
17 #ifndef MUONCALIBIDENTIFIER_MDTCHAMBERTYPEINFO_H
18 # define MUONCALIBIDENTIFIER_MDTCHAMBERTYPEINFO_H
19 // std
20 
21 // other packages
22 
23 // this package
24 
25 
27 public:
30  MdtChamberTypeInfo( unsigned int nMul, unsigned int nLay, unsigned int nTub );
32  bool operator==( const MdtChamberTypeInfo& rhs ) const;
34  unsigned int nMultilayers() const;
36  unsigned int nLayers() const;
38  unsigned int nTubes() const;
40  unsigned int nTotalTubes() const;
41 private:
42  unsigned int m_nMultilayers;
43  unsigned int m_nLayers;
44  unsigned int m_nTubes;
45 };
46 
47 inline MdtChamberTypeInfo::MdtChamberTypeInfo( unsigned int nMul, unsigned int nLay,
48  unsigned int nTub )
49  : m_nMultilayers(nMul), m_nLayers(nLay), m_nTubes(nTub)
50 {}
51 
52 inline bool MdtChamberTypeInfo::operator==( const MdtChamberTypeInfo& rhs ) const {
53  return
55  m_nLayers == rhs.m_nLayers &&
56  m_nTubes == rhs.m_nTubes;
57 }
58 
59 inline
60 unsigned int MdtChamberTypeInfo::nMultilayers() const {
61  return m_nMultilayers;
62 }
63 
64 inline
65 unsigned int MdtChamberTypeInfo::nLayers() const {
66  return m_nLayers;
67 }
68 
69 inline
70 unsigned int MdtChamberTypeInfo::nTubes() const {
71  return m_nTubes;
72 }
73 
74 inline
75 unsigned int MdtChamberTypeInfo::nTotalTubes() const {
77 }
78 
79 #endif // MUONCALIBIDENTIFIER_MDTCHAMBERTYPEINFO_H
MdtChamberTypeInfo::nTubes
unsigned int nTubes() const
Return the number of tubes per layer.
Definition: MdtChamberTypeInfo.h:70
MdtChamberTypeInfo::MdtChamberTypeInfo
MdtChamberTypeInfo(unsigned int nMul, unsigned int nLay, unsigned int nTub)
Full initialise the chamber type info with number of multilayers (nMul), number of layers (nLay) and ...
Definition: MdtChamberTypeInfo.h:47
MdtChamberTypeInfo::operator==
bool operator==(const MdtChamberTypeInfo &rhs) const
comparison operator
Definition: MdtChamberTypeInfo.h:52
MdtChamberTypeInfo::m_nMultilayers
unsigned int m_nMultilayers
Definition: MdtChamberTypeInfo.h:49
MdtChamberTypeInfo::m_nLayers
unsigned int m_nLayers
Definition: MdtChamberTypeInfo.h:50
MdtChamberTypeInfo::nMultilayers
unsigned int nMultilayers() const
Return the number of multilayers in the chamber.
Definition: MdtChamberTypeInfo.h:60
MdtChamberTypeInfo::m_nTubes
unsigned int m_nTubes
Definition: MdtChamberTypeInfo.h:51
MdtChamberTypeInfo
Simple data class that holds the MDT chamber type information: number of multilayers,...
Definition: MdtChamberTypeInfo.h:26
MdtChamberTypeInfo::nTotalTubes
unsigned int nTotalTubes() const
Return the total number of tubes in the chamber.
Definition: MdtChamberTypeInfo.h:75
MdtChamberTypeInfo::nLayers
unsigned int nLayers() const
Return the number of layers per multilayer.
Definition: MdtChamberTypeInfo.h:65