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

#include <DblQ00Wmdt.h>

Collaboration diagram for MuonGM::DblQ00Wmdt:

Classes

struct  WMDT

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 24 of file DblQ00Wmdt.h.

Constructor & Destructor Documentation

◆ DblQ00Wmdt() [1/3]

MuonGM::DblQ00Wmdt::DblQ00Wmdt ( )
default

◆ ~DblQ00Wmdt()

MuonGM::DblQ00Wmdt::~DblQ00Wmdt ( )
default

◆ DblQ00Wmdt() [2/3]

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

Definition at line 23 of file DblQ00Wmdt.cxx.

23 {
24
25 IRDBRecordset_ptr wmdt = pAccessSvc->getRecordsetPtr(getName(),GeoTag, GeoNode);
26
27 if(wmdt->size()>0) {
28 m_nObj = wmdt->size();
29 m_d.resize (m_nObj);
30 if (m_nObj == 0) std::cerr<<"NO Wmdt banks in the MuonDD Database"<<std::endl;
31
32 for(size_t i =0;i<wmdt->size(); ++i) {
33 m_d[i].version = (*wmdt)[i]->getInt("VERS");
34 m_d[i].iw = (*wmdt)[i]->getInt("IW");
35 m_d[i].laymdt = (*wmdt)[i]->getInt("LAYMDT");
36 m_d[i].typ = (*wmdt)[i]->getString("TYP");
37 m_d[i].x0 = (*wmdt)[i]->getFloat("X0");
38 m_d[i].tubpit = (*wmdt)[i]->getFloat("TUBPIT");
39 m_d[i].tubrad = (*wmdt)[i]->getFloat("TUBRAD");
40 m_d[i].tubsta = (*wmdt)[i]->getFloat("TUBSTA");
41 m_d[i].tubdea = (*wmdt)[i]->getFloat("TUBDEA");
42 m_d[i].tubwal = (*wmdt)[i]->getFloat("TUBWAL");
43 for (unsigned int j=0; j<4; j++) {
44 m_d[i].tubxco[j] = (*wmdt)[i]->getFloat("TUBXCO_"+std::to_string(j));
45 m_d[i].tubyco[j] = (*wmdt)[i]->getFloat("TUBYCO_"+std::to_string(j));
46 }
47 }
48 } else {
49 std::cerr<<"NO Wmdt banks in the MuonDD Database"<<std::endl;
50 }
51}
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::string getName() const
Definition DblQ00Wmdt.h:51
std::vector< WMDT > m_d
Definition DblQ00Wmdt.h:56
unsigned int m_nObj
Definition DblQ00Wmdt.h:57

◆ DblQ00Wmdt() [3/3]

MuonGM::DblQ00Wmdt::DblQ00Wmdt ( const DblQ00Wmdt & )
delete

Member Function Documentation

◆ data()

const WMDT * MuonGM::DblQ00Wmdt::data ( ) const
inline

Definition at line 49 of file DblQ00Wmdt.h.

49{ return m_d.data(); };

◆ getDirName()

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

Definition at line 52 of file DblQ00Wmdt.h.

52{ return "DblQ00"; };

◆ getName()

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

Definition at line 51 of file DblQ00Wmdt.h.

51{ return "WMDT"; };

◆ getObjName()

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

Definition at line 53 of file DblQ00Wmdt.h.

53{ return "WMDT"; };

◆ operator=()

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

◆ size()

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

Definition at line 50 of file DblQ00Wmdt.h.

50{ return m_nObj; };

Member Data Documentation

◆ m_d

std::vector<WMDT> MuonGM::DblQ00Wmdt::m_d {}
private

Definition at line 56 of file DblQ00Wmdt.h.

56{};

◆ m_nObj

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

Definition at line 57 of file DblQ00Wmdt.h.

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

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