Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Service for accessing DCS conditions information.
More...
#include <TRT_DCS_ConditionsSvc.h>
|
bool | m_VeryVerbose {} |
|
std::string | m_Barrel_HV_COOLFolderName |
|
std::string | m_EndcapA_HV_COOLFolderName |
|
std::string | m_EndcapC_HV_COOLFolderName |
|
float | m_HVWarnValLo {} |
|
float | m_HVWarnValHi {} |
|
ServiceHandle< StoreGateSvc > | m_evtStore |
|
ServiceHandle< StoreGateSvc > | m_detStore |
|
ServiceHandle< ITRT_HWMappingSvc > | m_mapSvc |
|
SG::ReadHandleKey< xAOD::EventInfo > | m_EventInfoKey {this,"EventInfoKey","EventInfo","RHK for EventInfo"} |
|
ServiceHandle< ICondSvc > | m_condSvc |
|
SG::ReadCondHandleKey< CondAttrListCollection > | m_barrelReadKey {this,"BarrelKeyName","in","HV Barrel in-key"} |
|
SG::ReadCondHandleKey< CondAttrListCollection > | m_EAReadKey {this,"EAKeyName","in","HV EA in-key"} |
|
SG::ReadCondHandleKey< CondAttrListCollection > | m_ECReadKey {this,"ECKeyName","in","HV EC in-key"} |
|
std::vector< const CondAttrListCollection * > m_Barrel_HV_COOLCont | ATLAS_THREAD_SAFE |
|
std::vector< const CondAttrListCollection * > m_EndcapA_HV_COOLCont | ATLAS_THREAD_SAFE |
|
std::vector< const CondAttrListCollection * > m_EndcapC_HV_COOLCont | ATLAS_THREAD_SAFE |
|
std::mutex | m_cacheMutex |
|
std::vector< EventContext::ContextEvt_t > m_evtBA | ATLAS_THREAD_SAFE |
|
std::vector< EventContext::ContextEvt_t > m_evtEA | ATLAS_THREAD_SAFE |
|
std::vector< EventContext::ContextEvt_t > m_evtEC | ATLAS_THREAD_SAFE |
|
int | m_IOVmaxLength {} |
|
bool | m_doIOVchecking {} |
|
bool | m_FallBackOnCOOLChanNames {} |
|
const TRT_ID * | m_TRT_ID_Helper |
|
int | m_numFlagRED |
| Counters. More...
|
|
int | m_numFlagNOINFO |
|
int | m_currentTimestamp |
|
bool | m_doMonitoring |
|
TH1D * | m_h_Barrel_nRED |
|
TH1D * | m_h_EndcapA_nRED |
|
TH1D * | m_h_EndcapC_nRED |
|
TH1D * | m_h_Barrel_nNOINFO |
|
TH1D * | m_h_EndcapA_nNOINFO |
|
TH1D * | m_h_EndcapC_nNOINFO |
|
TH1D * | m_h_Barrel_HVvalAvg |
|
TH1D * | m_h_EndcapA_HVvalAvg |
|
TH1D * | m_h_EndcapC_HVvalAvg |
|
int | m_nBAEvts |
|
int | m_nEAEvts |
|
int | m_nECEvts |
|
InDet::TRT_CondFlag | condSummaryStatus (const Identifier &) |
| Evaluation for TRT_ConditionsSummarySvc. More...
|
|
Service for accessing DCS conditions information.
Definition at line 33 of file TRT_DCS_ConditionsSvc.h.
◆ TRT_DCS_ConditionsSvc()
TRT_DCS_ConditionsSvc::TRT_DCS_ConditionsSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
Constructor //.
Definition at line 26 of file TRT_DCS_ConditionsSvc.cxx.
28 base_class(
name, pSvcLocator ),
59 declareProperty(
"HV_WarningValueLow",
m_HVWarnValHi = 2000. );
60 declareProperty(
"HV_WarningValueHigh",
m_HVWarnValLo = 1000. );
61 declareProperty(
"HWMapSvc",
m_mapSvc );
66 declareProperty(
"DetectorStore",
m_detStore );
69 ATH_MSG_WARNING(
"DoIOVChecking is deprecated and does nothing. Please remove from your job options configuration." );
73 m_evtBA.push_back(-1);
74 m_evtEA.push_back(-1);
75 m_evtEC.push_back(-1);
76 m_Barrel_HV_COOLCont.push_back(
nullptr);
77 m_EndcapA_HV_COOLCont.push_back(
nullptr);
78 m_EndcapC_HV_COOLCont.push_back(
nullptr);
◆ ~TRT_DCS_ConditionsSvc()
TRT_DCS_ConditionsSvc::~TRT_DCS_ConditionsSvc |
( |
| ) |
|
|
virtualdefault |
◆ condSummaryStatus()
◆ finalize()
StatusCode TRT_DCS_ConditionsSvc::finalize |
( |
| ) |
|
|
virtual |
Finalize //.
Definition at line 344 of file TRT_DCS_ConditionsSvc.cxx.
347 ATH_MSG_INFO(
"If these are suspicious numbers, turn on VERBOSE output and set VeryVerbose=True to see more info." );
352 TFile*
outFile =
new TFile(
"TRT_DCS_Monitoring.root",
"RECREATE");
367 return StatusCode::SUCCESS;
◆ getCollection()
get pointer
Definition at line 373 of file TRT_DCS_ConditionsSvc.cxx.
374 const EventContext& event_context=Gaudi::Hive::currentContext();
375 EventContext::ContextID_t slot=event_context.slot();
376 EventContext::ContextEvt_t event_id=event_context.evt();
379 if(slot>=m_evtBA.size()) {
380 m_evtBA.resize(slot+1);
381 m_Barrel_HV_COOLCont.resize(slot+1);
383 if(m_evtBA[slot]!=event_id) {
385 m_evtBA[slot]=event_id;
386 m_Barrel_HV_COOLCont[slot]=(*rst);
389 return m_Barrel_HV_COOLCont[slot];
392 if(slot>=m_evtEA.size()) {
393 m_evtEA.resize(slot+1);
394 m_EndcapA_HV_COOLCont.resize(slot+1);
396 if(m_evtEA[slot]!=event_id) {
398 m_evtEA[slot]=event_id;
399 m_EndcapA_HV_COOLCont[slot]=(*rst);
402 return m_EndcapA_HV_COOLCont[slot];
405 if(slot>=m_evtEC.size()) {
406 m_evtEC.resize(slot+1);
407 m_EndcapC_HV_COOLCont.resize(slot+1);
409 if(m_evtEC[slot]!=event_id) {
411 m_evtEC[slot]=event_id;
412 m_EndcapC_HV_COOLCont[slot]=(*rst);
415 return m_EndcapC_HV_COOLCont[slot];
418 ATH_MSG_WARNING(
" TRT DCS HV folder requested with bad folder name " );
◆ getFlag()
Returns the DCS conditions StatusFlag for a given identifier.
getFlag //
Definition at line 129 of file TRT_DCS_ConditionsSvc.cxx.
135 if (
sc.isFailure() ) {
140 if ( theVoltage < m_HVWarnValLo || theVoltage >
m_HVWarnValHi ) {
◆ getValue() [1/3]
Returns the value for a given identifier and data type.
getValue //
Get the value for a given identifier and DCS conditions data type.
Definition at line 153 of file TRT_DCS_ConditionsSvc.cxx.
175 return StatusCode::FAILURE;
183 << barrel_ec <<
"," << phi_slice <<
"," << module_or_wheel <<
","
184 << straw_layer <<
"," <<
straw );
189 if (
sc.isFailure() ) {
193 std::string chanName =
"";
195 if ( chanName.empty() ) {
197 << barrel_ec <<
"," << phi_slice <<
"," << module_or_wheel <<
","
198 << straw_layer <<
"," <<
straw );
199 return StatusCode::FAILURE;
203 if (
sc.isFailure() ) {
207 }
else return StatusCode::FAILURE;
212 return StatusCode::FAILURE;
◆ getValue() [2/3]
Returns the value for a given folder and COOL channel number.
getValue by folder name and COOL channel number //
Get the value for a given folder and COOL channel number.
Definition at line 278 of file TRT_DCS_ConditionsSvc.cxx.
290 if ( !DCScondFolder ) {
292 if (
sc.isFailure() ) {
294 <<
" from DetectorStore. Has it been loaded into IOVDbSvc?" );
298 if ( !DCScondFolder )
return StatusCode::FAILURE;
302 if ( chanAttrListPair == DCScondFolder->
end() ) {
305 <<
" for this IOV." );
306 return StatusCode::FAILURE;
313 return StatusCode::SUCCESS;
◆ getValue() [3/3]
Returns the value for a given folder/channel name.
getValue by folder name and channel name //
Get the value for a given folder/channel name.
Definition at line 221 of file TRT_DCS_ConditionsSvc.cxx.
234 if ( !DCScondFolder ) {
236 if (
sc.isFailure() ) {
238 <<
" from DetectorStore. Has it been loaded into IOVDbSvc?" );
239 return StatusCode::FAILURE;
242 if ( !DCScondFolder )
return StatusCode::FAILURE;
248 <<
" in its ChanNameMap. Won't be able to get channel numbers." );
250 for ( chanNameMapItr = DCScondFolder->
name_begin();
251 chanNameMapItr != DCScondFolder->
name_end(); ++chanNameMapItr ) {
252 if ( (*chanNameMapItr).second == chanName ) {
253 chanNum = (*chanNameMapItr).first;
261 if ( chanAttrListPair == DCScondFolder->
end() ) {
264 <<
" for this IOV." );
265 return StatusCode::FAILURE;
◆ initialize()
StatusCode TRT_DCS_ConditionsSvc::initialize |
( |
| ) |
|
|
virtual |
Initialize //.
Definition at line 89 of file TRT_DCS_ConditionsSvc.cxx.
95 if (
sc.isFailure() ) {
99 if (
sc.isFailure() ) {
111 if (
sc.isFailure() ) {
112 ATH_MSG_ERROR(
"Unable to retrieve pointer to TRT ID Helper." );
118 if (
sc.isFailure() ) {
◆ monitorBarrel()
void TRT_DCS_ConditionsSvc::monitorBarrel |
( |
| ) |
|
Monitor barrel HV //.
Definition at line 426 of file TRT_DCS_ConditionsSvc.cxx.
434 if (not evtInfo.isValid()) {
436 <<
" from StoreGate." );
455 chanNameMapItr != clc->
name_end(); ++chanNameMapItr ) {
456 std::string chanName( (*chanNameMapItr).second );
457 int chanNum( (*chanNameMapItr).first );
467 chanNameMapItr != clc->
name_end(); ++chanNameMapItr ) {
468 std::string chanName( (*chanNameMapItr).second );
469 int chanNum( (*chanNameMapItr).first );
◆ monitorEndcapA()
void TRT_DCS_ConditionsSvc::monitorEndcapA |
( |
| ) |
|
Monitor EndcapA HV //.
Definition at line 486 of file TRT_DCS_ConditionsSvc.cxx.
494 if (not evtInfo.isValid()) {
496 <<
" from StoreGate." );
515 chanNameMapItr != clc->
name_end(); ++chanNameMapItr ) {
516 std::string chanName( (*chanNameMapItr).second );
517 int chanNum( (*chanNameMapItr).first );
525 chanNameMapItr != clc->
name_end(); ++chanNameMapItr ) {
526 std::string chanName( (*chanNameMapItr).second );
527 int chanNum( (*chanNameMapItr).first );
◆ monitorEndcapC()
void TRT_DCS_ConditionsSvc::monitorEndcapC |
( |
| ) |
|
Monitor EndcapC HV //.
Definition at line 542 of file TRT_DCS_ConditionsSvc.cxx.
550 if (not evtInfo.isValid()) {
552 <<
" from StoreGate." );
571 chanNameMapItr != clc->
name_end(); ++chanNameMapItr ) {
572 std::string chanName( (*chanNameMapItr).second );
573 int chanNum( (*chanNameMapItr).first );
581 chanNameMapItr != clc->
name_end(); ++chanNameMapItr ) {
582 std::string chanName( (*chanNameMapItr).second );
583 int chanNum( (*chanNameMapItr).first );
◆ ATLAS_THREAD_SAFE [1/6]
◆ ATLAS_THREAD_SAFE [2/6]
◆ ATLAS_THREAD_SAFE [3/6]
◆ ATLAS_THREAD_SAFE [4/6]
std::vector<EventContext::ContextEvt_t> m_evtBA TRT_DCS_ConditionsSvc::ATLAS_THREAD_SAFE |
|
mutableprivate |
◆ ATLAS_THREAD_SAFE [5/6]
std::vector<EventContext::ContextEvt_t> m_evtEA TRT_DCS_ConditionsSvc::ATLAS_THREAD_SAFE |
|
mutableprivate |
◆ ATLAS_THREAD_SAFE [6/6]
std::vector<EventContext::ContextEvt_t> m_evtEC TRT_DCS_ConditionsSvc::ATLAS_THREAD_SAFE |
|
mutableprivate |
◆ m_Barrel_HV_COOLFolderName
std::string TRT_DCS_ConditionsSvc::m_Barrel_HV_COOLFolderName |
|
private |
◆ m_barrelReadKey
◆ m_cacheMutex
std::mutex TRT_DCS_ConditionsSvc::m_cacheMutex |
|
mutableprivate |
◆ m_condSvc
◆ m_currentTimestamp
int TRT_DCS_ConditionsSvc::m_currentTimestamp |
|
private |
◆ m_detStore
◆ m_doIOVchecking
bool TRT_DCS_ConditionsSvc::m_doIOVchecking {} |
|
private |
◆ m_doMonitoring
bool TRT_DCS_ConditionsSvc::m_doMonitoring |
|
private |
◆ m_EAReadKey
◆ m_ECReadKey
◆ m_EndcapA_HV_COOLFolderName
std::string TRT_DCS_ConditionsSvc::m_EndcapA_HV_COOLFolderName |
|
private |
◆ m_EndcapC_HV_COOLFolderName
std::string TRT_DCS_ConditionsSvc::m_EndcapC_HV_COOLFolderName |
|
private |
◆ m_EventInfoKey
◆ m_evtStore
◆ m_FallBackOnCOOLChanNames
bool TRT_DCS_ConditionsSvc::m_FallBackOnCOOLChanNames {} |
|
private |
◆ m_h_Barrel_HVvalAvg
TH1D* TRT_DCS_ConditionsSvc::m_h_Barrel_HVvalAvg |
|
private |
◆ m_h_Barrel_nNOINFO
TH1D* TRT_DCS_ConditionsSvc::m_h_Barrel_nNOINFO |
|
private |
◆ m_h_Barrel_nRED
TH1D* TRT_DCS_ConditionsSvc::m_h_Barrel_nRED |
|
private |
◆ m_h_EndcapA_HVvalAvg
TH1D* TRT_DCS_ConditionsSvc::m_h_EndcapA_HVvalAvg |
|
private |
◆ m_h_EndcapA_nNOINFO
TH1D* TRT_DCS_ConditionsSvc::m_h_EndcapA_nNOINFO |
|
private |
◆ m_h_EndcapA_nRED
TH1D* TRT_DCS_ConditionsSvc::m_h_EndcapA_nRED |
|
private |
◆ m_h_EndcapC_HVvalAvg
TH1D* TRT_DCS_ConditionsSvc::m_h_EndcapC_HVvalAvg |
|
private |
◆ m_h_EndcapC_nNOINFO
TH1D* TRT_DCS_ConditionsSvc::m_h_EndcapC_nNOINFO |
|
private |
◆ m_h_EndcapC_nRED
TH1D* TRT_DCS_ConditionsSvc::m_h_EndcapC_nRED |
|
private |
◆ m_HVWarnValHi
float TRT_DCS_ConditionsSvc::m_HVWarnValHi {} |
|
private |
◆ m_HVWarnValLo
float TRT_DCS_ConditionsSvc::m_HVWarnValLo {} |
|
private |
◆ m_IOVmaxLength
int TRT_DCS_ConditionsSvc::m_IOVmaxLength {} |
|
private |
◆ m_mapSvc
◆ m_nBAEvts
int TRT_DCS_ConditionsSvc::m_nBAEvts |
|
private |
◆ m_nEAEvts
int TRT_DCS_ConditionsSvc::m_nEAEvts |
|
private |
◆ m_nECEvts
int TRT_DCS_ConditionsSvc::m_nECEvts |
|
private |
◆ m_numFlagNOINFO
int TRT_DCS_ConditionsSvc::m_numFlagNOINFO |
|
private |
◆ m_numFlagRED
int TRT_DCS_ConditionsSvc::m_numFlagRED |
|
private |
◆ m_TRT_ID_Helper
◆ m_VeryVerbose
bool TRT_DCS_ConditionsSvc::m_VeryVerbose {} |
|
private |
The documentation for this class was generated from the following files:
TH1D * m_h_EndcapC_HVvalAvg
void monitorEndcapC()
Monitor EndcapC HV //.
SG::ReadCondHandleKey< CondAttrListCollection > m_barrelReadKey
TH1D * m_h_EndcapA_HVvalAvg
ServiceHandle< StoreGateSvc > m_detStore
const_iterator end() const
std::string m_EndcapA_HV_COOLFolderName
std::string m_Barrel_HV_COOLFolderName
Scalar phi() const
phi method
TH1D * m_h_Barrel_nNOINFO
TH1D * m_h_EndcapA_nNOINFO
ServiceHandle< ITRT_HWMappingSvc > m_mapSvc
void monitorEndcapA()
Monitor EndcapA HV //.
SG::ReadHandleKey< xAOD::EventInfo > m_EventInfoKey
float TRT_DCS_ValueType
data type stored in COOL DCS tables (usually float)
ServiceHandle< ICondSvc > m_condSvc
#define ATH_MSG_VERBOSE(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.
This class is a collection of AttributeLists where each one is associated with a channel number....
ChanNameMap::const_iterator name_const_iterator
int straw(const Identifier &id) const
bool m_FallBackOnCOOLChanNames
::StatusCode StatusCode
StatusCode definition for legacy code.
TH1D * m_h_Barrel_HVvalAvg
TRT_DCS_StatusFlag
status flags derived from DCS conditions data
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
int straw_layer(const Identifier &id) const
std::string m_EndcapC_HV_COOLFolderName
int layer_or_wheel(const Identifier &id) const
const CondAttrListCollection * getCollection(const std::string &collName)
get pointer
name_const_iterator name_begin() const
Access to Chan/Name pairs via iterators.
outFile
Comment Out Those You do not wish to run.
name_size_type name_size() const
number of Chan/Name pairs
const TRT_ID * m_TRT_ID_Helper
void monitorBarrel()
Monitor barrel HV //.
StatusCode initialize(bool used=true)
int phi_module(const Identifier &id) const
StatusCode getValue(const Identifier, const InDet::TRT_DCS_DataType, InDet::TRT_DCS_ValueType &)
Returns the value for a given identifier and data type.
const_iterator chanAttrListPair(ChanNum chanNum) const
Access to Chan/AttributeList pairs via channel number: returns map iterator.
SG::ReadCondHandleKey< CondAttrListCollection > m_EAReadKey
SG::ReadCondHandleKey< CondAttrListCollection > m_ECReadKey
#define ATH_MSG_WARNING(x)
ChanAttrListMap::const_iterator const_iterator
ServiceHandle< StoreGateSvc > m_evtStore
int m_numFlagRED
Counters.
TH1D * m_h_EndcapC_nNOINFO
TRT_CondFlag
status flag to be derived from the inheriting tool's conditions info
InDet::TRT_DCS_StatusFlag getFlag(const Identifier)
Returns the DCS conditions StatusFlag for a given identifier.
coral::AttributeList AttributeList
name_const_iterator name_end() const