Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
#include <CscCondDbData.h>
|
| CscCondDbData ()=default |
|
virtual | ~CscCondDbData ()=default |
|
void | loadParameters (const CscIdHelper *) |
|
void | setParameters (bool) |
|
void | setChannelF001 (IdentifierHash, float) |
|
void | setChannelNoise (IdentifierHash, float) |
|
void | setChannelPed (IdentifierHash, float) |
|
void | setChannelPSlope (IdentifierHash, float) |
|
void | setChannelRMS (IdentifierHash, float) |
|
void | setChannelStatus (IdentifierHash, int) |
|
void | setChannelT0Base (IdentifierHash, float) |
|
void | setChannelT0Phase (IdentifierHash, bool) |
|
void | setDeadChannelHash (IdentifierHash) |
|
void | setDeadLayer (std::string_view, Identifier) |
|
void | setDeadStation (std::string_view, Identifier) |
|
const std::vector< std::string > & | getDeadLayers () const |
|
const std::vector< std::string > & | getDeadStations () const |
|
const std::vector< Identifier > & | getDeadLayersId () const |
|
const std::vector< Identifier > & | getDeadStationsId () const |
|
const std::vector< unsigned int > & | getDeadChannelsHash () const |
|
bool | hasChannelT0Phase (IdentifierHash) const |
|
const float & | getChannelF001 (IdentifierHash) const |
|
const float & | getChannelNoise (IdentifierHash) const |
|
const float & | getChannelPed (IdentifierHash) const |
|
const float & | getChannelPSlope (IdentifierHash) const |
|
const float & | getChannelRMS (IdentifierHash) const |
|
const int & | getChannelStatus (IdentifierHash) const |
|
const float & | getChannelT0Base (IdentifierHash) const |
|
const bool & | getChannelT0Phase (IdentifierHash) const |
|
StatusCode | readChannelF001 (IdentifierHash, float &) const |
|
StatusCode | readChannelNoise (IdentifierHash, float &) const |
|
StatusCode | readChannelPed (IdentifierHash, float &) const |
|
StatusCode | readChannelPSlope (IdentifierHash, float &) const |
|
StatusCode | readChannelRMS (IdentifierHash, float &) const |
|
StatusCode | readChannelStatus (IdentifierHash, int &) const |
|
StatusCode | readChannelT0Base (IdentifierHash, float &) const |
|
StatusCode | readChannelT0Phase (IdentifierHash, bool &) const |
|
bool | isGood (const Identifier &) const |
|
bool | isGoodLayer (const Identifier &) const |
|
bool | isGoodStation (const Identifier &) const |
|
bool | isGoodChannelHash (const IdentifierHash &) const |
|
StatusCode | indexToStringId (const CscIdHelper *, const unsigned int &, const std::string &, std::string &) const |
|
StatusCode | layerHashToOnlineId (const unsigned int &, unsigned int &) const |
|
StatusCode | offlineElementToOnlineId (const CscIdHelper *, const Identifier &, unsigned int &) const |
|
StatusCode | offlineToOnlineId (const CscIdHelper *, const Identifier &, unsigned int &) const |
|
StatusCode | onlineToOfflineIds (const CscIdHelper *, const unsigned int &, Identifier &, Identifier &) const |
|
template<typename T > |
StatusCode | readChannelParam (IdentifierHash hash, T &val, const std::string &parName) const |
|
Definition at line 24 of file CscCondDbData.h.
◆ CscCondDbData()
CscCondDbData::CscCondDbData |
( |
| ) |
|
|
default |
◆ ~CscCondDbData()
virtual CscCondDbData::~CscCondDbData |
( |
| ) |
|
|
virtualdefault |
◆ getChannelF001()
◆ getChannelNoise()
◆ getChannelPed()
◆ getChannelPSlope()
◆ getChannelRMS()
◆ getChannelStatus()
◆ getChannelT0Base()
◆ getChannelT0Phase()
◆ getDeadChannelsHash()
const std::vector< unsigned int > & CscCondDbData::getDeadChannelsHash |
( |
| ) |
const |
◆ getDeadLayers()
const std::vector< std::string > & CscCondDbData::getDeadLayers |
( |
| ) |
const |
◆ getDeadLayersId()
◆ getDeadStations()
const std::vector< std::string > & CscCondDbData::getDeadStations |
( |
| ) |
const |
◆ getDeadStationsId()
const std::vector< Identifier > & CscCondDbData::getDeadStationsId |
( |
| ) |
const |
◆ hasChannelT0Phase()
◆ indexToStringId()
StatusCode CscCondDbData::indexToStringId |
( |
const CscIdHelper * |
idHelper, |
|
|
const unsigned int & |
index, |
|
|
const std::string & |
cat, |
|
|
std::string & |
idString |
|
) |
| const |
Definition at line 347 of file CscCondDbData.cxx.
353 return StatusCode::SUCCESS;
355 if(cat ==
"ENDCAP") {
362 log << MSG::INFO <<
"Requested index " <<
index <<
" can't be converted to a string Id for the category " << cat <<
endmsg;
363 return StatusCode::RECOVERABLE;
368 unsigned int onlineId = 0;
369 std::stringstream
ss;
370 if(cat ==
"CHAMBER"){
375 log << MSG::INFO <<
"Failed converting chamber identifier to online id during stringId gen." <<
endmsg;
376 return StatusCode::RECOVERABLE;
379 else if(cat ==
"LAYER"){
380 unsigned int onlineId;
383 log << MSG::INFO <<
"Failed at getting online id from layer hash during stringId gen." <<
endmsg;
386 else if(cat ==
"CHANNEL"){
391 log << MSG::INFO <<
"Failed converting chamber identifier to online id during stringId gen." <<
endmsg;
392 return StatusCode::RECOVERABLE;
396 ss << std::hex << std::setfill(
'0') << std::setw(5) << onlineId << std::dec;
398 return StatusCode::SUCCESS;
◆ isGood()
◆ isGoodChannelHash()
◆ isGoodLayer()
◆ isGoodStation()
◆ layerHashToOnlineId()
StatusCode CscCondDbData::layerHashToOnlineId |
( |
const unsigned int & |
layerHash, |
|
|
unsigned int & |
onlineId |
|
) |
| const |
Definition at line 404 of file CscCondDbData.cxx.
410 return StatusCode::SUCCESS;
413 return StatusCode::SUCCESS;
◆ loadParameters()
Definition at line 14 of file CscCondDbData.cxx.
24 for(
int wireLayer = 0; wireLayer <4; wireLayer++){
25 for(
int measuresPhi = 0; measuresPhi <2; measuresPhi++){
35 unsigned int onlineId;
38 log << MSG::WARNING <<
"Failed at geting online id!" <<
endmsg;
◆ offlineElementToOnlineId()
Definition at line 419 of file CscCondDbData.cxx.
435 onlineId += (
phi << 13) ;
436 onlineId += (
eta <<12);
437 onlineId += (chamLay <<11);
438 onlineId += (wireLay << 9);
439 onlineId += (measuresPhi << 8);
441 return StatusCode::SUCCESS;
◆ offlineToOnlineId()
Definition at line 447 of file CscCondDbData.cxx.
458 int wireLay = (idHelper->
wireLayer(
id)-1) &0x3;
459 int measuresPhi = (idHelper->
measuresPhi(
id) &0x1);
472 onlineId += (
phi << 13) ;
473 onlineId += (
eta <<12);
474 onlineId += (chamLay <<11);
475 onlineId += (wireLay << 9);
476 onlineId += (measuresPhi << 8);
478 return StatusCode::SUCCESS;
◆ onlineToOfflineIds()
Definition at line 483 of file CscCondDbData.cxx.
487 int phi = ((onlineId >> 13)&0x7)+1;
488 int eta = ((((onlineId >> 12)&0
x1) == 1) ? 1:-1);
489 int chamLay = ((onlineId>>11)&0
x1) +1;
490 int wireLay = ((onlineId>>9)&0x3) +1;
491 int measuresPhi = ((onlineId >> 8)&0
x1);
496 strip = 48 - ((onlineId)&0xff) ;
499 strip = ((onlineId)&0xff) +1;
509 static std::atomic<bool> conversionFailPrinted =
false;
511 if (!conversionFailPrinted) {
513 log << MSG::WARNING <<
"Failed to retrieve offline Identifier from online Identifier " << onlineId
515 <<
"This is likely due to the fact that the CSCCool database contains "
516 <<
"more entries than the detector layout." <<
endmsg;
517 conversionFailPrinted =
true;
519 return StatusCode::FAILURE;
522 return StatusCode::SUCCESS;
◆ readChannelF001()
StatusCode CscCondDbData::readChannelF001 |
( |
IdentifierHash |
hash, |
|
|
float & |
val |
|
) |
| const |
Definition at line 248 of file CscCondDbData.cxx.
250 if(
val==-1)
return StatusCode::FAILURE;
251 return StatusCode::SUCCESS;
◆ readChannelNoise()
StatusCode CscCondDbData::readChannelNoise |
( |
IdentifierHash |
hash, |
|
|
float & |
val |
|
) |
| const |
Definition at line 255 of file CscCondDbData.cxx.
257 if(
val==-1)
return StatusCode::FAILURE;
258 return StatusCode::SUCCESS;
◆ readChannelParam()
template<typename T >
StatusCode CscCondDbData::readChannelParam |
( |
IdentifierHash |
hash, |
|
|
T & |
val, |
|
|
const std::string & |
parName |
|
) |
| const |
|
inline |
◆ readChannelPed()
StatusCode CscCondDbData::readChannelPed |
( |
IdentifierHash |
hash, |
|
|
float & |
val |
|
) |
| const |
Definition at line 262 of file CscCondDbData.cxx.
264 if(
val==-1)
return StatusCode::FAILURE;
265 return StatusCode::SUCCESS;
◆ readChannelPSlope()
StatusCode CscCondDbData::readChannelPSlope |
( |
IdentifierHash |
hash, |
|
|
float & |
val |
|
) |
| const |
Definition at line 269 of file CscCondDbData.cxx.
271 if(
val==-1)
return StatusCode::FAILURE;
272 return StatusCode::SUCCESS;
◆ readChannelRMS()
StatusCode CscCondDbData::readChannelRMS |
( |
IdentifierHash |
hash, |
|
|
float & |
val |
|
) |
| const |
Definition at line 276 of file CscCondDbData.cxx.
278 if(
val==-1)
return StatusCode::FAILURE;
279 return StatusCode::SUCCESS;
◆ readChannelStatus()
StatusCode CscCondDbData::readChannelStatus |
( |
IdentifierHash |
hash, |
|
|
int & |
val |
|
) |
| const |
Definition at line 283 of file CscCondDbData.cxx.
285 if(
val==-1)
return StatusCode::FAILURE;
286 return StatusCode::SUCCESS;
◆ readChannelT0Base()
StatusCode CscCondDbData::readChannelT0Base |
( |
IdentifierHash |
hash, |
|
|
float & |
val |
|
) |
| const |
Definition at line 290 of file CscCondDbData.cxx.
292 if(
val==-1)
return StatusCode::FAILURE;
293 return StatusCode::SUCCESS;
◆ readChannelT0Phase()
StatusCode CscCondDbData::readChannelT0Phase |
( |
IdentifierHash |
hash, |
|
|
bool & |
val |
|
) |
| const |
◆ setChannelF001()
void CscCondDbData::setChannelF001 |
( |
IdentifierHash |
hash, |
|
|
float |
f001 |
|
) |
| |
◆ setChannelNoise()
void CscCondDbData::setChannelNoise |
( |
IdentifierHash |
hash, |
|
|
float |
noise |
|
) |
| |
◆ setChannelPed()
◆ setChannelPSlope()
void CscCondDbData::setChannelPSlope |
( |
IdentifierHash |
hash, |
|
|
float |
pslope |
|
) |
| |
◆ setChannelRMS()
◆ setChannelStatus()
void CscCondDbData::setChannelStatus |
( |
IdentifierHash |
hash, |
|
|
int |
status |
|
) |
| |
◆ setChannelT0Base()
void CscCondDbData::setChannelT0Base |
( |
IdentifierHash |
hash, |
|
|
float |
t0base |
|
) |
| |
◆ setChannelT0Phase()
void CscCondDbData::setChannelT0Phase |
( |
IdentifierHash |
hash, |
|
|
bool |
t0phase |
|
) |
| |
◆ setDeadChannelHash()
◆ setDeadLayer()
void CscCondDbData::setDeadLayer |
( |
std::string_view |
name, |
|
|
Identifier |
Id |
|
) |
| |
◆ setDeadStation()
void CscCondDbData::setDeadStation |
( |
std::string_view |
name, |
|
|
Identifier |
Id |
|
) |
| |
◆ setParameters()
void CscCondDbData::setParameters |
( |
bool |
onlineOfflinePhiFlip | ) |
|
◆ CscCondDbAlg
◆ m_cachedChannelsF001
std::map<unsigned int, float> CscCondDbData::m_cachedChannelsF001 {} |
|
private |
◆ m_cachedChannelsNoise
std::map<unsigned int, float> CscCondDbData::m_cachedChannelsNoise {} |
|
private |
◆ m_cachedChannelsPed
std::map<unsigned int, float> CscCondDbData::m_cachedChannelsPed {} |
|
private |
◆ m_cachedChannelsPSlope
std::map<unsigned int, float> CscCondDbData::m_cachedChannelsPSlope {} |
|
private |
◆ m_cachedChannelsRMS
std::map<unsigned int, float> CscCondDbData::m_cachedChannelsRMS {} |
|
private |
◆ m_cachedChannelsStatus
std::map<unsigned int, int > CscCondDbData::m_cachedChannelsStatus {} |
|
private |
◆ m_cachedChannelsT0Base
std::map<unsigned int, float> CscCondDbData::m_cachedChannelsT0Base {} |
|
private |
◆ m_cachedChannelsT0Phase
std::map<unsigned int, bool > CscCondDbData::m_cachedChannelsT0Phase {} |
|
private |
◆ m_cachedDeadChannelsHash
std::vector<unsigned int> CscCondDbData::m_cachedDeadChannelsHash {} |
|
private |
◆ m_cachedDeadLayers
std::vector<std::string> CscCondDbData::m_cachedDeadLayers {} |
|
private |
◆ m_cachedDeadLayersId
std::vector<Identifier> CscCondDbData::m_cachedDeadLayersId {} |
|
private |
◆ m_cachedDeadStations
std::vector<std::string> CscCondDbData::m_cachedDeadStations {} |
|
private |
◆ m_cachedDeadStationsId
std::vector<Identifier> CscCondDbData::m_cachedDeadStationsId {} |
|
private |
◆ m_channelContext
◆ m_emptyHashs
std::vector<unsigned int> CscCondDbData::m_emptyHashs {} |
|
private |
◆ m_emptyIds
std::vector<Identifier> CscCondDbData::m_emptyIds {} |
|
private |
◆ m_emptyNames
std::vector<std::string> CscCondDbData::m_emptyNames {} |
|
private |
◆ m_moduleContext
◆ m_nillbool
const bool CscCondDbData::m_nillbool = false |
|
private |
◆ m_nillfloat
const float CscCondDbData::m_nillfloat = -1 |
|
private |
◆ m_nillint
const int CscCondDbData::m_nillint = -1 |
|
private |
◆ m_onlineChannelIdsFromChamberCoolChannel
std::vector<unsigned int> CscCondDbData::m_onlineChannelIdsFromChamberCoolChannel {} |
|
private |
◆ m_onlineChannelIdsFromLayerHash
std::vector<unsigned int> CscCondDbData::m_onlineChannelIdsFromLayerHash {} |
|
private |
◆ m_onlineOfflinePhiFlip
bool CscCondDbData::m_onlineOfflinePhiFlip {true} |
|
private |
The documentation for this class was generated from the following files:
StatusCode readChannelRMS(IdentifierHash, float &) const
const float & getChannelPSlope(IdentifierHash) const
constexpr uint8_t stationPhi
station Phi 1 to 8
const float & getChannelF001(IdentifierHash) const
std::map< unsigned int, float > m_cachedChannelsNoise
Scalar phi() const
phi method
StatusCode readChannelPed(IdentifierHash, float &) const
virtual int get_id(const IdentifierHash &hash_id, Identifier &id, const IdContext *context=0) const override
Create compact id from hash id (return == 0 for OK)
std::string find(const std::string &s)
return a remapped string
void setDeadChannelHash(IdentifierHash)
StatusCode readChannelT0Phase(IdentifierHash, bool &) const
IdContext channel_context() const
id for channel
Scalar eta() const
pseudorapidity method
bool m_onlineOfflinePhiFlip
std::vector< std::string > m_cachedDeadLayers
const int & getChannelStatus(IdentifierHash) const
std::map< unsigned int, float > m_cachedChannelsPed
std::vector< Identifier > m_cachedDeadStationsId
int stationName(const Identifier &id) const
IdContext m_moduleContext
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
StatusCode offlineToOnlineId(const CscIdHelper *, const Identifier &, unsigned int &) const
std::map< unsigned int, float > m_cachedChannelsPSlope
IMessageSvc * getMessageSvc(bool quiet=false)
std::vector< Identifier > m_cachedDeadLayersId
StatusCode readChannelT0Base(IdentifierHash, float &) const
std::vector< std::string > m_emptyNames
int wireLayer(const Identifier &id) const
StatusCode offlineElementToOnlineId(const CscIdHelper *, const Identifier &, unsigned int &) const
std::vector< Identifier > m_emptyIds
const float & getChannelRMS(IdentifierHash) const
std::vector< unsigned int > m_onlineChannelIdsFromLayerHash
StatusCode readChannelPSlope(IdentifierHash, float &) const
StatusCode readChannelStatus(IdentifierHash, int &) const
std::vector< unsigned int > m_cachedDeadChannelsHash
StatusCode readChannelNoise(IdentifierHash, float &) const
StatusCode readChannelF001(IdentifierHash, float &) const
int stationPhi(const Identifier &id) const
const float & getChannelNoise(IdentifierHash) const
std::map< unsigned int, float > m_cachedChannelsF001
Identifier channelID(int stationName, int stationEta, int stationPhi, int chamberLayer, int wireLayer, int measuresPhi, int strip) const
std::vector< std::string > m_cachedDeadStations
int stationEta(const Identifier &id) const
std::map< unsigned int, float > m_cachedChannelsT0Base
std::vector< unsigned int > m_emptyHashs
Identifier elementID(int stationName, int stationEta, int stationPhi) const
IdContext m_channelContext
const float & getChannelPed(IdentifierHash) const
bool hasChannelT0Phase(IdentifierHash) const
int strip(const Identifier &id) const
std::map< unsigned int, int > m_cachedChannelsStatus
IdContext module_context() const
id for module
bool isGoodStation(const Identifier &) const
std::map< unsigned int, bool > m_cachedChannelsT0Phase
bool measuresPhi(const Identifier &id) const override
bool isGoodLayer(const Identifier &) const
constexpr uint8_t stationEta
1 to 3
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
std::map< unsigned int, float > m_cachedChannelsRMS
int chamberLayer(const Identifier &id) const
StatusCode layerHashToOnlineId(const unsigned int &, unsigned int &) const
const float & getChannelT0Base(IdentifierHash) const
const bool & getChannelT0Phase(IdentifierHash) const