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

#include <DblQ00Wtgc.h>

Collaboration diagram for MuonGM::DblQ00Wtgc:

Classes

struct  WTGC

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 23 of file DblQ00Wtgc.h.

Constructor & Destructor Documentation

◆ DblQ00Wtgc() [1/3]

MuonGM::DblQ00Wtgc::DblQ00Wtgc ( )
default

◆ ~DblQ00Wtgc()

MuonGM::DblQ00Wtgc::~DblQ00Wtgc ( )
default

◆ DblQ00Wtgc() [2/3]

MuonGM::DblQ00Wtgc::DblQ00Wtgc ( const DblQ00Wtgc & )
delete

◆ DblQ00Wtgc() [3/3]

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

Definition at line 24 of file DblQ00Wtgc.cxx.

24 {
25
26
27 IRDBRecordset_ptr wtgc = pAccessSvc->getRecordsetPtr(getName(),GeoTag, GeoNode);
28
29 if(wtgc->size()>0) {
30 m_nObj = wtgc->size();
31 m_d.resize (m_nObj);
32 if (m_nObj == 0) std::cerr<<"NO Wtgc banks in the MuonDD Database"<<std::endl;
33
34 for(size_t i=0; i <wtgc->size(); ++i) {
35 m_d[i].version = (*wtgc)[i]->getInt("VERS");
36 m_d[i].jsta = (*wtgc)[i]->getInt("JSTA");
37 m_d[i].nbevol = (*wtgc)[i]->getInt("NBEVOL");
38 m_d[i].x0 = (*wtgc)[i]->getFloat("X0");
39 m_d[i].widchb = (*wtgc)[i]->getFloat("WIDCHB");
40 m_d[i].fwirch = (*wtgc)[i]->getFloat("FWIRCH");
41 m_d[i].fwixch = (*wtgc)[i]->getFloat("FWIXCH");
42 for (unsigned int j=0; j<9; j++) {
43
44 try {
45 m_d[i].allname[j] = (*wtgc)[i]->getString("ALLNAME_"+std::to_string(j));
46 } catch (const std::runtime_error&) {
47 break;
48 }
49 }
50 }
51 }
52 else {
53 std::cerr<<"NO Wtgc banks in the MuonDD Database"<<std::endl;
54 }
55}
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< WTGC > m_d
Definition DblQ00Wtgc.h:51
unsigned int m_nObj
Definition DblQ00Wtgc.h:52
std::string getName() const
Definition DblQ00Wtgc.h:46

Member Function Documentation

◆ data()

const WTGC * MuonGM::DblQ00Wtgc::data ( ) const
inline

Definition at line 44 of file DblQ00Wtgc.h.

44{ return m_d.data(); };

◆ getDirName()

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

Definition at line 47 of file DblQ00Wtgc.h.

47{ return "DblQ00"; };

◆ getName()

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

Definition at line 46 of file DblQ00Wtgc.h.

46{ return "WTGC"; };

◆ getObjName()

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

Definition at line 48 of file DblQ00Wtgc.h.

48{ return "WTGC"; };

◆ operator=()

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

◆ size()

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

Definition at line 45 of file DblQ00Wtgc.h.

45{ return m_nObj; };

Member Data Documentation

◆ m_d

std::vector<WTGC> MuonGM::DblQ00Wtgc::m_d {}
private

Definition at line 51 of file DblQ00Wtgc.h.

51{};

◆ m_nObj

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

Definition at line 52 of file DblQ00Wtgc.h.

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

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