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

#include <DblQ00Wcmi.h>

Collaboration diagram for MuonGM::DblQ00Wcmi:

Classes

struct  WCMI

Public Member Functions

 DblQ00Wcmi ()=default
 ~DblQ00Wcmi ()=default
 DblQ00Wcmi (IRDBAccessSvc *pAccessSvc, const std::string &GeoTag="", const std::string &GeoNode="")
const WCMIdata () const
unsigned int size () const
std::string getName () const
std::string getDirName () const
std::string getObjName () const

Private Attributes

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

Detailed Description

Definition at line 23 of file DblQ00Wcmi.h.

Constructor & Destructor Documentation

◆ DblQ00Wcmi() [1/2]

MuonGM::DblQ00Wcmi::DblQ00Wcmi ( )
default

◆ ~DblQ00Wcmi()

MuonGM::DblQ00Wcmi::~DblQ00Wcmi ( )
default

◆ DblQ00Wcmi() [2/2]

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

Definition at line 20 of file DblQ00Wcmi.cxx.

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

Member Function Documentation

◆ data()

const WCMI * MuonGM::DblQ00Wcmi::data ( ) const
inline

Definition at line 39 of file DblQ00Wcmi.h.

39{ return m_d.data(); };

◆ getDirName()

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

Definition at line 42 of file DblQ00Wcmi.h.

42{ return "DblQ00"; };

◆ getName()

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

Definition at line 41 of file DblQ00Wcmi.h.

41{ return "WCMI"; };

◆ getObjName()

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

Definition at line 43 of file DblQ00Wcmi.h.

43{ return "WCMI"; };

◆ size()

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

Definition at line 40 of file DblQ00Wcmi.h.

40{ return m_nObj; };

Member Data Documentation

◆ m_d

std::vector<WCMI> MuonGM::DblQ00Wcmi::m_d {}
private

Definition at line 46 of file DblQ00Wcmi.h.

46{};

◆ m_nObj

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

Definition at line 47 of file DblQ00Wcmi.h.

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

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