ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonDetDescr
MuonGMdbObjects
src
DblQ00Alin.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/DblQ00Alin.h
"
11
#include "
RDBAccessSvc/IRDBRecordset.h
"
12
#include "
RDBAccessSvc/IRDBAccessSvc.h
"
13
#include "
RDBAccessSvc/IRDBRecord.h
"
14
15
#include <iostream>
16
#include <stdio.h>
17
18
namespace
MuonGM
19
{
20
21
DblQ00Alin::DblQ00Alin
(
IRDBAccessSvc
*pAccessSvc,
const
std::string & GeoTag,
const
std::string & GeoNode) {
22
23
IRDBRecordset_ptr
alin = pAccessSvc->
getRecordsetPtr
(
getName
(),GeoTag, GeoNode);
24
25
if
(alin->
size
()>0) {
26
m_nObj
= alin->
size
();
27
m_d
.resize (
m_nObj
);
28
if
(
m_nObj
== 0) std::cerr<<
"NO Alin banks in the MuonDD Database"
<<std::endl;
29
30
for
(
size_t
i=0;i <alin->
size
(); ++i) {
31
m_d
[i].version = (*alin)[i]->getInt(
"VERS"
);
32
m_d
[i].dx = (*alin)[i]->getFloat(
"DX"
);
33
m_d
[i].dy = (*alin)[i]->getFloat(
"DY"
);
34
m_d
[i].i = (*alin)[i]->getInt(
"I"
);
35
m_d
[i].width_xs = (*alin)[i]->getFloat(
"WIDTH_XS"
);
36
m_d
[i].width_xl = (*alin)[i]->getFloat(
"WIDTH_XL"
);
37
m_d
[i].length_y = (*alin)[i]->getFloat(
"LENGTH_Y"
);
38
m_d
[i].excent = (*alin)[i]->getFloat(
"EXCENT"
);
39
m_d
[i].dead1 = (*alin)[i]->getFloat(
"DEAD1"
);
40
m_d
[i].jtyp = (*alin)[i]->getInt(
"JTYP"
);
41
m_d
[i].indx = (*alin)[i]->getInt(
"INDX"
);
42
m_d
[i].icut = (*alin)[i]->getInt(
"ICUT"
);
43
}
44
}
45
else
{
46
std::cerr<<
"NO Alin banks in the MuonDD Database"
<<std::endl;
47
}
48
}
49
50
51
}
// end of namespace MuonGM
DblQ00Alin.h
IRDBAccessSvc.h
Definition of the abstract IRDBAccessSvc interface.
IRDBRecordset_ptr
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
Definition
IRDBAccessSvc.h:30
IRDBRecord.h
Definition of the abstract IRDBRecord interface.
IRDBRecordset.h
Definition of the abstract IRDBRecordset interface.
IRDBAccessSvc
IRDBAccessSvc is an abstract interface to the athena service that provides the following functionalit...
Definition
IRDBAccessSvc.h:45
IRDBAccessSvc::getRecordsetPtr
virtual IRDBRecordset_ptr getRecordsetPtr(std::string_view node, std::string_view tag, std::string_view tag2node="", std::string_view connName="ATLASDD")=0
Provides access to the Recordset object containing HVS-tagged data.
IRDBRecordset::size
virtual unsigned int size() const =0
MuonGM::DblQ00Alin::getName
std::string getName() const
Definition
DblQ00Alin.h:47
MuonGM::DblQ00Alin::DblQ00Alin
DblQ00Alin()=default
MuonGM::DblQ00Alin::m_d
std::vector< ALIN > m_d
Definition
DblQ00Alin.h:52
MuonGM::DblQ00Alin::m_nObj
unsigned int m_nObj
Definition
DblQ00Alin.h:53
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition
GeoMuonHits.h:27
Generated on
for ATLAS Offline Software by
1.17.0