ATLAS Offline Software
DblQ00Almn.cxx
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  DB data - Muon Station components
7  -----------------------------------------
8  ***************************************************************************/
9 
14 
15 #include <iostream>
16 #include <stdio.h>
17 
18 namespace MuonGM
19 {
20 
21  DblQ00Almn::DblQ00Almn(IRDBAccessSvc *pAccessSvc, const std::string & GeoTag, const std::string & GeoNode){
22 
23  IRDBRecordset_ptr almn = pAccessSvc->getRecordsetPtr(getName(),GeoTag, GeoNode);
24 
25  if(almn->size()>0) {
26  m_nObj = almn->size();
27  m_d.resize (m_nObj);
28  if (m_nObj == 0) std::cerr<<"NO Almn banks in the MuonDD Database"<<std::endl;
29 
30  for(size_t i = 0; i<almn->size(); ++i) {
31  m_d[i].version = (*almn)[i]->getInt("VERS");
32  m_d[i].i = (*almn)[i]->getInt("I");
33  m_d[i].dx = (*almn)[i]->getFloat("DX");
34  m_d[i].dy = (*almn)[i]->getFloat("DY");
35  m_d[i].dz = (*almn)[i]->getFloat("DZ");
36  m_d[i].job = (*almn)[i]->getInt("JOB");
37  m_d[i].tec = (*almn)[i]->getString("TEC");
38  m_d[i].iw = (*almn)[i]->getInt("IW");
39  m_d[i].isplit_x = (*almn)[i]->getInt("ISPLIT_X");
40  m_d[i].isplit_y = (*almn)[i]->getInt("ISPLIT_Y");
41  m_d[i].ishape = (*almn)[i]->getInt("ISHAPE");
42  m_d[i].width_xs = (*almn)[i]->getFloat("WIDTH_XS");
43  m_d[i].width_xl = (*almn)[i]->getFloat("WIDTH_XL");
44  m_d[i].length_y = (*almn)[i]->getFloat("LENGTH_Y");
45  m_d[i].excent = (*almn)[i]->getFloat("EXCENT");
46  m_d[i].dead1 = (*almn)[i]->getFloat("DEAD1");
47  m_d[i].dead2 = (*almn)[i]->getFloat("DEAD2");
48  m_d[i].dead3 = (*almn)[i]->getFloat("DEAD3");
49  m_d[i].jtyp = (*almn)[i]->getInt("JTYP");
50  m_d[i].indx = (*almn)[i]->getInt("INDX");
51  }
52  }
53  else {
54  std::cerr<<"NO Almn banks in the MuonDD Database"<<std::endl;
55  }
56 }
57 
58 } // end of namespace MuonGM
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition: GeoMuonHits.h:27
IRDBAccessSvc::getRecordsetPtr
virtual IRDBRecordset_ptr getRecordsetPtr(const std::string &node, const std::string &tag, const std::string &tag2node="", const std::string &connName="ATLASDD")=0
Provides access to the Recordset object containing HVS-tagged data.
MuonGM::DblQ00Almn::DblQ00Almn
DblQ00Almn()=default
MuonGM::DblQ00Almn::m_nObj
unsigned int m_nObj
Definition: DblQ00Almn.h:65
DblQ00Almn.h
MuonGM::DblQ00Almn::m_d
std::vector< ALMN > m_d
Definition: DblQ00Almn.h:64
IRDBAccessSvc.h
Definition of the abstract IRDBAccessSvc interface.
lumiFormat.i
int i
Definition: lumiFormat.py:92
IRDBAccessSvc
IRDBAccessSvc is an abstract interface to the athena service that provides the following functionalit...
Definition: IRDBAccessSvc.h:45
IRDBRecordset_ptr
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
Definition: IRDBAccessSvc.h:25
IRDBRecord.h
Definition of the abstract IRDBRecord interface.
MuonGM::DblQ00Almn::getName
std::string getName() const
Definition: DblQ00Almn.h:59
IRDBRecordset.h
Definition of the abstract IRDBRecordset interface.