ATLAS Offline Software
Loading...
Searching...
No Matches
DblQ00Awln.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
18namespace MuonGM
19{
20
21 DblQ00Awln::DblQ00Awln(IRDBAccessSvc *pAccessSvc, const std::string & GeoTag, const std::string & GeoNode){
22
23 IRDBRecordset_ptr awln = pAccessSvc->getRecordsetPtr(getName(),GeoTag, GeoNode);
24
25 if(awln->size()>0) {
26 m_nObj = awln->size();
27 m_d.resize (m_nObj);
28 if (m_nObj == 0) std::cerr<<"NO Awln banks in the MuonDD Database"<<std::endl;
29
30 for(size_t i =0; i<awln->size(); ++i) {
31 m_d[i].version = (*awln)[i]->getInt("VERS");
32 m_d[i].jsta = (*awln)[i]->getInt("JSTA");
33 m_d[i].spitch = (*awln)[i]->getFloat("SPITCH");
34 m_d[i].zpitch = (*awln)[i]->getFloat("ZPITCH");
35 m_d[i].dedstr = (*awln)[i]->getFloat("DEDSTR");
36 m_d[i].nsrest = (*awln)[i]->getInt("NSREST");
37 m_d[i].nzrest = (*awln)[i]->getInt("NZREST");
38 m_d[i].sfirst = (*awln)[i]->getFloat("SFIRST");
39 m_d[i].zfirst = (*awln)[i]->getFloat("ZFIRST");
40 m_d[i].dedsep = (*awln)[i]->getFloat("DEDSEP");
41 m_d[i].nsrost = (*awln)[i]->getInt("NSROST");
42 m_d[i].nzrost = (*awln)[i]->getInt("NZROST");
43 }
44 }
45 else {
46 std::cerr<<"NO Awln banks in the MuonDD Database"<<std::endl;
47 }
48}
49
50
51} // end of namespace MuonGM
Definition of the abstract IRDBAccessSvc interface.
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
Definition of the abstract IRDBRecord interface.
Definition of the abstract IRDBRecordset interface.
IRDBAccessSvc is an abstract interface to the athena service that provides the following functionalit...
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.
virtual unsigned int size() const =0
std::vector< AWLN > m_d
Definition DblQ00Awln.h:51
std::string getName() const
Definition DblQ00Awln.h:46
unsigned int m_nObj
Definition DblQ00Awln.h:52
DblQ00Awln()=default
Ensure that the Athena extensions are properly loaded.
Definition GeoMuonHits.h:27