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

#include <DblQ00Wcro.h>

Collaboration diagram for MuonGM::DblQ00Wcro:

Classes

struct  WCRO

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 22 of file DblQ00Wcro.h.

Constructor & Destructor Documentation

◆ DblQ00Wcro() [1/3]

MuonGM::DblQ00Wcro::DblQ00Wcro ( )
default

◆ ~DblQ00Wcro()

MuonGM::DblQ00Wcro::~DblQ00Wcro ( )
default

◆ DblQ00Wcro() [2/3]

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

Definition at line 21 of file DblQ00Wcro.cxx.

21 {
22
23 IRDBRecordset_ptr wcro = pAccessSvc->getRecordsetPtr(getName(),GeoTag, GeoNode);
24
25 if(wcro->size()>0) {
26 m_nObj = wcro->size();
27 m_d.resize (m_nObj);
28 if (m_nObj == 0) std::cerr<<"NO Wcro banks in the MuonDD Database"<<std::endl;
29
30 for(size_t i =0; i<wcro->size(); ++i) {
31 m_d[i].version = (*wcro)[i]->getInt("VERS");
32 m_d[i].jsta = (*wcro)[i]->getInt("JSTA");
33 m_d[i].num = (*wcro)[i]->getInt("NUM");
34 m_d[i].heightness = (*wcro)[i]->getFloat("HEIGHTNESS");
35 m_d[i].largeness = (*wcro)[i]->getFloat("LARGENESS");
36 m_d[i].thickness = (*wcro)[i]->getFloat("THICKNESS");
37 }
38 } else {
39 std::cerr<<"NO Wcro banks in the MuonDD Database"<<std::endl;
40 }
41}
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
unsigned int m_nObj
Definition DblQ00Wcro.h:50
std::vector< WCRO > m_d
Definition DblQ00Wcro.h:49
std::string getName() const
Definition DblQ00Wcro.h:44

◆ DblQ00Wcro() [3/3]

MuonGM::DblQ00Wcro::DblQ00Wcro ( const DblQ00Wcro & )
default

Member Function Documentation

◆ data()

const WCRO * MuonGM::DblQ00Wcro::data ( ) const
inline

Definition at line 42 of file DblQ00Wcro.h.

42{ return m_d.data(); };

◆ getDirName()

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

Definition at line 45 of file DblQ00Wcro.h.

45{ return "DblQ00"; };

◆ getName()

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

Definition at line 44 of file DblQ00Wcro.h.

44{ return "WCRO"; };

◆ getObjName()

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

Definition at line 46 of file DblQ00Wcro.h.

46{ return "WCRO"; };

◆ operator=()

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

◆ size()

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

Definition at line 43 of file DblQ00Wcro.h.

43{ return m_nObj; };

Member Data Documentation

◆ m_d

std::vector<WCRO> MuonGM::DblQ00Wcro::m_d {}
private

Definition at line 49 of file DblQ00Wcro.h.

49{};

◆ m_nObj

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

Definition at line 50 of file DblQ00Wcro.h.

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

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