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

#include <DblQ00Wcsc.h>

Collaboration diagram for MuonGM::DblQ00Wcsc:

Classes

struct  WCSC
 

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 22 of file DblQ00Wcsc.h.

Constructor & Destructor Documentation

◆ DblQ00Wcsc() [1/3]

MuonGM::DblQ00Wcsc::DblQ00Wcsc ( )
default

◆ ~DblQ00Wcsc()

MuonGM::DblQ00Wcsc::~DblQ00Wcsc ( )
default

◆ DblQ00Wcsc() [2/3]

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

Definition at line 26 of file DblQ00Wcsc.cxx.

27  {
28  m_nObj = wcsc->size();
29  m_d.resize (m_nObj);
30  if (m_nObj == 0) std::cerr<<"NO Wcsc banks in the MuonDD Database"<<std::endl;
31 
32  for(size_t i = 0; i<wcsc->size(); ++i) {
33  m_d[i].version = (*wcsc)[i]->getInt("VERS");
34  m_d[i].jsta = (*wcsc)[i]->getInt("JSTA");
35  m_d[i].laycsc = (*wcsc)[i]->getInt("LAYCSC");
36  m_d[i].ttotal = (*wcsc)[i]->getFloat("TTOTAL");
37  m_d[i].tnomex = (*wcsc)[i]->getFloat("TNOMEX");
38  m_d[i].tlag10 = (*wcsc)[i]->getFloat("TLAG10");
39  m_d[i].wispa = (*wcsc)[i]->getFloat("WISPA");
40  m_d[i].dancat = (*wcsc)[i]->getFloat("DANCAT");
41  m_d[i].pcatre = (*wcsc)[i]->getFloat("PCATRE");
42  m_d[i].gstrip = (*wcsc)[i]->getFloat("GSTRIP");
43  m_d[i].wrestr = (*wcsc)[i]->getFloat("WRESTR");
44  m_d[i].wflstr = (*wcsc)[i]->getFloat("WFLSTR");
45  m_d[i].trrwas = (*wcsc)[i]->getFloat("TRRWAS");
46  m_d[i].wroxa = (*wcsc)[i]->getFloat("WROXA");
47  m_d[i].groxwi = (*wcsc)[i]->getFloat("GROXWI");
48  m_d[i].wgasba = (*wcsc)[i]->getFloat("WGASBA");
49  m_d[i].tgasba = (*wcsc)[i]->getFloat("TGASBA");
50  m_d[i].wgascu = (*wcsc)[i]->getFloat("WGASCU");
51  m_d[i].tgascu = (*wcsc)[i]->getFloat("TGASCU");
52  m_d[i].wfixwi = (*wcsc)[i]->getFloat("WFIXWI");
53  m_d[i].tfixwi = (*wcsc)[i]->getFloat("TFIXWI");
54  m_d[i].pba1wi = (*wcsc)[i]->getFloat("PBA1WI");
55  m_d[i].pba2wi = (*wcsc)[i]->getFloat("PBA2WI");
56  m_d[i].pba3wi = (*wcsc)[i]->getFloat("PBA3WI");
57  m_d[i].psndco = (*wcsc)[i]->getFloat("PSNDCO");
58  m_d[i].azcat = 0.;
59  float azcat = 0.;
60  try {
61  azcat = (*wcsc)[i]->getFloat("AZCAT");
62  m_d[i].azcat = azcat;
63  }
64  catch (const std::runtime_error&) {
65  std::cerr<<" azcat field does not exists !"<<std::endl;
66  m_d[i].azcat = 0.;
67  }
68  }
69  }
70  else {
71  std::cerr<<"NO Wcsc banks in the MuonDD Database"<<std::endl;
72  }
73 }
74 
75 
76 } // end of namespace MuonGM

◆ DblQ00Wcsc() [3/3]

MuonGM::DblQ00Wcsc::DblQ00Wcsc ( const DblQ00Wcsc )
delete

Member Function Documentation

◆ data()

const WCSC* MuonGM::DblQ00Wcsc::data ( ) const
inline

Definition at line 60 of file DblQ00Wcsc.h.

60 { return m_d.data(); };

◆ getDirName()

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

Definition at line 63 of file DblQ00Wcsc.h.

63 { return "DblQ00"; };

◆ getName()

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

Definition at line 62 of file DblQ00Wcsc.h.

62 { return "WCSC"; };

◆ getObjName()

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

Definition at line 64 of file DblQ00Wcsc.h.

64 { return "WCSC"; };

◆ operator=()

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

◆ size()

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

Definition at line 61 of file DblQ00Wcsc.h.

61 { return m_nObj; };

Member Data Documentation

◆ m_d

std::vector<WCSC> MuonGM::DblQ00Wcsc::m_d {}
private

Definition at line 67 of file DblQ00Wcsc.h.

◆ m_nObj

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

Definition at line 68 of file DblQ00Wcsc.h.


The documentation for this class was generated from the following files:
MuonGM::DblQ00Wcsc::m_d
std::vector< WCSC > m_d
Definition: DblQ00Wcsc.h:67
lumiFormat.i
int i
Definition: lumiFormat.py:85
MuonGM::DblQ00Wcsc::m_nObj
unsigned int m_nObj
Definition: DblQ00Wcsc.h:68