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

#include <DblQ00Wlbi.h>

Collaboration diagram for MuonGM::DblQ00Wlbi:

Classes

struct  WLBI

Public Member Functions

 DblQ00Wlbi ()=default
 ~DblQ00Wlbi ()=default
 DblQ00Wlbi (IRDBAccessSvc *pAccessSvc, const std::string &GeoTag="", const std::string &GeoNode="")
DblQ00Wlbioperator= (const DblQ00Wlbi &right)=default
 DblQ00Wlbi (const DblQ00Wlbi &)=default
const WLBIdata () const
unsigned int size () const
std::string getName () const
std::string getDirName () const
std::string getObjName () const

Private Attributes

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

Detailed Description

Definition at line 23 of file DblQ00Wlbi.h.

Constructor & Destructor Documentation

◆ DblQ00Wlbi() [1/3]

MuonGM::DblQ00Wlbi::DblQ00Wlbi ( )
default

◆ ~DblQ00Wlbi()

MuonGM::DblQ00Wlbi::~DblQ00Wlbi ( )
default

◆ DblQ00Wlbi() [2/3]

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

Definition at line 27 of file DblQ00Wlbi.cxx.

27 {
28
29 IRDBRecordset_ptr wlbi = pAccessSvc->getRecordsetPtr(getName(),GeoTag, GeoNode);
30
31 if(wlbi->size()>0) {
32 m_nObj = wlbi->size();
33 m_d.resize (m_nObj);
34 if (m_nObj == 0) std::cerr<<"NO Wlbi banks in the MuonDD Database"<<std::endl;
35
36 for(size_t i =0;i<wlbi->size(); ++i) {
37 m_d[i].version = (*wlbi)[i]->getInt("VERS");
38 m_d[i].jsta = (*wlbi)[i]->getInt("JSTA");
39 m_d[i].num = (*wlbi)[i]->getInt("NUM");
40 m_d[i].height = (*wlbi)[i]->getFloat("HEIGHT");
41 m_d[i].thickness = (*wlbi)[i]->getFloat("THICKNESS");
42 try{
43 m_d[i].lowerThickness = (*wlbi)[i]->getFloat("LOWERTHICK");
44 } catch (const std::runtime_error &) {
45 m_d[i].lowerThickness = m_d[i].thickness ;
46 }
47 try {
48 m_d[i].yShift = (*wlbi)[i]->getFloat("SHIFTYSTATION");
49 } catch(const std::runtime_error &) {
50 m_d[i].yShift = 0.;
51 }
52 }
53 }
54 else {
55 std::cerr<<"NO Wlbi banks in the MuonDD Database"<<std::endl;
56 }
57}
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::string getName() const
Definition DblQ00Wlbi.h:45
unsigned int m_nObj
Definition DblQ00Wlbi.h:51
std::vector< WLBI > m_d
Definition DblQ00Wlbi.h:50

◆ DblQ00Wlbi() [3/3]

MuonGM::DblQ00Wlbi::DblQ00Wlbi ( const DblQ00Wlbi & )
default

Member Function Documentation

◆ data()

const WLBI * MuonGM::DblQ00Wlbi::data ( ) const
inline

Definition at line 43 of file DblQ00Wlbi.h.

43{ return m_d.data(); };

◆ getDirName()

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

Definition at line 46 of file DblQ00Wlbi.h.

46{ return "DblQ00"; };

◆ getName()

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

Definition at line 45 of file DblQ00Wlbi.h.

45{ return "WLBI"; };

◆ getObjName()

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

Definition at line 47 of file DblQ00Wlbi.h.

47{ return "WLBI"; };

◆ operator=()

DblQ00Wlbi & MuonGM::DblQ00Wlbi::operator= ( const DblQ00Wlbi & right)
default

◆ size()

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

Definition at line 44 of file DblQ00Wlbi.h.

44{ return m_nObj; };

Member Data Documentation

◆ m_d

std::vector<WLBI> MuonGM::DblQ00Wlbi::m_d {}
private

Definition at line 50 of file DblQ00Wlbi.h.

50{};

◆ m_nObj

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

Definition at line 51 of file DblQ00Wlbi.h.

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

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