#include <TRT_StrawStatusSummaryTool.h>
|
| const TRT_ID * | m_trtId =nullptr |
| ServiceHandle< ICondSvc > | m_condSvc |
| SG::ReadCondHandleKey< StrawStatusContainer > | m_statReadKey {this,"StatReadKeyName","/TRT/Cond/Status","StrawStatus in-key"} |
| SG::ReadCondHandleKey< StrawStatusContainer > | m_permReadKey {this,"PermReadKeyName","/TRT/Cond/StatusPermanent","StrawStatusPermanent in-key"} |
| SG::ReadCondHandleKey< StrawStatusContainer > | m_statHTReadKey {this,"StatHTReadKeyName","/TRT/Cond/StatusHT","StrawStatusHT in-key"} |
| Gaudi::Property< bool > | m_isGEANT4 {this,"isGEANT4",true} |
| Gaudi::Property< std::string > | m_par_strawstatusHTcontainerkey {this, "SimStatusHTKey","/TRT/Cond/StatusHT"} |
◆ StrawStatusContainer
◆ TRT_StrawStatusSummaryTool()
| TRT_StrawStatusSummaryTool::TRT_StrawStatusSummaryTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
◆ ~TRT_StrawStatusSummaryTool()
| virtual TRT_StrawStatusSummaryTool::~TRT_StrawStatusSummaryTool |
( |
| ) |
|
|
virtualdefault |
◆ finalize()
| StatusCode TRT_StrawStatusSummaryTool::finalize |
( |
| ) |
|
|
overridevirtual |
◆ get_status()
| bool TRT_StrawStatusSummaryTool::get_status |
( |
Identifier | offlineId, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
Definition at line 121 of file TRT_StrawStatusSummaryTool.cxx.
121 {
122 constexpr unsigned int statusbitmask = 1 << 8;
125 ATH_MSG_VERBOSE(
"offlineID "<<offlineID<<
" "<<status <<
" "<< statusperm);
126
127 bool st =
false, stperm=
false;
128
129 if (status==1)
st =
true;
130 else if (status==0)
st =
false;
131 else {
st =
bool( (status & statusbitmask) >> 8);};
132
133 if (statusperm==1) stperm = true;
134 else if (statusperm==0) stperm = false;
135 else {stperm =
bool( (statusperm & statusbitmask) >> 8);};
136
137 return (st||stperm);
138
139}
#define ATH_MSG_VERBOSE(x)
setBGCode setTAP setLVL2ErrorBits bool
◆ get_statusHT()
| bool TRT_StrawStatusSummaryTool::get_statusHT |
( |
Identifier | offlineId, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
Definition at line 143 of file TRT_StrawStatusSummaryTool.cxx.
143 {
144 constexpr unsigned int statusbitmask = 1 << 8;
145 bool stHT=false;
147
148 if (statusHT==1) stHT = true;
149 else if (statusHT==0) stHT = false;
150 else {stHT =
bool( (statusHT & statusbitmask) >> 8);};
151
152 return ( stHT );
153
154}
◆ getStatus()
| int TRT_StrawStatusSummaryTool::getStatus |
( |
Identifier | offlineId, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
Definition at line 50 of file TRT_StrawStatusSummaryTool.cxx.
50 {
52 TRTCond::ExpandedIdentifier
id= TRTCond::ExpandedIdentifier(
m_trtId->barrel_ec(offlineID),
m_trtId->layer_or_wheel(offlineID),
54 m_trtId->straw(offlineID),level );
55
56 SG::ReadCondHandle<StrawStatusContainer> rst(
m_statReadKey,ctx);
58
59 return int((*strawstatuscontainer).get(
id).getstatus());
60}
◆ getStatusHT()
| int TRT_StrawStatusSummaryTool::getStatusHT |
( |
Identifier | offlineId, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
Definition at line 78 of file TRT_StrawStatusSummaryTool.cxx.
78 {
79
81 TRTCond::ExpandedIdentifier
id= TRTCond::ExpandedIdentifier(
m_trtId->barrel_ec(offlineID),
m_trtId->layer_or_wheel(offlineID),
83 m_trtId->straw(offlineID),level );
84
89 return 0;
90 }
91 }
92 else {
94 strawstatusHTcontainer=(*rht);
95 }
96
97 return int((*strawstatusHTcontainer).get(
id).getstatus());
98}
retrieve(aClass, aKey=None)
◆ getStatusPermanent()
| int TRT_StrawStatusSummaryTool::getStatusPermanent |
( |
Identifier | offlineId, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
Definition at line 64 of file TRT_StrawStatusSummaryTool.cxx.
64 {
66 TRTCond::ExpandedIdentifier
id= TRTCond::ExpandedIdentifier(
m_trtId->barrel_ec(offlineID),
m_trtId->layer_or_wheel(offlineID),
68 m_trtId->straw(offlineID),level );
69
72
73 return int((*strawstatuspermanentcontainer).get(
id).getstatus());
74}
◆ getStrawStatusHTContainer()
Definition at line 100 of file TRT_StrawStatusSummaryTool.cxx.
100 {
101
104
107 }
108 }
109 else {
110 SG::ReadCondHandle<StrawStatusContainer> rht(
m_statHTReadKey,Gaudi::Hive::currentContext());
111 strawstatusHTcontainer=(*rht);
112 }
113
114 return strawstatusHTcontainer;
115}
#define ATH_MSG_WARNING(x)
◆ initialize()
| StatusCode TRT_StrawStatusSummaryTool::initialize |
( |
| ) |
|
|
overridevirtual |
tool initialize
Definition at line 20 of file TRT_StrawStatusSummaryTool.cxx.
21{
22 ATH_MSG_DEBUG(
"TRT_StrawStatusSummaryTool initialize method called");
23
24
27 return StatusCode::FAILURE;
28 }
29
30
33
34
36
37 ATH_MSG_DEBUG(
"TRT_StrawStatusSummaryTool initialized successfully ");
38 return StatusCode::SUCCESS;
39}
#define ATH_CHECK
Evaluate an expression and check for errors.
◆ m_condSvc
◆ m_isGEANT4
| Gaudi::Property<bool> TRT_StrawStatusSummaryTool::m_isGEANT4 {this,"isGEANT4",true} |
|
private |
◆ m_par_strawstatusHTcontainerkey
| Gaudi::Property<std::string> TRT_StrawStatusSummaryTool::m_par_strawstatusHTcontainerkey {this, "SimStatusHTKey","/TRT/Cond/StatusHT"} |
|
private |
◆ m_permReadKey
◆ m_statHTReadKey
◆ m_statReadKey
◆ m_trtId
| const TRT_ID* TRT_StrawStatusSummaryTool::m_trtId =nullptr |
|
private |
The documentation for this class was generated from the following files: