ATLAS Offline Software
DblQ00Wrpc.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  DblQ00Wrpc::DblQ00Wrpc(IRDBAccessSvc *pAccessSvc, const std::string & GeoTag, const std::string & GeoNode) {
21  IRDBRecordset_ptr wrpc = pAccessSvc->getRecordsetPtr(getName(),GeoTag, GeoNode);
22  if(wrpc->size()>0) {
23  m_nObj = wrpc->size();
24  m_d.resize (m_nObj);
25  if (m_nObj == 0) std::cerr<<"NO Wrpc banks in the MuonDD Database"<<std::endl;
26 
27  for(size_t i =0; i<wrpc->size();++i) {
28  m_d[i].version = (*wrpc)[i]->getInt("VERS");
29  m_d[i].nvrs = (*wrpc)[i]->getInt("NVRS");
30  m_d[i].layrpc = (*wrpc)[i]->getInt("LAYRPC");
31  m_d[i].tckrla = (*wrpc)[i]->getFloat("TCKRLA");
32  m_d[i].tottck = (*wrpc)[i]->getFloat("TOTTCK");
33  m_d[i].tckfsp = (*wrpc)[i]->getFloat("TCKFSP");
34  m_d[i].ackfsp = (*wrpc)[i]->getFloat("ACKFSP");
35  m_d[i].tlohcb = (*wrpc)[i]->getFloat("TLOHCB");
36  m_d[i].alohcb = (*wrpc)[i]->getFloat("ALOHCB");
37  m_d[i].tckbak = (*wrpc)[i]->getFloat("TCKBAK");
38  m_d[i].tckgas = (*wrpc)[i]->getFloat("TCKGAS");
39  m_d[i].tckssu = (*wrpc)[i]->getFloat("TCKSSU");
40  m_d[i].tckstr = (*wrpc)[i]->getFloat("TCKSTR");
41  m_d[i].sdedmi = (*wrpc)[i]->getFloat("SDEDMI");
42  m_d[i].zdedmi = (*wrpc)[i]->getFloat("ZDEDMI");
43  m_d[i].spdiam = (*wrpc)[i]->getFloat("SPDIAM");
44  m_d[i].sppitc = (*wrpc)[i]->getFloat("SPPITC");
45  m_d[i].stroff[0] = (*wrpc)[i]->getFloat("STROFF_0");
46  m_d[i].stroff[1] = (*wrpc)[i]->getFloat("STROFF_1");
47  m_d[i].stroff[2] = (*wrpc)[i]->getFloat("STROFF_2");
48  }
49  }
50  else {
51  std::cerr<<"NO Wrpc banks in the MuonDD Database"<<std::endl;
52  }
53 }
54 
55 } // 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::DblQ00Wrpc::DblQ00Wrpc
DblQ00Wrpc()=default
MuonGM::DblQ00Wrpc::m_nObj
unsigned int m_nObj
Definition: DblQ00Wrpc.h:59
MuonGM::DblQ00Wrpc::m_d
std::vector< WRPC > m_d
Definition: DblQ00Wrpc.h:58
MuonGM::DblQ00Wrpc::getName
std::string getName() const
Definition: DblQ00Wrpc.h:53
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
DblQ00Wrpc.h
IRDBRecord.h
Definition of the abstract IRDBRecord interface.
IRDBRecordset.h
Definition of the abstract IRDBRecordset interface.