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

#include <DblQ00Atyp.h>

Collaboration diagram for MuonGM::DblQ00Atyp:

Classes

struct  ATYP

Public Member Functions

 DblQ00Atyp ()=default
 ~DblQ00Atyp ()=default
 DblQ00Atyp (IRDBAccessSvc *pAccessSvc, const std::string &GeoTag="", const std::string &GeoNode="")
DblQ00Atypoperator= (const DblQ00Atyp &right)=delete
 DblQ00Atyp (const DblQ00Atyp &)=delete
const ATYPdata () const
unsigned int size () const
unsigned int getNObj () const
std::string getName () const
std::string getDirName () const
std::string getObjName () const

Private Attributes

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

Detailed Description

Definition at line 23 of file DblQ00Atyp.h.

Constructor & Destructor Documentation

◆ DblQ00Atyp() [1/3]

MuonGM::DblQ00Atyp::DblQ00Atyp ( )
default

◆ ~DblQ00Atyp()

MuonGM::DblQ00Atyp::~DblQ00Atyp ( )
default

◆ DblQ00Atyp() [2/3]

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

Definition at line 21 of file DblQ00Atyp.cxx.

21 {
22
23 IRDBRecordset_ptr atyp = pAccessSvc->getRecordsetPtr(getName(),GeoTag, GeoNode);
24
25 if(atyp->size()!=0) {
26 m_nObj = atyp->size();
27 m_d.resize (m_nObj);
28 if (m_nObj == 0) std::cerr<<"NO Atyp banks in the MuonDD Database"<<std::endl;
29
30 for (size_t i=0;i<atyp->size(); ++i) {
31 m_d[i].version = (*atyp)[i]->getInt("VERS");
32 m_d[i].jtyp = (*atyp)[i]->getInt("JTYP");
33 m_d[i].nsta = (*atyp)[i]->getInt("NSTA");
34 m_d[i].type = (*atyp)[i]->getString("TYP");
35 }
36 }
37 else {
38 std::cerr<<"NO Atyp banks in the MuonDD Database"<<std::endl;
39 }
40}
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
unsigned int m_nObj
Definition DblQ00Atyp.h:50
std::vector< ATYP > m_d
Definition DblQ00Atyp.h:49
std::string getName() const
Definition DblQ00Atyp.h:44

◆ DblQ00Atyp() [3/3]

MuonGM::DblQ00Atyp::DblQ00Atyp ( const DblQ00Atyp & )
delete

Member Function Documentation

◆ data()

const ATYP * MuonGM::DblQ00Atyp::data ( ) const
inline

Definition at line 40 of file DblQ00Atyp.h.

40{ return m_d.data(); };

◆ getDirName()

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

Definition at line 45 of file DblQ00Atyp.h.

45{ return "DblQ00"; };

◆ getName()

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

Definition at line 44 of file DblQ00Atyp.h.

44{ return "ATYP"; };

◆ getNObj()

unsigned int MuonGM::DblQ00Atyp::getNObj ( ) const
inline

Definition at line 42 of file DblQ00Atyp.h.

42{ return m_nObj; };

◆ getObjName()

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

Definition at line 46 of file DblQ00Atyp.h.

46{ return "ATYP"; };

◆ operator=()

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

◆ size()

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

Definition at line 41 of file DblQ00Atyp.h.

41{ return m_nObj; };

Member Data Documentation

◆ m_d

std::vector<ATYP> MuonGM::DblQ00Atyp::m_d {0}
private

Definition at line 49 of file DblQ00Atyp.h.

49{0};

◆ m_nObj

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

Definition at line 50 of file DblQ00Atyp.h.

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

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