ATLAS Offline Software
MuonSpectrometer
MuonDetDescr
MuonGMdbObjects
src
DblQ00Asmp.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
/***************************************************************************
6
DB data - Muon Station components
7
-----------------------------------------
8
***************************************************************************/
9
10
#include "
MuonGMdbObjects/DblQ00Asmp.h
"
11
#include "
RDBAccessSvc/IRDBRecordset.h
"
12
#include "
RDBAccessSvc/IRDBAccessSvc.h
"
13
#include "
RDBAccessSvc/IRDBRecord.h
"
14
15
#include <iostream>
16
17
namespace
MuonGM
18
{
19
20
DblQ00Asmp::DblQ00Asmp
(
IRDBAccessSvc
*pAccessSvc,
const
std::string & GeoTag,
const
std::string & GeoNode){
21
22
IRDBRecordset_ptr
asmp = pAccessSvc->
getRecordsetPtr
(
getName
(),GeoTag, GeoNode);
23
24
if
(asmp->size()>0) {
25
m_nObj
= asmp->size();
26
m_d
.resize (
m_nObj
);
27
if
(
m_nObj
== 0) std::cerr<<
"NO Asmp banks in the MuonDD Database"
<<std::endl;
28
29
for
(
size_t
i
= 0 ;
i
<asmp->size(); ++
i
) {
30
m_d
[
i
].version = (*asmp)[
i
]->getInt(
"VERS"
);
31
m_d
[
i
].indx = (*asmp)[
i
]->getInt(
"INDX"
);
32
m_d
[
i
].n = (*asmp)[
i
]->getInt(
"N"
);
33
m_d
[
i
].jtyp = (*asmp)[
i
]->getInt(
"JTYP"
);
34
}
35
}
else
{
36
std::cerr<<
"NO Asmp banks in the MuonDD Database"
<<std::endl;
37
}
38
}
39
}
// end of namespace MuonGM
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition:
GeoMuonHits.h:27
IRDBAccessSvc::getRecordsetPtr
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.
MuonGM::DblQ00Asmp::m_nObj
unsigned int m_nObj
Definition:
DblQ00Asmp.h:48
MuonGM::DblQ00Asmp::m_d
std::vector< ASMP > m_d
Definition:
DblQ00Asmp.h:47
IRDBAccessSvc.h
Definition of the abstract IRDBAccessSvc interface.
lumiFormat.i
int i
Definition:
lumiFormat.py:85
IRDBAccessSvc
IRDBAccessSvc is an abstract interface to the athena service that provides the following functionalit...
Definition:
IRDBAccessSvc.h:42
DblQ00Asmp.h
IRDBRecordset_ptr
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
Definition:
IRDBAccessSvc.h:25
MuonGM::DblQ00Asmp::DblQ00Asmp
DblQ00Asmp()=default
MuonGM::DblQ00Asmp::getName
std::string getName() const
Definition:
DblQ00Asmp.h:42
IRDBRecord.h
Definition of the abstract IRDBRecord interface.
IRDBRecordset.h
Definition of the abstract IRDBRecordset interface.
Generated on Thu Nov 7 2024 21:13:28 for ATLAS Offline Software by
1.8.18