|
| template<class T> |
| static const T * | cachedRetrieve (const T *&cachedPtr, const char *key, const bool &configallows) |
Definition at line 49 of file VP1DetInfo.cxx.
◆ cachedRetrieve()
template<class T>
| const T * VP1DetInfo::Imp::cachedRetrieve |
( |
const T *& | cachedPtr, |
|
|
const char * | key, |
|
|
const bool & | configallows ) |
|
static |
Definition at line 109 of file VP1DetInfo.cxx.
109 {
111 if (cachedPtr)
112 return ( cachedPtr==
bad? 0 : cachedPtr );
113 QString
key(preferredKey);
114 if (!configallows) {
115 VP1Msg::messageDebug(
"VP1DetInfo WARNING: Will not attempt to get (type="+QString(
typeid(T).
name())+
", key="+key+
") due to missing/disabled features in job!");
117 return 0;
118 }
120
123 VP1Msg::messageDebug(
"VP1DetInfo WARNING: Could not find (type="+QString(
typeid(T).
name())+
") in detector store (expected key="+key+
")");
125 return 0;
126 }
127 if (
keys.count()>1) {
128 VP1Msg::messageDebug(
"VP1DetInfo WARNING: Could not find (type="+QString(
typeid(T).
name())+
", key="+key+
") in detector store, and could not uniquely guess at alternate key.");
130 return 0;
131 }
132 VP1Msg::messageDebug(
"VP1DetInfo WARNING: Could not find (type="+QString(
typeid(T).
name())+
", key="+key+
") in detector store. Trying with key="+
keys.first()+
")");
134 }
136 VP1Msg::messageDebug(
"VP1DetInfo WARNING: Could not retrieve (type="+QString(
typeid(T).
name())+
", key="+key+
") from detector store!");
138 return 0;
139 }
140 VP1Msg::messageVerbose(
"VP1DetInfo Succesfully retrieved (type="+QString(
typeid(T).
name())+
", key="+key+
") from detector store!");
141 return cachedPtr;
142
143}
static StoreGateSvc * detectorStore()
static const char m_badInitFlag
static void messageVerbose(const QString &)
static void messageDebug(const QString &)
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring
retrieve(aClass, aKey=None)
◆ m_atlasIDHelper
◆ m_badInitFlag
| const char VP1DetInfo::Imp::m_badInitFlag = ' ' |
|
static |
◆ m_caloIdMgr
◆ m_cscIDHelper
◆ m_embDetMgr
◆ m_emecDetMgr
◆ m_fcalDetMgr
◆ m_hecDetMgr
◆ m_initialised
| bool VP1DetInfo::Imp::m_initialised = false |
|
static |
◆ m_larDetMgr
◆ m_mdtIDHelper
◆ m_mmIDHelper
| const MmIdHelper * VP1DetInfo::Imp::m_mmIDHelper = 0 |
|
static |
◆ m_muonDetMgr
◆ m_pixelDetMgr
◆ m_pixelIDHelper
| const PixelID * VP1DetInfo::Imp::m_pixelIDHelper = 0 |
|
static |
◆ m_rpcIDHelper
◆ m_sctDetMgr
◆ m_sctIDHelper
| const SCT_ID * VP1DetInfo::Imp::m_sctIDHelper = 0 |
|
static |
◆ m_stgcIDHelper
◆ m_tgcIDHelper
◆ m_tileDetMgr
◆ m_trtDetMgr
◆ m_trtIDHelper
| const TRT_ID * VP1DetInfo::Imp::m_trtIDHelper = 0 |
|
static |
The documentation for this class was generated from the following file: