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

#include <DblQ00Xtomo.h>

Collaboration diagram for MuonGM::DblQ00Xtomo:

Classes

struct  XTOMO
 

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 22 of file DblQ00Xtomo.h.

Constructor & Destructor Documentation

◆ DblQ00Xtomo() [1/3]

MuonGM::DblQ00Xtomo::DblQ00Xtomo ( )
default

◆ ~DblQ00Xtomo()

MuonGM::DblQ00Xtomo::~DblQ00Xtomo ( )
default

◆ DblQ00Xtomo() [2/3]

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

Definition at line 21 of file DblQ00Xtomo.cxx.

21  {
22 
23 
24  m_nObj = xtomo->size();
25  m_d.resize(m_nObj);
26  if (m_nObj == 0) std::cerr << "No XtomoData entries in the MuonDD Database" << std::endl;
27 
28  for (size_t i =0 ; i<xtomo->size(); ++i) {
29  m_d[i].line = i;
30  m_d[i].XTOMOCHBERNAME = (*xtomo)[i]->getString("XTOMOCHBERNAME");
31  m_d[i].XTOMOSITE = (*xtomo)[i]->getString("XTOMOSITE");
32  m_d[i].XTOMOSITEID = (*xtomo)[i]->getInt("XTOMOSITEID");
33  m_d[i].XTOMOTIME = (*xtomo)[i]->getInt("XTOMOTIME");
34  m_d[i].XTOMOPASSED = (*xtomo)[i]->getInt("XTOMOPASSED");
35  m_d[i].XTOMOSIDE = (*xtomo)[i]->getString("XTOMOSIDE");
36  m_d[i].XTOMONBERTUBE1 = (*xtomo)[i]->getInt("XTOMONBERTUBE1");
37  m_d[i].XTOMONBERTUBE2 = (*xtomo)[i]->getInt("XTOMONBERTUBE2");
38  m_d[i].XTOMONBERML = (*xtomo)[i]->getInt("XTOMONBERML");
39  m_d[i].XTOMONBERLAYER = (*xtomo)[i]->getInt("XTOMONBERLAYER");
40  try {
41  m_d[i].XTOMOML1STAGG = (*xtomo)[i]->getInt("XTOMOML1STAGG");
42  } catch (const std::exception&) {} // ignore exception for now: field missing in MuonSpectrometer-R.06.01-tomotest
43  try {
44  m_d[i].XTOMOML2STAGG = (*xtomo)[i]->getInt("XTOMOML2STAGG");
45  } catch (const std::exception&) {} // ignore exception for now: field missing in MuonSpectrometer-R.06.01-tomotest
46  try {
47  m_d[i].XTOMOD1 = (*xtomo)[i]->getFloat("XTOMOD1");
48  } catch (const std::exception&) {} // ignore exception for now: field missing in MuonSpectrometer-R.06.01-tomotest
49  try {
50  m_d[i].XTOMONMEZ = (*xtomo)[i]->getInt("XTOMONMEZ");
51  } catch (const std::exception&) {} // ignore exception for now: field missing in MuonSpectrometer-R.06.01-tomotest
52  m_d[i].XTOMOML1NYTUB = (*xtomo)[i]->getFloat("XTOMOML1NYTUB");
53  m_d[i].XTOMOML1NZTUB = (*xtomo)[i]->getFloat("XTOMOML1NZTUB");
54  m_d[i].XTOMOML1NDELA = (*xtomo)[i]->getFloat("XTOMOML1NDELA");
55  m_d[i].XTOMOML1NYPIT = (*xtomo)[i]->getFloat("XTOMOML1NYPIT");
56  m_d[i].XTOMOML1NZPIT = (*xtomo)[i]->getFloat("XTOMOML1NZPIT");
57  m_d[i].XTOMOML1PYTUB = (*xtomo)[i]->getFloat("XTOMOML1PYTUB");
58  m_d[i].XTOMOML1PZTUB = (*xtomo)[i]->getFloat("XTOMOML1PZTUB");
59  m_d[i].XTOMOML1PDELA = (*xtomo)[i]->getFloat("XTOMOML1PDELA");
60  m_d[i].XTOMOML1PYPIT = (*xtomo)[i]->getFloat("XTOMOML1PYPIT");
61  m_d[i].XTOMOML1PZPIT = (*xtomo)[i]->getFloat("XTOMOML1PZPIT");
62  m_d[i].XTOMOML2NYTUB = (*xtomo)[i]->getFloat("XTOMOML2NYTUB");
63  m_d[i].XTOMOML2NZTUB = (*xtomo)[i]->getFloat("XTOMOML2NZTUB");
64  m_d[i].XTOMOML2NDELA = (*xtomo)[i]->getFloat("XTOMOML2NDELA");
65  m_d[i].XTOMOML2NYPIT = (*xtomo)[i]->getFloat("XTOMOML2NYPIT");
66  m_d[i].XTOMOML2NZPIT = (*xtomo)[i]->getFloat("XTOMOML2NZPIT");
67  m_d[i].XTOMOML2PYTUB = (*xtomo)[i]->getFloat("XTOMOML2PYTUB");
68  m_d[i].XTOMOML2PZTUB = (*xtomo)[i]->getFloat("XTOMOML2PZTUB");
69  m_d[i].XTOMOML2PDELA = (*xtomo)[i]->getFloat("XTOMOML2PDELA");
70  m_d[i].XTOMOML2PYPIT = (*xtomo)[i]->getFloat("XTOMOML2PYPIT");
71  m_d[i].XTOMOML2PZPIT = (*xtomo)[i]->getFloat("XTOMOML2PZPIT");
72  }
73  }
74 }
75 } // end of namespace MuonGM

◆ DblQ00Xtomo() [3/3]

MuonGM::DblQ00Xtomo::DblQ00Xtomo ( const DblQ00Xtomo )
default

Member Function Documentation

◆ data()

const XTOMO* MuonGM::DblQ00Xtomo::data ( ) const
inline

Definition at line 71 of file DblQ00Xtomo.h.

71 { return m_d.data(); };

◆ getDirName()

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

Definition at line 74 of file DblQ00Xtomo.h.

74 { return "DblQ00"; };

◆ getName()

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

Definition at line 73 of file DblQ00Xtomo.h.

73 { return "XTOMO"; };

◆ getObjName()

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

Definition at line 75 of file DblQ00Xtomo.h.

75 { return "XTOMO"; };

◆ operator=()

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

◆ size()

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

Definition at line 72 of file DblQ00Xtomo.h.

72 { return m_nObj; };

Member Data Documentation

◆ m_d

std::vector<XTOMO> MuonGM::DblQ00Xtomo::m_d {}
private

Definition at line 78 of file DblQ00Xtomo.h.

◆ m_nObj

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

Definition at line 79 of file DblQ00Xtomo.h.


The documentation for this class was generated from the following files:
MuonGM::DblQ00Xtomo::m_d
std::vector< XTOMO > m_d
Definition: DblQ00Xtomo.h:78
MuonGM::DblQ00Xtomo::m_nObj
unsigned int m_nObj
Definition: DblQ00Xtomo.h:79
lumiFormat.i
int i
Definition: lumiFormat.py:85
calibdata.exception
exception
Definition: calibdata.py:496