ATLAS Offline Software
Loading...
Searching...
No Matches
MuonGM::DblQ00Wrpc Class Reference

#include <DblQ00Wrpc.h>

Collaboration diagram for MuonGM::DblQ00Wrpc:

Classes

struct  WRPC

Public Member Functions

 DblQ00Wrpc ()=default
 ~DblQ00Wrpc ()=default
 DblQ00Wrpc (IRDBAccessSvc *pAccessSvc, const std::string &GeoTag="", const std::string &GeoNode="")
DblQ00Wrpcoperator= (const DblQ00Wrpc &right)=delete
 DblQ00Wrpc (const DblQ00Wrpc &)=delete
const WRPCdata () const
unsigned int size () const
std::string getName () const
std::string getDirName () const
std::string getObjName () const

Private Attributes

std::vector< WRPCm_d {}
unsigned int m_nObj {0}

Detailed Description

Definition at line 22 of file DblQ00Wrpc.h.

Constructor & Destructor Documentation

◆ DblQ00Wrpc() [1/3]

MuonGM::DblQ00Wrpc::DblQ00Wrpc ( )
default

◆ ~DblQ00Wrpc()

MuonGM::DblQ00Wrpc::~DblQ00Wrpc ( )
default

◆ DblQ00Wrpc() [2/3]

MuonGM::DblQ00Wrpc::DblQ00Wrpc ( IRDBAccessSvc * pAccessSvc,
const std::string & GeoTag = "",
const std::string & GeoNode = "" )

Definition at line 20 of file DblQ00Wrpc.cxx.

20 {
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}
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
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< WRPC > m_d
Definition DblQ00Wrpc.h:58
std::string getName() const
Definition DblQ00Wrpc.h:53
unsigned int m_nObj
Definition DblQ00Wrpc.h:59

◆ DblQ00Wrpc() [3/3]

MuonGM::DblQ00Wrpc::DblQ00Wrpc ( const DblQ00Wrpc & )
delete

Member Function Documentation

◆ data()

const WRPC * MuonGM::DblQ00Wrpc::data ( ) const
inline

Definition at line 51 of file DblQ00Wrpc.h.

51{ return m_d.data(); };

◆ getDirName()

std::string MuonGM::DblQ00Wrpc::getDirName ( ) const
inline

Definition at line 54 of file DblQ00Wrpc.h.

54{ return "DblQ00"; };

◆ getName()

std::string MuonGM::DblQ00Wrpc::getName ( ) const
inline

Definition at line 53 of file DblQ00Wrpc.h.

53{ return "WRPC"; };

◆ getObjName()

std::string MuonGM::DblQ00Wrpc::getObjName ( ) const
inline

Definition at line 55 of file DblQ00Wrpc.h.

55{ return "WRPC"; };

◆ operator=()

DblQ00Wrpc & MuonGM::DblQ00Wrpc::operator= ( const DblQ00Wrpc & right)
delete

◆ size()

unsigned int MuonGM::DblQ00Wrpc::size ( ) const
inline

Definition at line 52 of file DblQ00Wrpc.h.

52{ return m_nObj; };

Member Data Documentation

◆ m_d

std::vector<WRPC> MuonGM::DblQ00Wrpc::m_d {}
private

Definition at line 58 of file DblQ00Wrpc.h.

58{};

◆ m_nObj

unsigned int MuonGM::DblQ00Wrpc::m_nObj {0}
private

Definition at line 59 of file DblQ00Wrpc.h.

59{0}; // > 1 if array; 0 if error in retrieve.

The documentation for this class was generated from the following files: