ATLAS Offline Software
DblQ00Wspa.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 <sstream>
17 
18 namespace MuonGM{
19 
20  DblQ00Wspa::DblQ00Wspa(IRDBAccessSvc *pAccessSvc, const std::string & GeoTag, const std::string & GeoNode) {
21 
22  IRDBRecordset_ptr wspa = pAccessSvc->getRecordsetPtr(getName(),GeoTag, GeoNode);
23 
24  if(wspa->size()>0) {
25  m_nObj = wspa->size();
26  m_d.resize (m_nObj);
27  if (m_nObj == 0) std::cerr<<"NO Wspa banks in the MuonDD Database"<<std::endl;
28  for(size_t i=0; i<wspa->size(); ++i) {
29  m_d[i].version = (*wspa)[i]->getInt("VERS");
30  m_d[i].jsta = (*wspa)[i]->getInt("JSTA");
31  m_d[i].nb = (*wspa)[i]->getInt("NB");
32  m_d[i].x0 = (*wspa)[i]->getFloat("X0");
33  m_d[i].tckspa = (*wspa)[i]->getFloat("TCKSPA");
34  }
35  } else {
36  std::cerr<<"NO Wspa banks in the MuonDD Database"<<std::endl;
37  }
38 }
39 
40 
41 } // 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::DblQ00Wspa::m_nObj
unsigned int m_nObj
Definition: DblQ00Wspa.h:47
DblQ00Wspa.h
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::DblQ00Wspa::getName
std::string getName() const
Definition: DblQ00Wspa.h:41
MuonGM::DblQ00Wspa::m_d
std::vector< WSPA > m_d
Definition: DblQ00Wspa.h:46
MuonGM::DblQ00Wspa::DblQ00Wspa
DblQ00Wspa()=default
IRDBRecord.h
Definition of the abstract IRDBRecord interface.
IRDBRecordset.h
Definition of the abstract IRDBRecordset interface.