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

#include <DblQ00Wspa.h>

Collaboration diagram for MuonGM::DblQ00Wspa:

Classes

struct  WSPA

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 22 of file DblQ00Wspa.h.

Constructor & Destructor Documentation

◆ DblQ00Wspa() [1/3]

MuonGM::DblQ00Wspa::DblQ00Wspa ( )
default

◆ ~DblQ00Wspa()

MuonGM::DblQ00Wspa::~DblQ00Wspa ( )
default

◆ DblQ00Wspa() [2/3]

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

Definition at line 20 of file DblQ00Wspa.cxx.

20 {
21
22 IRDBRecordset_ptr wspa = pAccessSvc->getRecordsetPtr(getName(),GeoTag, GeoNode);
23
24 if(wspa->size()>0) {
25 m_nObj = wspa->size();
26 m_d.resize (m_nObj);
27 if (m_nObj == 0) std::cerr<<"NO Wspa banks in the MuonDD Database"<<std::endl;
28 for(size_t i=0; i<wspa->size(); ++i) {
29 m_d[i].version = (*wspa)[i]->getInt("VERS");
30 m_d[i].jsta = (*wspa)[i]->getInt("JSTA");
31 m_d[i].nb = (*wspa)[i]->getInt("NB");
32 m_d[i].x0 = (*wspa)[i]->getFloat("X0");
33 m_d[i].tckspa = (*wspa)[i]->getFloat("TCKSPA");
34 }
35 } else {
36 std::cerr<<"NO Wspa banks in the MuonDD Database"<<std::endl;
37 }
38}
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< WSPA > m_d
Definition DblQ00Wspa.h:46
std::string getName() const
Definition DblQ00Wspa.h:41
unsigned int m_nObj
Definition DblQ00Wspa.h:47

◆ DblQ00Wspa() [3/3]

MuonGM::DblQ00Wspa::DblQ00Wspa ( const DblQ00Wspa & )
delete

Member Function Documentation

◆ data()

const WSPA * MuonGM::DblQ00Wspa::data ( ) const
inline

Definition at line 39 of file DblQ00Wspa.h.

39{ return m_d.data(); };

◆ getDirName()

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

Definition at line 42 of file DblQ00Wspa.h.

42{ return "DblQ00"; };

◆ getName()

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

Definition at line 41 of file DblQ00Wspa.h.

41{ return "WSPA"; };

◆ getObjName()

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

Definition at line 43 of file DblQ00Wspa.h.

43{ return "WSPA"; };

◆ operator=()

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

◆ size()

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

Definition at line 40 of file DblQ00Wspa.h.

40{ return m_nObj; };

Member Data Documentation

◆ m_d

std::vector<WSPA> MuonGM::DblQ00Wspa::m_d {}
private

Definition at line 46 of file DblQ00Wspa.h.

46{};

◆ m_nObj

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

Definition at line 47 of file DblQ00Wspa.h.

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

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