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

#include <DblQ00Almn.h>

Collaboration diagram for MuonGM::DblQ00Almn:

Classes

struct  ALMN

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 23 of file DblQ00Almn.h.

Constructor & Destructor Documentation

◆ DblQ00Almn() [1/3]

MuonGM::DblQ00Almn::DblQ00Almn ( )
default

◆ ~DblQ00Almn()

MuonGM::DblQ00Almn::~DblQ00Almn ( )
default

◆ DblQ00Almn() [2/3]

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

Definition at line 21 of file DblQ00Almn.cxx.

21 {
22
23 IRDBRecordset_ptr almn = pAccessSvc->getRecordsetPtr(getName(),GeoTag, GeoNode);
24
25 if(almn->size()>0) {
26 m_nObj = almn->size();
27 m_d.resize (m_nObj);
28 if (m_nObj == 0) std::cerr<<"NO Almn banks in the MuonDD Database"<<std::endl;
29
30 for(size_t i = 0; i<almn->size(); ++i) {
31 m_d[i].version = (*almn)[i]->getInt("VERS");
32 m_d[i].i = (*almn)[i]->getInt("I");
33 m_d[i].dx = (*almn)[i]->getFloat("DX");
34 m_d[i].dy = (*almn)[i]->getFloat("DY");
35 m_d[i].dz = (*almn)[i]->getFloat("DZ");
36 m_d[i].job = (*almn)[i]->getInt("JOB");
37 m_d[i].tec = (*almn)[i]->getString("TEC");
38 m_d[i].iw = (*almn)[i]->getInt("IW");
39 m_d[i].isplit_x = (*almn)[i]->getInt("ISPLIT_X");
40 m_d[i].isplit_y = (*almn)[i]->getInt("ISPLIT_Y");
41 m_d[i].ishape = (*almn)[i]->getInt("ISHAPE");
42 m_d[i].width_xs = (*almn)[i]->getFloat("WIDTH_XS");
43 m_d[i].width_xl = (*almn)[i]->getFloat("WIDTH_XL");
44 m_d[i].length_y = (*almn)[i]->getFloat("LENGTH_Y");
45 m_d[i].excent = (*almn)[i]->getFloat("EXCENT");
46 m_d[i].dead1 = (*almn)[i]->getFloat("DEAD1");
47 m_d[i].dead2 = (*almn)[i]->getFloat("DEAD2");
48 m_d[i].dead3 = (*almn)[i]->getFloat("DEAD3");
49 m_d[i].jtyp = (*almn)[i]->getInt("JTYP");
50 m_d[i].indx = (*almn)[i]->getInt("INDX");
51 }
52 }
53 else {
54 std::cerr<<"NO Almn banks in the MuonDD Database"<<std::endl;
55 }
56}
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 DblQ00Almn.h:59
std::vector< ALMN > m_d
Definition DblQ00Almn.h:64
unsigned int m_nObj
Definition DblQ00Almn.h:65

◆ DblQ00Almn() [3/3]

MuonGM::DblQ00Almn::DblQ00Almn ( const DblQ00Almn & )
default

Member Function Documentation

◆ data()

const ALMN * MuonGM::DblQ00Almn::data ( ) const
inline

Definition at line 57 of file DblQ00Almn.h.

57{ return m_d.data(); };

◆ getDirName()

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

Definition at line 60 of file DblQ00Almn.h.

60{ return "DblQ00"; };

◆ getName()

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

Definition at line 59 of file DblQ00Almn.h.

59{ return "ALMN"; };

◆ getObjName()

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

Definition at line 61 of file DblQ00Almn.h.

61{ return "ALMN"; };

◆ operator=()

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

◆ size()

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

Definition at line 58 of file DblQ00Almn.h.

58{ return m_nObj; };

Member Data Documentation

◆ m_d

std::vector<ALMN> MuonGM::DblQ00Almn::m_d {}
private

Definition at line 64 of file DblQ00Almn.h.

64{};

◆ m_nObj

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

Definition at line 65 of file DblQ00Almn.h.

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

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