ATLAS Offline Software
DblQ00Atyp.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  DblQ00Atyp::DblQ00Atyp(IRDBAccessSvc *pAccessSvc, const std::string & GeoTag, const std::string & GeoNode) {
22 
23  IRDBRecordset_ptr atyp = pAccessSvc->getRecordsetPtr(getName(),GeoTag, GeoNode);
24 
25  if(atyp->size()!=0) {
26  m_nObj = atyp->size();
27  m_d.resize (m_nObj);
28  if (m_nObj == 0) std::cerr<<"NO Atyp banks in the MuonDD Database"<<std::endl;
29 
30  for (size_t i=0;i<atyp->size(); ++i) {
31  m_d[i].version = (*atyp)[i]->getInt("VERS");
32  m_d[i].jtyp = (*atyp)[i]->getInt("JTYP");
33  m_d[i].nsta = (*atyp)[i]->getInt("NSTA");
34  m_d[i].type = (*atyp)[i]->getString("TYP");
35  }
36  }
37  else {
38  std::cerr<<"NO Atyp banks in the MuonDD Database"<<std::endl;
39  }
40 }
41 
42 
43 } // 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::DblQ00Atyp::m_nObj
unsigned int m_nObj
Definition: DblQ00Atyp.h:50
DblQ00Atyp.h
MuonGM::DblQ00Atyp::m_d
std::vector< ATYP > m_d
Definition: DblQ00Atyp.h:49
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
MuonGM::DblQ00Atyp::DblQ00Atyp
DblQ00Atyp()=default
IRDBRecord.h
Definition of the abstract IRDBRecord interface.
IRDBRecordset.h
Definition of the abstract IRDBRecordset interface.
MuonGM::DblQ00Atyp::getName
std::string getName() const
Definition: DblQ00Atyp.h:44