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

#include <DblQ00Wded.h>

Collaboration diagram for MuonGM::DblQ00Wded:

Classes

struct  WDED

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 23 of file DblQ00Wded.h.

Constructor & Destructor Documentation

◆ DblQ00Wded() [1/3]

MuonGM::DblQ00Wded::DblQ00Wded ( )
default

◆ ~DblQ00Wded()

MuonGM::DblQ00Wded::~DblQ00Wded ( )
default

◆ DblQ00Wded() [2/3]

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

Definition at line 21 of file DblQ00Wded.cxx.

21 {
22
23 IRDBRecordset_ptr wded = pAccessSvc->getRecordsetPtr(getName(),GeoTag, GeoNode);
24
25 if(wded->size()>0) {
26 m_nObj = wded->size();
27 m_d.resize (m_nObj);
28 if (m_nObj == 0) std::cerr<<"NO Wded banks in the MuonDD Database"<<std::endl;
29
30 for(size_t i =0 ;i<wded->size(); ++i) {
31 m_d[i].version = (*wded)[i]->getInt("VERS");
32 m_d[i].jsta = (*wded)[i]->getInt("JSTA");
33 m_d[i].nb = (*wded)[i]->getInt("NB");
34 m_d[i].x0 = (*wded)[i]->getFloat("X0");
35 m_d[i].auphcb = (*wded)[i]->getFloat("AUPHCB");
36 m_d[i].tckded = (*wded)[i]->getFloat("TCKDED");
37 }
38 }
39 else {
40 std::cerr<<"NO Wded banks in the MuonDD Database"<<std::endl;
41 }
42}
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< WDED > m_d
Definition DblQ00Wded.h:49
unsigned int m_nObj
Definition DblQ00Wded.h:50
std::string getName() const
Definition DblQ00Wded.h:44

◆ DblQ00Wded() [3/3]

MuonGM::DblQ00Wded::DblQ00Wded ( const DblQ00Wded & )
delete

Member Function Documentation

◆ data()

const WDED * MuonGM::DblQ00Wded::data ( ) const
inline

Definition at line 42 of file DblQ00Wded.h.

42{ return m_d.data(); };

◆ getDirName()

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

Definition at line 45 of file DblQ00Wded.h.

45{ return "DblQ00"; };

◆ getName()

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

Definition at line 44 of file DblQ00Wded.h.

44{ return "WDED"; };

◆ getObjName()

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

Definition at line 46 of file DblQ00Wded.h.

46{ return "WDED"; };

◆ operator=()

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

◆ size()

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

Definition at line 43 of file DblQ00Wded.h.

43{ return m_nObj; };

Member Data Documentation

◆ m_d

std::vector<WDED> MuonGM::DblQ00Wded::m_d {}
private

Definition at line 49 of file DblQ00Wded.h.

49{};

◆ m_nObj

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

Definition at line 50 of file DblQ00Wded.h.

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

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