|
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 25 of file RDBReaderAtlas.cxx.
32 ATH_MSG_INFO(
"Start retriving dbObjects with tag = <" << geoTag <<
"> node <" << geoNode <<
">");
92 m_dhxtomo= std::make_unique<DblQ00Xtomo>(pRDBAccess, geoTag, geoNode);
95 m_dhxtomo= std::make_unique<DblQ00Xtomo>();
103 if (asciiFileDBMap.find(
"ASZT") != asciiFileDBMap.end()) {
104 ATH_MSG_INFO(
"getting aszt from ascii file - named <" << asciiFileDBMap.find(
"ASZT")->second <<
">");
105 ATH_MSG_INFO(
"Ascii aszt input has priority over A-lines in ORACLE; A-lines from Oracle will not be read");
107 m_dhaszt = std::make_unique<DblQ00Aszt>(asciiFileDBMap.find(
"ASZT")->second);
116 ATH_MSG_INFO(
"No Ascii aszt input found: looking for A-lines in ORACLE");
118 m_dhaszt = std::make_unique<DblQ00Aszt>();
126 ATH_MSG_INFO(
"ASZT table in Oracle, if any, will not be read" );
132 if (asciiFileDBMap.find(
"IACSC") != asciiFileDBMap.end()) {
134 ATH_MSG_INFO(
"getting iacsc from ascii file - named <" << asciiFileDBMap.find(
"IACSC")->second <<
">" );
135 ATH_MSG_INFO(
"Ascii iacsc input has priority over A-lines in ORACLE; A-lines from Oracle will not be read" );
137 m_dhiacsc = std::make_unique<DblQ00IAcsc>(asciiFileDBMap.find(
"IACSC")->second);
145 ATH_MSG_INFO(
"No Ascii iacsc input found: looking for A-lines in ORACLE" );
147 m_dhiacsc = std::make_unique<DblQ00IAcsc>();
154 ATH_MSG_INFO(
"ISZT table in Oracle, if any, will not be read" );
175 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 221 of file RDBReaderAtlas.cxx.
223 std::vector<std::string> slist;
224 slist.emplace_back(
"*");
225 StationSelector
sel(mysql, slist);
232 Station *station = (*it).second;
233 for (
int ic = 0;
ic < station->GetNrOfComponents();
ic++) {
237 const std::string &cname =
c->name;
239 if (cname.compare(0, 3,
"CSC") == 0)
241 else if (cname.compare(0, 3,
"MDT") == 0)
243 else if (cname.compare(0, 3,
"RPC") == 0)
245 else if (cname.compare(0, 3,
"TGC") == 0)
247 else if (cname.compare(0, 3,
"SPA") == 0)
249 else if (cname.compare(0, 3,
"DED") == 0)
251 else if (cname.compare(0, 3,
"SUP") == 0)
253 else if (cname.compare(0, 3,
"CHV") == 0 && have_spa_details)
255 else if (cname.compare(0, 3,
"CRO") == 0 && have_spa_details)
257 else if (cname.compare(0, 3,
"CMI") == 0 && have_spa_details)
259 else if (cname.compare(0, 2,
"LB") == 0 && have_spa_details)
264 ATH_MSG_INFO(
"nMDT " << nmdt <<
" nCSC " << ncsc <<
" nTGC " << ntgc <<
" nRPC " << nrpc );
265 ATH_MSG_INFO(
"nDED " << nded <<
" nSUP " << nsup <<
" nSPA " << nspa );
266 ATH_MSG_INFO(
"nCHV " << nchv <<
" nCRO " << ncro <<
" nCMI " << ncmi <<
" nLBI " << nlbi );
◆ ProcessTGCreadout()
void MuonGM::RDBReaderAtlas::ProcessTGCreadout |
( |
MYSQL & |
mysql | ) |
|
Definition at line 269 of file RDBReaderAtlas.cxx.
274 ATH_MSG_INFO(
"RDBReaderAtlas::ProcessTGCreadout GGSD, GGCD retrieven from Oracle" );
276 int version = (
int)(*ggsd)[0]->getDouble(
"VERS");
278 ATH_MSG_INFO(
" ProcessTGCreadout - version " <<
version <<
" wirespacing " << wirespacing );
285 for (
unsigned int ich = 0; ich < ggcd->size(); ++ich) {
286 int type = (
int)(*ggcd)[ich]->getDouble(
"ICHTYP");
291 int nchrng = (
int)(*ggcd)[ich]->getDouble(
"NCHRNG");
296 for (
int i = 0;
i < 3; ++
i) {
297 nwgs[
i] = (*ggcd)[ich]->getDouble(
"NWGS",
i);
298 nsps[
i] = (*ggcd)[ich]->getDouble(
"NSPS",
i);
301 for (
int i = 0;
i < nwgs[0]; ++
i) {
302 iwgs1[
i] = (*ggcd)[ich]->getDouble(
"IWGS1",
i);
304 for (
int i = 0;
i < nwgs[1]; ++
i) {
305 iwgs2[
i] = (*ggcd)[ich]->getDouble(
"IWGS2" ,
i);
308 for (
int i = 0;
i < nwgs[2]; ++
i) {
309 iwgs3[
i] = (*ggcd)[ich]->getDouble(
"IWGS3",
i);
312 std::make_unique<TgcReadoutParams>(
name,
type,
version, wirespacing, nchrng,
313 std::move(nwgs), std::move(iwgs1),
314 std::move(iwgs2), std::move(iwgs3),
316 mysql.StoreTgcRPars(rpar);
326 float wirespacing(0);
327 unsigned int gglnSize(0);
329 gglnSize = ggln->size();
331 ATH_MSG_WARNING(
" ProcessTGCreadout - IRDBRecordset_ptr GGLN is nullptr" );
338 ATH_MSG_INFO(
" ProcessTGCreadout - version " <<
version <<
" wirespacing " << wirespacing );
341 for (
unsigned int ich = 0; ich < gglnSize; ++ich) {
342 int type = (
int)(*ggln)[ich]->getInt(
"JSTA");
356 for (
int i = 0;
i < 3;
i++) {
357 nwgs[
i] = (*ggln)[ich]->getInt(
"NWGS",
i );
358 nsps[
i] = (*ggln)[ich]->getInt(
"NSPS",
i);
361 for (
int i = 0;
i < nwgs[0];
i++) {
362 iwgs1[
i] = (*ggln)[ich]->getInt(
"IWGS1",
i);
365 for (
int i = 0;
i < nwgs[1];
i++) {
366 iwgs2[
i] = (*ggln)[ich]->getInt(
"IWGS2",
i);
368 for (
int i = 0;
i < nwgs[2];
i++) {
369 iwgs3[
i] = (*ggln)[ich]->getInt(
"IWGS3",
i);
373 float pdist = (*ggln)[ich]->getFloat(
"PDIST");
375 for (
int i = 0;
i < nsps[0] + 1;
i++) {
376 slarge[
i] = (*ggln)[ich]->getFloat(
"SLARGE",
i);
377 sshort[
i] = (*ggln)[ich]->getFloat(
"SHORT",
i);
380 std::make_unique<TgcReadoutParams>(
name,
type,
version, wirespacing, nchrng,
381 std::move(nwgs), std::move(iwgs1), std::move(iwgs2), std::move(iwgs3),
383 std::move(slarge), std::move(sshort),
385 mysql.StoreTgcRPars(rpar);
389 std::ostringstream Astr;
391 Astr <<
"0" << ich + 1;
395 std::string
A = Astr.str();
396 TGC *tgc =
dynamic_cast<TGC*
>(mysql.GetTechnology(
"TGC" +
A));
397 tgc->widthWireSupport = (*ggln)[ich]->getFloat(
"S1PP");
398 tgc->widthGasChannel = (*ggln)[ich]->getFloat(
"S2PP");
399 tgc->distanceWireSupport = (*ggln)[ich]->getFloat(
"WSEP");
400 tgc->offsetWireSupport[0] = (*ggln)[ich]->getFloat(
"SP1WI");
401 tgc->offsetWireSupport[1] = (*ggln)[ich]->getFloat(
"SP2WI");
402 tgc->offsetWireSupport[2] = (*ggln)[ich]->getFloat(
"SP3WI");
404 tgc->radiusButton = (*ggln)[ich]->getFloat(
"SP1BU");
405 tgc->pitchButton[0] = (*ggln)[ich]->getFloat(
"SP2BU");
406 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 412 of file RDBReaderAtlas.cxx.
446 if (ichtyp < 1 || ichtyp > 19) {
447 ATH_MSG_ERROR(
" DBReader::TGCreadoutName - ichtype " << ichtyp <<
" out of range 1-19" );
487 if (ichtyp < 1 || ichtyp > 21) {
488 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.
std::string TGCreadoutName(int ichtyp)
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)
TgcReadoutParams::StripArray StripArray
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