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

#include <DblQ00Atln.h>

Collaboration diagram for MuonGM::DblQ00Atln:

Classes

struct  ATLN

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 23 of file DblQ00Atln.h.

Constructor & Destructor Documentation

◆ DblQ00Atln() [1/3]

MuonGM::DblQ00Atln::DblQ00Atln ( )
default

◆ ~DblQ00Atln()

MuonGM::DblQ00Atln::~DblQ00Atln ( )
default

◆ DblQ00Atln() [2/3]

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

Definition at line 22 of file DblQ00Atln.cxx.

22 {
23
24 IRDBRecordset_ptr atln = pAccessSvc->getRecordsetPtr(getName(),GeoTag, GeoNode);
25
26 if(atln->size()>0) {
27 m_nObj = atln->size();
28 m_d.resize (m_nObj);
29 if (m_nObj == 0) std::cerr<<"NO Atln banks in the MuonDD Database"<<std::endl;
30
31 for (size_t i=0; i<atln->size(); ++i) {
32 m_d[i].version = (*atln)[i]->getInt("VERS");
33 m_d[i].i = (*atln)[i]->getInt("I");
34 m_d[i].icovol = (*atln)[i]->getInt("ICOVOL");
35 m_d[i].zpovol = (*atln)[i]->getFloat("ZPOVOL");
36 m_d[i].widvol = (*atln)[i]->getFloat("WIDVOL");
37 m_d[i].namvol = (*atln)[i]->getString("NAMVOL");
38 m_d[i].jsta = (*atln)[i]->getInt("JSTA");
39 }
40 }
41 else {
42 std::cerr<<"NO Atln banks in the MuonDD Database"<<std::endl;
43 }
44}
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< ATLN > m_d
Definition DblQ00Atln.h:49
unsigned int m_nObj
Definition DblQ00Atln.h:50
std::string getName() const
Definition DblQ00Atln.h:44

◆ DblQ00Atln() [3/3]

MuonGM::DblQ00Atln::DblQ00Atln ( const DblQ00Atln & )
delete

Member Function Documentation

◆ data()

const ATLN * MuonGM::DblQ00Atln::data ( ) const
inline

Definition at line 42 of file DblQ00Atln.h.

42{ return m_d.data(); };

◆ getDirName()

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

Definition at line 45 of file DblQ00Atln.h.

45{ return "DblQ00"; };

◆ getName()

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

Definition at line 44 of file DblQ00Atln.h.

44{ return "ATLN"; };

◆ getObjName()

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

Definition at line 46 of file DblQ00Atln.h.

46{ return "ATLN"; };

◆ operator=()

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

◆ size()

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

Definition at line 43 of file DblQ00Atln.h.

43{ return m_nObj; };

Member Data Documentation

◆ m_d

std::vector<ATLN> MuonGM::DblQ00Atln::m_d {}
private

Definition at line 49 of file DblQ00Atln.h.

49{};

◆ m_nObj

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

Definition at line 50 of file DblQ00Atln.h.

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

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