ATLAS Offline Software
DblQ00Aptp.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /********************************************************
6  Class def for MuonGeoModel DblQ00/APTP
7  *******************************************************/
8 
9  // author: S Spagnolo
10  // entered: 07/28/04
11  // comment: POSITION OF STATION
12 
13 #ifndef DBLQ00_APTP_H
14 #define DBLQ00_APTP_H
15 
16 #include <string>
17 #include <vector>
18 #include <array>
19 class IRDBAccessSvc;
20 
21 
22 namespace MuonGM {
23 class DblQ00Aptp {
24 public:
25  DblQ00Aptp() = default;
26  ~DblQ00Aptp() = default;
27  DblQ00Aptp(IRDBAccessSvc *pAccessSvc, const std::string & GeoTag="", const std::string & GeoNode="");
28 
29  DblQ00Aptp & operator=(const DblQ00Aptp &right) = delete;
30  DblQ00Aptp(const DblQ00Aptp&) = delete;
31 
32  // data members for DblQ00/APTP fields
33  struct APTP {
34  int version{0}; // VERSION
35  int line{0}; // LINE NUMBER
36  std::string type{}; // STATION TYPE
37  int i{0}; // STATION AMDB INDEX
38  int icut{0}; // CUT-OUT INDEX,ZERO IF MISSING
39  std::string iphi{}; // PHI INDICATES OF OCTANTS
40  int iz{0}; // Z (FOR BARREL) OR R (FOR END-CAPS) POS.
41  float dphi{0.f}; // RELATIVE PHI POSITION OF THE STATION IN
42  float z{0.f}; // Z POSITION OF THE LOWEST Z EDGE OF THE S
43  float r{0.f}; // RADIAL POSITION OF ITS INNERMOST EDGE
44  float s{0.f}; // ORTHO-RADIAL POSITION OF THE CENTER OF T
45  float alfa{0.f}; // ALFA ANGLE DEFINING THE DEVIATION [GRAD]
46  float beta{0.f}; // BETA ANGLE DEFINING THE DEVIATION
47  float gamma{0.f}; // GAMMA ANGLE DEFINING THE DEVIATION
48  };
49 
50  const APTP* data() const { return m_d.data(); };
51  unsigned int size() const { return m_nObj; };
52  std::string getName() const { return "APTP"; };
53  std::string getDirName() const { return "DblQ00"; };
54  std::string getObjName() const { return "APTP"; };
55 
56 private:
57  std::vector<APTP> m_d{};
58  unsigned int m_nObj{0}; // > 1 if array; 0 if error in retrieve.
59 };
60 }// end of MuonGM namespace
61 
62 #endif // DBLQ00_APTP_H
63 
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition: GeoMuonHits.h:27
MuonGM::DblQ00Aptp::APTP::z
float z
Definition: DblQ00Aptp.h:42
MuonGM::DblQ00Aptp::APTP::i
int i
Definition: DblQ00Aptp.h:37
MuonGM::DblQ00Aptp::getObjName
std::string getObjName() const
Definition: DblQ00Aptp.h:54
MuonGM::DblQ00Aptp::size
unsigned int size() const
Definition: DblQ00Aptp.h:51
MuonGM::DblQ00Aptp::APTP::dphi
float dphi
Definition: DblQ00Aptp.h:41
MuonGM::DblQ00Aptp::getName
std::string getName() const
Definition: DblQ00Aptp.h:52
MuonGM::DblQ00Aptp::operator=
DblQ00Aptp & operator=(const DblQ00Aptp &right)=delete
MuonGM::DblQ00Aptp::APTP::beta
float beta
Definition: DblQ00Aptp.h:46
MuonGM::DblQ00Aptp::APTP::line
int line
Definition: DblQ00Aptp.h:35
MuonGM::DblQ00Aptp::APTP::s
float s
Definition: DblQ00Aptp.h:44
MuonGM::DblQ00Aptp::APTP::version
int version
Definition: DblQ00Aptp.h:34
MuonGM::DblQ00Aptp::DblQ00Aptp
DblQ00Aptp()=default
MuonGM::DblQ00Aptp::m_d
std::vector< APTP > m_d
Definition: DblQ00Aptp.h:57
IRDBAccessSvc
IRDBAccessSvc is an abstract interface to the athena service that provides the following functionalit...
Definition: IRDBAccessSvc.h:45
MuonGM::DblQ00Aptp
Definition: DblQ00Aptp.h:23
MuonGM::DblQ00Aptp::APTP::alfa
float alfa
Definition: DblQ00Aptp.h:45
MuonGM::DblQ00Aptp::APTP::iphi
std::string iphi
Definition: DblQ00Aptp.h:39
MuonGM::DblQ00Aptp::APTP::r
float r
Definition: DblQ00Aptp.h:43
MuonGM::DblQ00Aptp::APTP::icut
int icut
Definition: DblQ00Aptp.h:38
MuonGM::DblQ00Aptp::data
const APTP * data() const
Definition: DblQ00Aptp.h:50
MuonGM::DblQ00Aptp::m_nObj
unsigned int m_nObj
Definition: DblQ00Aptp.h:58
MuonGM::DblQ00Aptp::APTP::iz
int iz
Definition: DblQ00Aptp.h:40
MuonGM::DblQ00Aptp::APTP::gamma
float gamma
Definition: DblQ00Aptp.h:47
MuonGM::DblQ00Aptp::APTP::type
std::string type
Definition: DblQ00Aptp.h:36
MuonGM::DblQ00Aptp::APTP
Definition: DblQ00Aptp.h:33
MuonGM::DblQ00Aptp::DblQ00Aptp
DblQ00Aptp(const DblQ00Aptp &)=delete
MuonGM::DblQ00Aptp::~DblQ00Aptp
~DblQ00Aptp()=default
MuonGM::DblQ00Aptp::getDirName
std::string getDirName() const
Definition: DblQ00Aptp.h:53