|
ATLAS Offline Software
|
#include <MYSQL.h>
|
| ~MYSQL () |
|
bool | amdb_from_RDB () const |
|
void | set_amdb_from_RDB (bool) |
|
void | setGeometryVersion (const std::string &s) |
|
const std::string & | getGeometryVersion () const |
|
void | setLayoutName (const std::string &s) |
|
const std::string & | getLayoutName () const |
|
void | setNovaVersion (int i) |
|
int | getNovaVersion () const |
|
void | setNovaReadVersion (int i) |
|
int | getNovaReadVersion () const |
|
const StationMap & | stationMap () const |
|
const TgcReadParsMap & | tgcReadParsMap () const |
|
AllocposIterator | AllocposBegin () const |
|
AllocposIterator | AllocposEnd () const |
|
AllocposIterator | AllocposFind (int) const |
|
std::string | AllocposFindName (int) const |
|
void | addAllocpos (int i, const std::string &str) |
|
std::string | allocPosBuildKey (const std::string &statType, int fi, int zi) const |
|
int | allocPosBuildValue (int subtype, int cutout) const |
|
allocPosIterator | allocPosBegin () const |
|
allocPosIterator | allocPosEnd () const |
|
allocPosIterator | allocPosFind (const std::string &key) const |
|
allocPosIterator | allocPosFind (const std::string &statType, int fi, int zi) const |
|
int | allocPosFindSubtype (const std::string &statType, int fi, int zi) const |
|
int | allocPosFindSubtype (const std::string &key) const |
|
int | allocPosFindSubtype (allocPosIterator it) const |
|
int | allocPosFindCutout (const std::string &statType, int fi, int zi) const |
|
int | allocPosFindCutout (const std::string &key) const |
|
int | allocPosFindCutout (allocPosIterator it) const |
|
void | addallocPos (const std::string &key, int value) |
|
void | addallocPos (const std::string &statType, int fi, int zi, int subtyp, int cutout) |
|
void | addallocPos (const std::string &key, int subtype, int cutout) |
|
int | NStations () const |
|
int | NTgcReadTypes () const |
|
const Station * | GetStation (const std::string &name) const |
|
Station * | GetStation (const std::string &name) |
|
Position | GetStationPosition (const std::string &nameType, int fi, int zi) const |
|
GeoModel::TransientConstSharedPtr< TgcReadoutParams > | GetTgcRPars (const std::string &name) const |
|
GeoModel::TransientConstSharedPtr< TgcReadoutParams > | GetTgcRPars (int i) const |
|
void | StoreStation (Station *s) |
|
void | PrintAllStations () const |
|
void | StoreTechnology (Technology *t) |
|
void | StoreTgcRPars (GeoModel::TransientConstSharedPtr< TgcReadoutParams > t) |
|
Technology * | GetTechnology (const std::string &name) |
|
const Technology * | GetTechnology (const std::string &name) const |
|
const Technology * | GetATechnology (const std::string &name) const |
|
void | PrintTechnologies () |
|
bool | msgLvl (const MSG::Level lvl) const |
| Test the output level. More...
|
|
MsgStream & | msg () const |
| The standard message stream. More...
|
|
MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. More...
|
|
void | setLevel (MSG::Level lvl) |
| Change the current logging level. More...
|
|
Definition at line 43 of file MYSQL.h.
◆ LockedMYSQL
◆ StationIterator
◆ StationMap
◆ TechnologyIterator
◆ TechnologyMap
◆ TgcReadParsIterator
◆ TgcReadParsMap
◆ TgcReadoutRange
◆ ~MYSQL()
MuonGM::MYSQL::~MYSQL |
( |
| ) |
|
Definition at line 23 of file MYSQL.cxx.
25 std::unique_lock
l (
ptr.m_mutex);
28 if (
ptr.m_ptr ==
this)
◆ MYSQL()
◆ addallocPos() [1/3]
void MuonGM::MYSQL::addallocPos |
( |
const std::string & |
key, |
|
|
int |
subtype, |
|
|
int |
cutout |
|
) |
| |
◆ addallocPos() [2/3]
void MuonGM::MYSQL::addallocPos |
( |
const std::string & |
key, |
|
|
int |
value |
|
) |
| |
◆ addallocPos() [3/3]
void MuonGM::MYSQL::addallocPos |
( |
const std::string & |
statType, |
|
|
int |
fi, |
|
|
int |
zi, |
|
|
int |
subtyp, |
|
|
int |
cutout |
|
) |
| |
◆ addAllocpos()
void MuonGM::MYSQL::addAllocpos |
( |
int |
i, |
|
|
const std::string & |
str |
|
) |
| |
◆ AllocposBegin()
◆ allocPosBegin()
◆ allocPosBuildKey()
std::string MuonGM::MYSQL::allocPosBuildKey |
( |
const std::string & |
statType, |
|
|
int |
fi, |
|
|
int |
zi |
|
) |
| const |
Definition at line 184 of file MYSQL.cxx.
185 std::ostringstream mystream;
187 ATH_MSG_VERBOSE(__FILE__<<
":"<<__LINE__<<
" from " << statType <<
" fi " <<
fi <<
" zi " << zi <<
" we get as key " << mystream.str() );
188 return mystream.str();
◆ allocPosBuildValue()
int MuonGM::MYSQL::allocPosBuildValue |
( |
int |
subtype, |
|
|
int |
cutout |
|
) |
| const |
◆ AllocposEnd()
◆ allocPosEnd()
◆ allocPosFind() [1/2]
◆ allocPosFind() [2/2]
◆ AllocposFind()
◆ allocPosFindCutout() [1/3]
Definition at line 248 of file MYSQL.cxx.
249 int value = (*it).second;
250 int cutout =
static_cast<int>(
value % 100);
◆ allocPosFindCutout() [2/3]
int MuonGM::MYSQL::allocPosFindCutout |
( |
const std::string & |
key | ) |
const |
◆ allocPosFindCutout() [3/3]
int MuonGM::MYSQL::allocPosFindCutout |
( |
const std::string & |
statType, |
|
|
int |
fi, |
|
|
int |
zi |
|
) |
| const |
◆ AllocposFindName()
std::string MuonGM::MYSQL::AllocposFindName |
( |
int |
i | ) |
const |
Definition at line 218 of file MYSQL.cxx.
222 throw std::runtime_error(
"AllocPosFIndName() -- Bad key");
◆ allocPosFindSubtype() [1/3]
◆ allocPosFindSubtype() [2/3]
int MuonGM::MYSQL::allocPosFindSubtype |
( |
const std::string & |
key | ) |
const |
◆ allocPosFindSubtype() [3/3]
int MuonGM::MYSQL::allocPosFindSubtype |
( |
const std::string & |
statType, |
|
|
int |
fi, |
|
|
int |
zi |
|
) |
| const |
◆ amdb_from_RDB()
bool MuonGM::MYSQL::amdb_from_RDB |
( |
| ) |
const |
◆ GetATechnology()
Definition at line 162 of file MYSQL.cxx.
167 return it->second.get();
170 for (
unsigned int i = 1;
i <= 20;
i++) {
172 sprintf(chindex,
"%u",
i);
178 return it->second.get();
◆ getGeometryVersion()
const std::string & MuonGM::MYSQL::getGeometryVersion |
( |
| ) |
const |
◆ getLayoutName()
const std::string & MuonGM::MYSQL::getLayoutName |
( |
| ) |
const |
◆ GetMYSQLPtr()
Definition at line 32 of file MYSQL.cxx.
34 const EventContext& ctx = Gaudi::Hive::currentContext();
35 if (ctx.slot() == EventContext::INVALID_CONTEXT_ID) {
36 EventContext ctx2 (0, 0);
37 return *ptrs.get(ctx2);
39 return *ptrs.get(ctx);
◆ getNovaReadVersion()
int MuonGM::MYSQL::getNovaReadVersion |
( |
| ) |
const |
◆ getNovaVersion()
int MuonGM::MYSQL::getNovaVersion |
( |
| ) |
const |
◆ GetPointer()
Definition at line 42 of file MYSQL.cxx.
44 std::unique_lock
l (
ptr.m_mutex);
◆ GetStation() [1/2]
Station * MuonGM::MYSQL::GetStation |
( |
const std::string & |
name | ) |
|
Definition at line 61 of file MYSQL.cxx.
66 return it->second.get();
◆ GetStation() [2/2]
Definition at line 51 of file MYSQL.cxx.
56 return it->second.get();
◆ GetStationPosition()
Position MuonGM::MYSQL::GetStationPosition |
( |
const std::string & |
nameType, |
|
|
int |
fi, |
|
|
int |
zi |
|
) |
| const |
Definition at line 71 of file MYSQL.cxx.
79 p = (*(st->FindPosition(zi,
fi))).second;
80 ATH_MSG_VERBOSE(
" at p.fi,zi " <<
p.phiindex <<
" " <<
p.zindex <<
" shift/z " <<
p.shift <<
" " <<
p.z );
◆ GetTechnology() [1/2]
Definition at line 105 of file MYSQL.cxx.
109 return it->second.get();
◆ GetTechnology() [2/2]
Definition at line 115 of file MYSQL.cxx.
119 return it->second.get();
◆ GetTgcRPars() [1/2]
◆ GetTgcRPars() [2/2]
◆ 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.
◆ NStations()
int MuonGM::MYSQL::NStations |
( |
| ) |
const |
◆ NTgcReadTypes()
int MuonGM::MYSQL::NTgcReadTypes |
( |
| ) |
const |
◆ PrintAllStations()
void MuonGM::MYSQL::PrintAllStations |
( |
| ) |
const |
◆ PrintTechnologies()
void MuonGM::MYSQL::PrintTechnologies |
( |
| ) |
|
◆ set_amdb_from_RDB()
void MuonGM::MYSQL::set_amdb_from_RDB |
( |
bool |
val | ) |
|
◆ setGeometryVersion()
void MuonGM::MYSQL::setGeometryVersion |
( |
const std::string & |
s | ) |
|
Definition at line 271 of file MYSQL.cxx.
278 <<
" resetting to <" <<
s <<
">" );
◆ setLayoutName()
void MuonGM::MYSQL::setLayoutName |
( |
const std::string & |
s | ) |
|
Definition at line 289 of file MYSQL.cxx.
294 <<
" resetting to <" <<
s <<
">" );
◆ setLevel()
void AthMessaging::setLevel |
( |
MSG::Level |
lvl | ) |
|
|
inherited |
◆ setNovaReadVersion()
void MuonGM::MYSQL::setNovaReadVersion |
( |
int |
i | ) |
|
◆ setNovaVersion()
void MuonGM::MYSQL::setNovaVersion |
( |
int |
i | ) |
|
◆ stationMap()
◆ StoreStation()
void MuonGM::MYSQL::StoreStation |
( |
Station * |
s | ) |
|
◆ StoreTechnology()
void MuonGM::MYSQL::StoreTechnology |
( |
Technology * |
t | ) |
|
Definition at line 125 of file MYSQL.cxx.
126 ATH_MSG_VERBOSE(
"MYSQL::StoreTechnology /// techn. named " <<
t->GetName() );
130 ATH_MSG_ERROR(
"MYSQL::StoreTechnology ERROR /// This place is already taken !!! for " <<
t->GetName() );
◆ StoreTgcRPars()
Definition at line 141 of file MYSQL.cxx.
142 ATH_MSG_VERBOSE(
"MYSQL::StoreTgcRPars named " <<
s->GetName() <<
" located @ " <<
s <<
" jsta = " <<
s->chamberType() );
◆ tgcReadParsMap()
◆ ATLAS_THREAD_SAFE
std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_allocatedpos
std::map<int, std::string> MuonGM::MYSQL::m_allocatedpos |
|
private |
◆ m_allocPos
std::map<std::string, int> MuonGM::MYSQL::m_allocPos |
|
private |
◆ m_amdb_from_rdb
bool MuonGM::MYSQL::m_amdb_from_rdb {false} |
|
private |
◆ m_amdb_version
int MuonGM::MYSQL::m_amdb_version {0} |
|
private |
◆ m_DBMuonVersion
std::string MuonGM::MYSQL::m_DBMuonVersion {"unknown"} |
|
private |
◆ m_geometry_version
std::string MuonGM::MYSQL::m_geometry_version {"unknown"} |
|
private |
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_layout_name
std::string MuonGM::MYSQL::m_layout_name {"unknown"} |
|
private |
◆ m_lvl
std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ 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_nm
std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_nova_version
int MuonGM::MYSQL::m_nova_version {0} |
|
private |
◆ m_stations
◆ m_technologies
◆ m_tgcReadout
◆ m_tgcReadouts
The documentation for this class was generated from the following files:
std::atomic< MSG::Level > m_lvl
Current logging level.
std::map< std::string, int >::const_iterator allocPosIterator
std::map< std::string, int > m_allocPos
CxxUtils::LockedPointer< MYSQL > LockedMYSQL
allocPosIterator allocPosEnd() const
int allocPosFindSubtype(const std::string &statType, int fi, int zi) const
const Station * GetStation(const std::string &name) const
TgcReadParsMap m_tgcReadouts
#define ATH_MSG_VERBOSE(x)
int allocPosFindCutout(const std::string &statType, int fi, int zi) const
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
IMessageSvc * getMessageSvc(bool quiet=false)
std::atomic_flag m_initialized ATLAS_THREAD_SAFE
Messaging initialized (initMessaging)
std::string m_layout_name
std::string m_geometry_version
Maintain a set of objects, one per slot.
int allocPosBuildValue(int subtype, int cutout) const
Class to provide easy MsgStream access and capabilities.
MsgStream & msg() const
The standard message stream.
std::map< int, std::string >::const_iterator AllocposIterator
TechnologyMap m_technologies
std::map< int, std::string > m_allocatedpos
void addallocPos(const std::string &key, int value)
std::array< GeoModel::TransientConstSharedPtr< TgcReadoutParams >, NTgcReadouts > m_tgcReadout
#define ATH_MSG_WARNING(x)
std::string m_nm
Message source name.
allocPosIterator allocPosFind(const std::string &key) const
void initMessaging() const
Initialize our message level and MessageSvc.
std::string allocPosBuildKey(const std::string &statType, int fi, int zi) const
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
TechnologyMap::const_iterator TechnologyIterator
std::string buildString(int i, int ncha)
static MYSQLPtr & GetMYSQLPtr()
TgcReadParsMap::const_iterator TgcReadParsIterator
StationMap::const_iterator StationIterator