ATLAS Offline Software
DblQ00Atln.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 <string>
16 #include <iostream>
17 #include <stdio.h>
18 
19 namespace MuonGM
20 {
21 
22  DblQ00Atln::DblQ00Atln(IRDBAccessSvc *pAccessSvc, const std::string & GeoTag, const std::string & GeoNode) {
23 
24  IRDBRecordset_ptr atln = pAccessSvc->getRecordsetPtr(getName(),GeoTag, GeoNode);
25 
26  if(atln->size()>0) {
27  m_nObj = atln->size();
28  m_d.resize (m_nObj);
29  if (m_nObj == 0) std::cerr<<"NO Atln banks in the MuonDD Database"<<std::endl;
30 
31  for (size_t i=0; i<atln->size(); ++i) {
32  m_d[i].version = (*atln)[i]->getInt("VERS");
33  m_d[i].i = (*atln)[i]->getInt("I");
34  m_d[i].icovol = (*atln)[i]->getInt("ICOVOL");
35  m_d[i].zpovol = (*atln)[i]->getFloat("ZPOVOL");
36  m_d[i].widvol = (*atln)[i]->getFloat("WIDVOL");
37  m_d[i].namvol = (*atln)[i]->getString("NAMVOL");
38  m_d[i].jsta = (*atln)[i]->getInt("JSTA");
39  }
40  }
41  else {
42  std::cerr<<"NO Atln banks in the MuonDD Database"<<std::endl;
43  }
44 }
45 
46 } // end of namespace MuonGM
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition: GeoMuonHits.h:27
MuonGM::DblQ00Atln::DblQ00Atln
DblQ00Atln()=default
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.
DblQ00Atln.h
MuonGM::DblQ00Atln::getName
std::string getName() const
Definition: DblQ00Atln.h:44
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
MuonGM::DblQ00Atln::m_d
std::vector< ATLN > m_d
Definition: DblQ00Atln.h:49
IRDBRecordset_ptr
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
Definition: IRDBAccessSvc.h:25
IRDBRecord.h
Definition of the abstract IRDBRecord interface.
IRDBRecordset.h
Definition of the abstract IRDBRecordset interface.
MuonGM::DblQ00Atln::m_nObj
unsigned int m_nObj
Definition: DblQ00Atln.h:50