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

#include <DblQ00Wlbi.h>

Collaboration diagram for MuonGM::DblQ00Wlbi:

Classes

struct  WLBI
 

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 23 of file DblQ00Wlbi.h.

Constructor & Destructor Documentation

◆ DblQ00Wlbi() [1/3]

MuonGM::DblQ00Wlbi::DblQ00Wlbi ( )
default

◆ ~DblQ00Wlbi()

MuonGM::DblQ00Wlbi::~DblQ00Wlbi ( )
default

◆ DblQ00Wlbi() [2/3]

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

Definition at line 30 of file DblQ00Wlbi.cxx.

31  {
32  m_nObj = wlbi->size();
33  m_d.resize (m_nObj);
34  if (m_nObj == 0) std::cerr<<"NO Wlbi banks in the MuonDD Database"<<std::endl;
35 
36  for(size_t i =0;i<wlbi->size(); ++i) {
37  m_d[i].version = (*wlbi)[i]->getInt("VERS");
38  m_d[i].jsta = (*wlbi)[i]->getInt("JSTA");
39  m_d[i].num = (*wlbi)[i]->getInt("NUM");
40  m_d[i].height = (*wlbi)[i]->getFloat("HEIGHT");
41  m_d[i].thickness = (*wlbi)[i]->getFloat("THICKNESS");
42  try{
43  m_d[i].lowerThickness = (*wlbi)[i]->getFloat("LOWERTHICK");
44  } catch (const std::runtime_error &) {
45  m_d[i].lowerThickness = m_d[i].thickness ;
46  }
47  try {
48  m_d[i].yShift = (*wlbi)[i]->getFloat("SHIFTYSTATION");
49  } catch(const std::runtime_error &) {
50  m_d[i].yShift = 0.;
51  }
52  }
53  }
54  else {
55  std::cerr<<"NO Wlbi banks in the MuonDD Database"<<std::endl;
56  }
57 }
58 
59 } // end of namespace MuonGM

◆ DblQ00Wlbi() [3/3]

MuonGM::DblQ00Wlbi::DblQ00Wlbi ( const DblQ00Wlbi )
default

Member Function Documentation

◆ data()

const WLBI* MuonGM::DblQ00Wlbi::data ( ) const
inline

Definition at line 43 of file DblQ00Wlbi.h.

43 { return m_d.data(); };

◆ getDirName()

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

Definition at line 46 of file DblQ00Wlbi.h.

46 { return "DblQ00"; };

◆ getName()

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

Definition at line 45 of file DblQ00Wlbi.h.

45 { return "WLBI"; };

◆ getObjName()

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

Definition at line 47 of file DblQ00Wlbi.h.

47 { return "WLBI"; };

◆ operator=()

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

◆ size()

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

Definition at line 44 of file DblQ00Wlbi.h.

44 { return m_nObj; };

Member Data Documentation

◆ m_d

std::vector<WLBI> MuonGM::DblQ00Wlbi::m_d {}
private

Definition at line 50 of file DblQ00Wlbi.h.

◆ m_nObj

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

Definition at line 51 of file DblQ00Wlbi.h.


The documentation for this class was generated from the following files:
MuonGM::DblQ00Wlbi::m_d
std::vector< WLBI > m_d
Definition: DblQ00Wlbi.h:50
lumiFormat.i
int i
Definition: lumiFormat.py:85
MuonGM::DblQ00Wlbi::m_nObj
unsigned int m_nObj
Definition: DblQ00Wlbi.h:51