 |
ATLAS Offline Software
|
#include <RDBReaderAtlas.h>
Definition at line 21 of file RDBReaderAtlas.h.
◆ RDBReaderAtlas()
| MuonGM::RDBReaderAtlas::RDBReaderAtlas |
( |
StoreGateSvc * |
pDetStore, |
|
|
IRDBAccessSvc * |
m_pRDBAccess, |
|
|
const std::string & |
geoTag, |
|
|
const std::string & |
geoNode, |
|
|
const std::map< std::string, std::string > & |
asciiFileDBMap |
|
) |
| |
Definition at line 26 of file RDBReaderAtlas.cxx.
33 ATH_MSG_INFO(
"Start retrieving dbObjects with tag = <" << geoTag <<
"> node <" << geoNode <<
">");
93 m_dhxtomo= std::make_unique<DblQ00Xtomo>(pRDBAccess, geoTag, geoNode);
96 m_dhxtomo= std::make_unique<DblQ00Xtomo>();
104 if (asciiFileDBMap.find(
"ASZT") != asciiFileDBMap.end()) {
105 ATH_MSG_INFO(
"getting aszt from ascii file - named <" << asciiFileDBMap.find(
"ASZT")->second <<
">");
106 ATH_MSG_INFO(
"Ascii aszt input has priority over A-lines in ORACLE; A-lines from Oracle will not be read");
108 m_dhaszt = std::make_unique<DblQ00Aszt>(asciiFileDBMap.find(
"ASZT")->second);
117 ATH_MSG_INFO(
"No Ascii aszt input found: looking for A-lines in ORACLE");
119 m_dhaszt = std::make_unique<DblQ00Aszt>();
127 ATH_MSG_INFO(
"ASZT table in Oracle, if any, will not be read" );
133 if (asciiFileDBMap.find(
"IACSC") != asciiFileDBMap.end()) {
135 ATH_MSG_INFO(
"getting iacsc from ascii file - named <" << asciiFileDBMap.find(
"IACSC")->second <<
">" );
136 ATH_MSG_INFO(
"Ascii iacsc input has priority over A-lines in ORACLE; A-lines from Oracle will not be read" );
138 m_dhiacsc = std::make_unique<DblQ00IAcsc>(asciiFileDBMap.find(
"IACSC")->second);
146 ATH_MSG_INFO(
"No Ascii iacsc input found: looking for A-lines in ORACLE" );
148 m_dhiacsc = std::make_unique<DblQ00IAcsc>();
155 ATH_MSG_INFO(
"ISZT table in Oracle, if any, will not be read" );
176 ATH_MSG_INFO(
"Access granted for all dbObjects needed by muon detectors" );
◆ ~RDBReaderAtlas()
| virtual MuonGM::RDBReaderAtlas::~RDBReaderAtlas |
( |
| ) |
|
|
virtualdefault |
◆ getGeometryVersion()
| const std::string & MuonGM::DBReader::getGeometryVersion |
( |
| ) |
const |
|
inherited |
◆ initMessaging()
| void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
◆ msg() [1/2]
| MsgStream & AthMessaging::msg |
( |
| ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
◆ msg() [2/2]
| MsgStream & AthMessaging::msg |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
180 {
return msg() << lvl; }
◆ msgLvl()
| bool AthMessaging::msgLvl |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
Test the output level.
- Parameters
-
| lvl | The message level to test against |
- Returns
- boolean Indicating if messages at given level will be printed
- Return values
-
| true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
◆ ProcessCscInternalAlignments()
| void MuonGM::RDBReaderAtlas::ProcessCscInternalAlignments |
( |
| ) |
|
◆ ProcessDB()
| StatusCode MuonGM::RDBReaderAtlas::ProcessDB |
( |
MYSQL & |
mysql | ) |
|
|
overridevirtual |
◆ ProcessTechnologies()
| void MuonGM::RDBReaderAtlas::ProcessTechnologies |
( |
MYSQL & |
mysql | ) |
|
|
private |
Definition at line 222 of file RDBReaderAtlas.cxx.
224 std::vector<std::string> slist;
225 slist.emplace_back(
"*");
226 StationSelector
sel(mysql, slist);
233 Station *station = (*it).second;
234 for (
int ic = 0;
ic < station->GetNrOfComponents();
ic++) {
238 const std::string &cname =
c->name;
240 if (cname.compare(0, 3,
"CSC") == 0)
242 else if (cname.compare(0, 3,
"MDT") == 0)
244 else if (cname.compare(0, 3,
"RPC") == 0)
246 else if (cname.compare(0, 3,
"TGC") == 0)
248 else if (cname.compare(0, 3,
"SPA") == 0)
250 else if (cname.compare(0, 3,
"DED") == 0)
252 else if (cname.compare(0, 3,
"SUP") == 0)
254 else if (cname.compare(0, 3,
"CHV") == 0 && have_spa_details)
256 else if (cname.compare(0, 3,
"CRO") == 0 && have_spa_details)
258 else if (cname.compare(0, 3,
"CMI") == 0 && have_spa_details)
260 else if (cname.compare(0, 2,
"LB") == 0 && have_spa_details)
265 ATH_MSG_INFO(
"nMDT " << nmdt <<
" nCSC " << ncsc <<
" nTGC " << ntgc <<
" nRPC " << nrpc );
266 ATH_MSG_INFO(
"nDED " << nded <<
" nSUP " << nsup <<
" nSPA " << nspa );
267 ATH_MSG_INFO(
"nCHV " << nchv <<
" nCRO " << ncro <<
" nCMI " << ncmi <<
" nLBI " << nlbi );
◆ ProcessTGCreadout()
| void MuonGM::RDBReaderAtlas::ProcessTGCreadout |
( |
MYSQL & |
mysql | ) |
|
Definition at line 270 of file RDBReaderAtlas.cxx.
277 float wirespacing(0);
278 unsigned int gglnSize(0);
280 gglnSize = ggln->size();
282 ATH_MSG_WARNING(
" ProcessTGCreadout - IRDBRecordset_ptr GGLN is nullptr" );
289 ATH_MSG_INFO(
" ProcessTGCreadout - version " <<
version <<
" wirespacing " << wirespacing );
292 for (
unsigned int ich = 0; ich < gglnSize; ++ich) {
293 int type = (
int)(*ggln)[ich]->getInt(
"JSTA");
309 std::vector<StripArray> slarge{make_array<double, MaxNStrips>(0)};
310 std::vector<StripArray> sshort{make_array<double, MaxNStrips>(0)};
312 for (
int i = 0;
i < 3;
i++) {
313 nwgs[
i] = (*ggln)[ich]->getInt(
"NWGS",
i );
314 nsps[
i] = (*ggln)[ich]->getInt(
"NSPS",
i);
316 for (
int i = 0;
i < nwgs[0];
i++) {
317 iwgs1[
i] = (*ggln)[ich]->getInt(
"IWGS1",
i);
320 for (
int i = 0;
i < nwgs[1];
i++) {
321 iwgs2[
i] = (*ggln)[ich]->getInt(
"IWGS2",
i);
323 for (
int i = 0;
i < nwgs[2];
i++) {
324 iwgs3[
i] = (*ggln)[ich]->getInt(
"IWGS3",
i);
328 float pdist = (*ggln)[ich]->getFloat(
"PDIST");
330 for (
int i = 0;
i < nsps[0] + 1;
i++) {
331 slarge[0][
i] = (*ggln)[ich]->getFloat(
"SLARGE",
i);
332 sshort[0][
i] = (*ggln)[ich]->getFloat(
"SHORT",
i);
335 std::make_unique<TgcReadoutParams>(
name,
type, wirespacing, nchrng,
344 mysql.StoreTgcRPars(rpar);
347 std::ostringstream Astr;
349 Astr <<
"0" << ich + 1;
353 std::string
A = Astr.str();
354 TGC *tgc =
dynamic_cast<TGC*
>(mysql.GetTechnology(
"TGC" +
A));
355 tgc->widthWireSupport = (*ggln)[ich]->getFloat(
"S1PP");
356 tgc->widthGasChannel = (*ggln)[ich]->getFloat(
"S2PP");
357 tgc->distanceWireSupport = (*ggln)[ich]->getFloat(
"WSEP");
358 tgc->offsetWireSupport[0] = (*ggln)[ich]->getFloat(
"SP1WI");
359 tgc->offsetWireSupport[1] = (*ggln)[ich]->getFloat(
"SP2WI");
360 tgc->offsetWireSupport[2] = (*ggln)[ich]->getFloat(
"SP3WI");
362 tgc->radiusButton = (*ggln)[ich]->getFloat(
"SP1BU");
363 tgc->pitchButton[0] = (*ggln)[ich]->getFloat(
"SP2BU");
364 tgc->pitchButton[1] = (*ggln)[ich]->getFloat(
"SP3BU");
◆ setGeometryVersion()
| void MuonGM::DBReader::setGeometryVersion |
( |
std::string |
s | ) |
|
|
inherited |
◆ setLevel()
| void AthMessaging::setLevel |
( |
MSG::Level |
lvl | ) |
|
|
inherited |
◆ setManager()
◆ TGCreadoutName()
| std::string MuonGM::RDBReaderAtlas::TGCreadoutName |
( |
int |
ichtyp | ) |
|
Definition at line 370 of file RDBReaderAtlas.cxx.
404 if (ichtyp < 1 || ichtyp > 19) {
405 ATH_MSG_ERROR(
" DBReader::TGCreadoutName - ichtype " << ichtyp <<
" out of range 1-19" );
445 if (ichtyp < 1 || ichtyp > 21) {
446 ATH_MSG_ERROR(
" DBReader::TGCreadoutName - ichtype " << ichtyp <<
" out of range 1-21" );
◆ ATLAS_THREAD_SAFE
| std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_acut
◆ m_alin
◆ m_almn
◆ m_aptp
◆ m_asciiFileDB
| std::string MuonGM::RDBReaderAtlas::m_asciiFileDB {} |
|
private |
◆ m_asmp
◆ m_aszt
◆ m_atyp
◆ m_dbam
◆ m_dhacut
| std::unique_ptr<DblQ00Acut> MuonGM::RDBReaderAtlas::m_dhacut {nullptr} |
|
private |
◆ m_dhalin
| std::unique_ptr<DblQ00Alin> MuonGM::RDBReaderAtlas::m_dhalin {nullptr} |
|
private |
◆ m_dhalmn
| std::unique_ptr<DblQ00Almn> MuonGM::RDBReaderAtlas::m_dhalmn {nullptr} |
|
private |
◆ m_dhaptp
| std::unique_ptr<DblQ00Aptp> MuonGM::RDBReaderAtlas::m_dhaptp {nullptr} |
|
private |
◆ m_dhasmp
| std::unique_ptr<DblQ00Asmp> MuonGM::RDBReaderAtlas::m_dhasmp {nullptr} |
|
private |
◆ m_dhaszt
| std::unique_ptr<DblQ00Aszt> MuonGM::RDBReaderAtlas::m_dhaszt {nullptr} |
|
private |
◆ m_dhatyp
| std::unique_ptr<DblQ00Atyp> MuonGM::RDBReaderAtlas::m_dhatyp {nullptr} |
|
private |
◆ m_dhdbam
| std::unique_ptr<DblQ00Dbam> MuonGM::RDBReaderAtlas::m_dhdbam {nullptr} |
|
private |
◆ m_dhiacsc
| std::unique_ptr<DblQ00IAcsc> MuonGM::RDBReaderAtlas::m_dhiacsc {nullptr} |
|
private |
◆ m_dhwchv
| std::unique_ptr<DblQ00Wchv> MuonGM::RDBReaderAtlas::m_dhwchv {nullptr} |
|
private |
◆ m_dhwcmi
| std::unique_ptr<DblQ00Wcmi> MuonGM::RDBReaderAtlas::m_dhwcmi {nullptr} |
|
private |
◆ m_dhwcro
| std::unique_ptr<DblQ00Wcro> MuonGM::RDBReaderAtlas::m_dhwcro {nullptr} |
|
private |
◆ m_dhwcsc
| std::unique_ptr<DblQ00Wcsc> MuonGM::RDBReaderAtlas::m_dhwcsc {nullptr} |
|
private |
◆ m_dhwded
| std::unique_ptr<DblQ00Wded> MuonGM::RDBReaderAtlas::m_dhwded {nullptr} |
|
private |
◆ m_dhwlbi
| std::unique_ptr<DblQ00Wlbi> MuonGM::RDBReaderAtlas::m_dhwlbi {nullptr} |
|
private |
◆ m_dhwmdt
| std::unique_ptr<DblQ00Wmdt> MuonGM::RDBReaderAtlas::m_dhwmdt {nullptr} |
|
private |
◆ m_dhwrpc
| std::unique_ptr<DblQ00Awln> MuonGM::RDBReaderAtlas::m_dhwrpc {nullptr} |
|
private |
◆ m_dhwrpcall
| std::unique_ptr<DblQ00Wrpc> MuonGM::RDBReaderAtlas::m_dhwrpcall {nullptr} |
|
private |
◆ m_dhwspa
| std::unique_ptr<DblQ00Wspa> MuonGM::RDBReaderAtlas::m_dhwspa {nullptr} |
|
private |
◆ m_dhwsup
| std::unique_ptr<DblQ00Wsup> MuonGM::RDBReaderAtlas::m_dhwsup {nullptr} |
|
private |
◆ m_dhwtgc
| std::unique_ptr<DblQ00Atln> MuonGM::RDBReaderAtlas::m_dhwtgc {nullptr} |
|
private |
◆ m_dhwtgcall
| std::unique_ptr<DblQ00Wtgc> MuonGM::RDBReaderAtlas::m_dhwtgcall {nullptr} |
|
private |
◆ m_dhxtomo
| std::unique_ptr<DblQ00Xtomo> MuonGM::RDBReaderAtlas::m_dhxtomo {nullptr} |
|
private |
◆ m_geoNode
| const std::string MuonGM::RDBReaderAtlas::m_geoNode {} |
|
private |
◆ m_geoTag
| const std::string MuonGM::RDBReaderAtlas::m_geoTag {} |
|
private |
◆ m_iacsc
◆ m_imsg
| std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_lvl
| std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_mgr
◆ m_msg_tls
| boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_msgSvc
| IMessageSvc* MuonGM::DBReader::m_msgSvc |
|
privateinherited |
◆ m_nm
| std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_pRDBAccess
◆ m_SCdbaccess
| StatusCode MuonGM::DBReader::m_SCdbaccess |
|
protectedinherited |
◆ m_tgcReadoutMapping
| std::vector<std::string> MuonGM::DBReader::m_tgcReadoutMapping |
|
protectedinherited |
◆ m_version
| std::string MuonGM::DBReader::m_version |
|
privateinherited |
◆ m_wchv
◆ m_wcmi
◆ m_wcro
◆ m_wcsc
◆ m_wded
◆ m_wlbi
◆ m_wmdt
◆ m_wrpc
◆ m_wrpcall
◆ m_wspa
◆ m_wsup
◆ m_wtgc
◆ m_wtgcall
◆ m_xtomo
The documentation for this class was generated from the following files:
void ProcessTechnologies(MYSQL &mysql)
std::atomic< MSG::Level > m_lvl
Current logging level.
std::unique_ptr< DblQ00Wcro > m_dhwcro
std::unique_ptr< DblQ00Aptp > m_dhaptp
std::unique_ptr< DblQ00Wtgc > m_dhwtgcall
const std::string m_geoTag
const DblQ00Wcmi::WCMI * m_wcmi
const DblQ00Wcsc::WCSC * m_wcsc
const DblQ00Aszt::ASZT * m_aszt
const DblQ00IAcsc::IACSC * m_iacsc
std::unique_ptr< DblQ00IAcsc > m_dhiacsc
const DblQ00Wmdt::WMDT * m_wmdt
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.
TgcReadoutParams::GasGapIntArray GasGapIntArray
std::unique_ptr< DblQ00Wspa > m_dhwspa
std::unique_ptr< DblQ00Wmdt > m_dhwmdt
const DblQ00Wsup::WSUP * m_wsup
const DblQ00Wchv::WCHV * m_wchv
const DblQ00Atyp::ATYP * m_atyp
std::unique_ptr< DblQ00Almn > m_dhalmn
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
const DblQ00Wlbi::WLBI * m_wlbi
IMessageSvc * getMessageSvc(bool quiet=false)
TgcReadoutParams::WiregangArray WiregangArray
const DblQ00Aptp::APTP * m_aptp
std::unique_ptr< DblQ00Wcmi > m_dhwcmi
std::unique_ptr< DblQ00Wrpc > m_dhwrpcall
std::unique_ptr< DblQ00Aszt > m_dhaszt
const DblQ00Wspa::WSPA * m_wspa
std::unique_ptr< DblQ00Acut > m_dhacut
std::unique_ptr< DblQ00Wded > m_dhwded
Class to provide easy MsgStream access and capabilities.
const DblQ00Asmp::ASMP * m_asmp
const DblQ00Almn::ALMN * m_almn
std::unique_ptr< DblQ00Dbam > m_dhdbam
MuonDetectorManager * m_mgr
std::unique_ptr< DblQ00Xtomo > m_dhxtomo
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
MsgStream & msg() const
The standard message stream.
const DblQ00Wrpc::WRPC * m_wrpcall
const DblQ00Wded::WDED * m_wded
const DblQ00Acut::ACUT * m_acut
std::vector< std::string > m_tgcReadoutMapping
IRDBAccessSvc * m_pRDBAccess
const DblQ00Wtgc::WTGC * m_wtgcall
const DblQ00Alin::ALIN * m_alin
const DblQ00Xtomo::XTOMO * m_xtomo
std::unique_ptr< DblQ00Wchv > m_dhwchv
void ProcessTGCreadout(MYSQL &mysql)
const DblQ00Wcro::WCRO * m_wcro
StationMap::const_iterator StationIterator
#define ATH_MSG_WARNING(x)
const std::string m_geoNode
const DblQ00Atln::ATLN * m_wtgc
std::unique_ptr< DblQ00Wsup > m_dhwsup
std::string m_nm
Message source name.
const DblQ00Awln::AWLN * m_wrpc
std::unique_ptr< DblQ00Wcsc > m_dhwcsc
const DblQ00Dbam::DBAM * m_dbam
std::unique_ptr< DblQ00Awln > m_dhwrpc
const std::string & getGeometryVersion() const
void initMessaging() const
Initialize our message level and MessageSvc.
std::unique_ptr< DblQ00Wlbi > m_dhwlbi
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
std::string buildString(int i, int ncha)
std::unique_ptr< DblQ00Atyp > m_dhatyp
std::unique_ptr< DblQ00Alin > m_dhalin
std::unique_ptr< DblQ00Atln > m_dhwtgc
std::unique_ptr< DblQ00Asmp > m_dhasmp