ATLAS Offline Software
Classes | Public Member Functions | Private Attributes | List of all members
MuonGM::DblQ00Dbam Class Reference

#include <DblQ00Dbam.h>

Collaboration diagram for MuonGM::DblQ00Dbam:

Classes

struct  DBAM
 

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 24 of file DblQ00Dbam.h.

Constructor & Destructor Documentation

◆ DblQ00Dbam() [1/3]

MuonGM::DblQ00Dbam::DblQ00Dbam ( )
default

◆ ~DblQ00Dbam()

MuonGM::DblQ00Dbam::~DblQ00Dbam ( )
default

◆ DblQ00Dbam() [2/3]

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

Definition at line 25 of file DblQ00Dbam.cxx.

26  {
27  m_nObj = dbam->size();
28  m_d.resize (m_nObj);
29  if (m_nObj == 0) std::cerr<<"NO Dbam banks in the MuonDD Database"<<std::endl;
30 
31  for(size_t i =0; i<dbam->size(); ++i) {
32  m_d[i].version = (*dbam)[i]->getInt("VERS");
33  m_d[i].nvrs = (*dbam)[i]->getInt("NVRS");
34  m_d[i].mtyp = (*dbam)[i]->getInt("MTYP");
35  m_d[i].numbox = (*dbam)[i]->getInt("NUMBOX");
36  m_d[i].amdb =(*dbam)[i]->getString("AMDB");
37 
38  for (unsigned int j=0; j<53; j++) {
39  try {
40  m_d[i].name[j] = (*dbam)[i]->getString("NAME_"+std::to_string(j));
41  } catch (const std::runtime_error&) {
42  break;
43  }
44  }
45  }
46  }
47  else {
48  std::cerr<<"NO Dbam banks in the MuonDD Database"<<std::endl;
49  }
50 }
51 
52 
53 } // end of namespace MuonGM

◆ DblQ00Dbam() [3/3]

MuonGM::DblQ00Dbam::DblQ00Dbam ( const DblQ00Dbam )
default

Member Function Documentation

◆ data()

const DBAM* MuonGM::DblQ00Dbam::data ( ) const
inline

Definition at line 43 of file DblQ00Dbam.h.

43 { return m_d.data(); };

◆ getDirName()

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

Definition at line 46 of file DblQ00Dbam.h.

46 { return "DblQ00"; };

◆ getName()

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

Definition at line 45 of file DblQ00Dbam.h.

45 { return "DBAM"; };

◆ getObjName()

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

Definition at line 47 of file DblQ00Dbam.h.

47 { return "DBAM"; };

◆ operator=()

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

◆ size()

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

Definition at line 44 of file DblQ00Dbam.h.

44 { return m_nObj; };

Member Data Documentation

◆ m_d

std::vector<DBAM> MuonGM::DblQ00Dbam::m_d {}
private

Definition at line 50 of file DblQ00Dbam.h.

◆ m_nObj

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

Definition at line 51 of file DblQ00Dbam.h.


The documentation for this class was generated from the following files:
lumiFormat.i
int i
Definition: lumiFormat.py:85
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
MuonGM::DblQ00Dbam::m_nObj
unsigned int m_nObj
Definition: DblQ00Dbam.h:51
MuonGM::DblQ00Dbam::m_d
std::vector< DBAM > m_d
Definition: DblQ00Dbam.h:50