ATLAS Offline Software
DblQ00IAcsc.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/IACSC
7  *******************************************************/
8 
9  // author: S Spagnolo
10  // entered: 07/28/04
11  // comment: CSC internal alignment parameters - class to read from DB
12 
13 #ifndef DBLQ00_IACSC_H
14 #define DBLQ00_IACSC_H
15 
16 
17 
18 class IRDBAccessSvc;
19 #include <string>
20 #include <vector>
21 
22 
23 namespace MuonGM {
24 class DblQ00IAcsc {
25 public:
26  DblQ00IAcsc() = default;
27  ~DblQ00IAcsc() = default;
28  DblQ00IAcsc(IRDBAccessSvc *pAccessSvc, const std::string & GeoTag="", const std::string & GeoNode="");
29  DblQ00IAcsc(const std::string& asciiFileName);
30 
31  DblQ00IAcsc & operator=(const DblQ00IAcsc &right) = delete;
32  DblQ00IAcsc(const DblQ00IAcsc&) = delete;
33 
34 
35  void WriteIAcscToAsciiFile(const std::string& filename);
36 
37  // data members for DblQ00/IACSC fields
38  struct IACSC {
39  int version{0}; // VERSION
40  int line{0}; // LINE NUMBER
41  std::string type{}; // STATION TYPE
42  int jff{0}; // PHI POSITION
43  int jzz{0}; // Z POSITION
44  int job{0}; // JOB POSITION
45  int wireLayer{0}; // JOB POSITION
46  float tras{0.f}; // S TRANSLATION [MM]
47  float traz{0.f}; // Z TRANSLATION
48  float trat{0.f}; // T TRANSLATION
49  float rots{0.f}; // S ROTATION [RAD]
50  float rotz{0.f}; // Z ROTATION
51  float rott{0.f}; // T ROTATION
52  int i{0}; // STATION AMDB INDEX
53  };
54 
55  const IACSC* data() const { return m_d.data(); };
56  unsigned int size() const { return m_nObj; };
57  std::string getName() const { return "IACSC"; };
58  std::string getDirName() const { return "DblQ00"; };
59  std::string getObjName() const { return "IACSC"; };
60 
61 private:
62  std::vector<IACSC> m_d{};
63  unsigned int m_nObj{0}; // > 1 if array; 0 if error in retrieve.
64 };
65 
66 
67 } // end of MuonGM namespace
68 
69 #endif // DBLQ00_ASZT_H
70 
MuonGM::DblQ00IAcsc::IACSC::job
int job
Definition: DblQ00IAcsc.h:44
MuonGM::DblQ00IAcsc::operator=
DblQ00IAcsc & operator=(const DblQ00IAcsc &right)=delete
MuonGM::DblQ00IAcsc::~DblQ00IAcsc
~DblQ00IAcsc()=default
MuonGM::DblQ00IAcsc::IACSC::jff
int jff
Definition: DblQ00IAcsc.h:42
MuonGM::DblQ00IAcsc::DblQ00IAcsc
DblQ00IAcsc()=default
MuonGM::DblQ00IAcsc::IACSC::traz
float traz
Definition: DblQ00IAcsc.h:47
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition: GeoMuonHits.h:27
MuonGM::DblQ00IAcsc::IACSC::line
int line
Definition: DblQ00IAcsc.h:40
MuonGM::DblQ00IAcsc::getDirName
std::string getDirName() const
Definition: DblQ00IAcsc.h:58
MuonGM::DblQ00IAcsc::IACSC::rots
float rots
Definition: DblQ00IAcsc.h:49
MuonGM::DblQ00IAcsc::WriteIAcscToAsciiFile
void WriteIAcscToAsciiFile(const std::string &filename)
Definition: DblQ00IAcsc.cxx:111
MuonGM::DblQ00IAcsc::IACSC::i
int i
Definition: DblQ00IAcsc.h:52
MuonGM::DblQ00IAcsc::IACSC::rotz
float rotz
Definition: DblQ00IAcsc.h:50
MuonGM::DblQ00IAcsc::DblQ00IAcsc
DblQ00IAcsc(const DblQ00IAcsc &)=delete
MuonGM::DblQ00IAcsc::IACSC::jzz
int jzz
Definition: DblQ00IAcsc.h:43
IRDBAccessSvc
IRDBAccessSvc is an abstract interface to the athena service that provides the following functionalit...
Definition: IRDBAccessSvc.h:42
MuonGM::DblQ00IAcsc::IACSC::version
int version
Definition: DblQ00IAcsc.h:39
MuonGM::DblQ00IAcsc::m_nObj
unsigned int m_nObj
Definition: DblQ00IAcsc.h:63
MuonGM::DblQ00IAcsc::IACSC::wireLayer
int wireLayer
Definition: DblQ00IAcsc.h:45
MuonGM::DblQ00IAcsc::IACSC::rott
float rott
Definition: DblQ00IAcsc.h:51
MuonGM::DblQ00IAcsc::IACSC::type
std::string type
Definition: DblQ00IAcsc.h:41
CaloCellTimeCorrFiller.filename
filename
Definition: CaloCellTimeCorrFiller.py:24
MuonGM::DblQ00IAcsc::getObjName
std::string getObjName() const
Definition: DblQ00IAcsc.h:59
MuonGM::DblQ00IAcsc::m_d
std::vector< IACSC > m_d
Definition: DblQ00IAcsc.h:62
MuonGM::DblQ00IAcsc::IACSC
Definition: DblQ00IAcsc.h:38
MuonGM::DblQ00IAcsc::size
unsigned int size() const
Definition: DblQ00IAcsc.h:56
MuonGM::DblQ00IAcsc
Definition: DblQ00IAcsc.h:24
MuonGM::DblQ00IAcsc::data
const IACSC * data() const
Definition: DblQ00IAcsc.h:55
MuonGM::DblQ00IAcsc::IACSC::trat
float trat
Definition: DblQ00IAcsc.h:48
MuonGM::DblQ00IAcsc::IACSC::tras
float tras
Definition: DblQ00IAcsc.h:46
MuonGM::DblQ00IAcsc::getName
std::string getName() const
Definition: DblQ00IAcsc.h:57