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

#include <DblQ00Wchv.h>

Collaboration diagram for MuonGM::DblQ00Wchv:

Classes

struct  WCHV

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 23 of file DblQ00Wchv.h.

Constructor & Destructor Documentation

◆ DblQ00Wchv() [1/3]

MuonGM::DblQ00Wchv::DblQ00Wchv ( )
default

◆ ~DblQ00Wchv()

MuonGM::DblQ00Wchv::~DblQ00Wchv ( )
default

◆ DblQ00Wchv() [2/3]

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

Definition at line 21 of file DblQ00Wchv.cxx.

21 {
22
23 IRDBRecordset_ptr wchv = pAccessSvc->getRecordsetPtr(getName(),GeoTag, GeoNode);
24
25 if(wchv->size()>0) {
26 m_nObj = wchv->size();
27 m_d.resize (m_nObj);
28 if (m_nObj == 0) std::cerr<<"NO Wchv banks in the MuonDD Database"<<std::endl;
29
30 for (size_t i =0;i<wchv->size(); ++i) {
31 m_d[i].version = (*wchv)[i]->getInt("VERS");
32 m_d[i].jsta = (*wchv)[i]->getInt("JSTA");
33 m_d[i].num = (*wchv)[i]->getInt("NUM");
34 m_d[i].heightness = (*wchv)[i]->getFloat("HEIGHTNESS");
35 m_d[i].largeness = (*wchv)[i]->getFloat("LARGENESS");
36 m_d[i].thickness = (*wchv)[i]->getFloat("THICKNESS");
37 }
38 }
39 else {
40 std::cerr<<"NO Wchv 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< WCHV > m_d
Definition DblQ00Wchv.h:50
std::string getName() const
Definition DblQ00Wchv.h:45
unsigned int m_nObj
Definition DblQ00Wchv.h:51

◆ DblQ00Wchv() [3/3]

MuonGM::DblQ00Wchv::DblQ00Wchv ( const DblQ00Wchv & )
default

Member Function Documentation

◆ data()

const WCHV * MuonGM::DblQ00Wchv::data ( ) const
inline

Definition at line 43 of file DblQ00Wchv.h.

43{ return m_d.data(); };

◆ getDirName()

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

Definition at line 46 of file DblQ00Wchv.h.

46{ return "DblQ00"; };

◆ getName()

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

Definition at line 45 of file DblQ00Wchv.h.

45{ return "WCHV"; };

◆ getObjName()

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

Definition at line 47 of file DblQ00Wchv.h.

47{ return "WCHV"; };

◆ operator=()

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

◆ size()

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

Definition at line 44 of file DblQ00Wchv.h.

44{ return m_nObj; };

Member Data Documentation

◆ m_d

std::vector<WCHV> MuonGM::DblQ00Wchv::m_d {}
private

Definition at line 50 of file DblQ00Wchv.h.

50{};

◆ m_nObj

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

Definition at line 51 of file DblQ00Wchv.h.

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

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