Service providing summary of status of an TRT detector element Interface is IInDetConditionsSvc class.
More...
#include <TRT_ConditionsSummarySvc.h>
Service providing summary of status of an TRT detector element Interface is IInDetConditionsSvc class.
Definition at line 38 of file TRT_ConditionsSummarySvc.h.
◆ TRT_ConditionsSummarySvc()
| TRT_ConditionsSummarySvc::TRT_ConditionsSummarySvc |
( |
const std::string & | name, |
|
|
ISvcLocator * | svc ) |
Service constructor.
Definition at line 21 of file TRT_ConditionsSummarySvc.cxx.
21 :
22 base_class(name, pSvcLocator),
24{
25
27}
ServiceHandleArray< ITRT_ConditionsSvc > m_svcCollection
◆ ~TRT_ConditionsSummarySvc()
| TRT_ConditionsSummarySvc::~TRT_ConditionsSummarySvc |
( |
| ) |
|
|
virtualdefault |
◆ activeFraction()
Definition at line 119 of file TRT_ConditionsSummarySvc.cxx.
119 {
121
122 Identifier layerId=
m_trtid->layer_id(elementHash);
123
126
128 for(
int i=start;
i<=
end;
i++){
129 Identifier elementId=
m_trtid->straw_id(layerId,i);
132 }
135 }
136
138}
virtual bool isActive(const Identifier &elementId, const InDetConditions::Hierarchy h=InDetConditions::DEFAULT) override
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string
◆ condSummaryStatus()
| InDet::TRT_CondFlag TRT_ConditionsSummarySvc::condSummaryStatus |
( |
const Identifier & | ident | ) |
|
|
private |
Definition at line 223 of file TRT_ConditionsSummarySvc.cxx.
223 {
224
225
227
228
229 ServiceHandleArray<ITRT_ConditionsSvc>::const_iterator svcItr;
233 thisSvcFlag = (*svcItr)->condSummaryStatus( ident );
234 if ( thisSvcFlag == InDet::TRT_COND_SKIPME ) continue;
235 if ( thisSvcFlag == InDet::TRT_COND_NOINFO ) continue;
236
237
238 if ( thisSvcFlag != InDet::TRT_COND_GOOD ) {
241 }
242 }
243
245}
TRT_CondFlag
status flag to be derived from the inheriting tool's conditions info
◆ goodFraction()
Definition at line 201 of file TRT_ConditionsSummarySvc.cxx.
201 {
203
204 Identifier layerId=
m_trtid->layer_id(elementHash);
205
208
210 for(
int i=start;
i<=
end;
i++){
211 Identifier elementId=
m_trtid->straw_id(layerId,i);
214 }
217 }
218
220}
virtual bool isGood(const Identifier &elementId, const InDetConditions::Hierarchy h=InDetConditions::DEFAULT) override
◆ initialize()
| StatusCode TRT_ConditionsSummarySvc::initialize |
( |
| ) |
|
|
overridevirtual |
Service init.
Definition at line 34 of file TRT_ConditionsSummarySvc.cxx.
34 {
36
37
40 } else {
43 }
44
45
46 SmartIF<StoreGateSvc>
detStore{service(
"DetectorStore")};
48
49
51
52
54
55 return StatusCode::SUCCESS;
56}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
const InDetDD::TRT_DetectorManager * m_manager
◆ isActive() [1/3]
Definition at line 59 of file TRT_ConditionsSummarySvc.cxx.
59 {
61
64
67
69 const InDetDD::TRT_BaseElement *element=
m_manager->getElement(elementId);
70
71
72 int nelements=element->
nStraws();
73 for(
int i=0;
i<nelements;
i++){
75 if(!(flag==InDet::TRT_COND_GOOD || flag==InDet::TRT_COND_CAUTION || flag==InDet::TRT_COND_NOINFO)){
77 break;
78 }
79 }
80 }else{
81 ATH_MSG_FATAL(
"Hierarchy Level "<<h<<
" not yet implemented!!!");
83 }
84
86}
unsigned int nStraws() const
Number of straws in the element.
InDet::TRT_CondFlag condSummaryStatus(const Identifier &ident)
◆ isActive() [2/3]
| bool TRT_ConditionsSummarySvc::isActive |
( |
const IdentifierHash & | elementHash | ) |
|
|
overridevirtual |
Definition at line 89 of file TRT_ConditionsSummarySvc.cxx.
89 {
91
92 const InDetDD::TRT_BaseElement *element=
m_manager->getElement(elementHash);
93
94 Identifier elementId=
m_trtid->layer_id(elementHash);
95
96
97 int nelements=element->
nStraws();
98 for(
int i=0;
i<nelements;
i++){
100 if(!(flag==InDet::TRT_COND_GOOD || flag==InDet::TRT_COND_CAUTION || flag==InDet::TRT_COND_NOINFO)){
102 break;
103 }
104 }
105
107}
◆ isActive() [3/3]
◆ isGood() [1/3]
Definition at line 141 of file TRT_ConditionsSummarySvc.cxx.
141 {
143
146
149
151 const InDetDD::TRT_BaseElement *element=
m_manager->getElement(elementId);
152
153
154 int nelements=element->
nStraws();
155 for(
int i=0;
i<nelements;
i++){
157 if(!(flag==InDet::TRT_COND_GOOD)){
159 break;
160 }
161 }
162 }else{
163 ATH_MSG_FATAL(
"Hierarchy Level "<<h<<
" not yet implemented!!!");
165 }
166
168}
◆ isGood() [2/3]
| bool TRT_ConditionsSummarySvc::isGood |
( |
const IdentifierHash & | elementHash | ) |
|
|
overridevirtual |
Definition at line 171 of file TRT_ConditionsSummarySvc.cxx.
171 {
173
174 const InDetDD::TRT_BaseElement *element=
m_manager->getElement(elementHash);
175
176 Identifier elementId=
m_trtid->layer_id(elementHash);
177
178
179 int nelements=element->
nStraws();
180 for(
int i=0;
i<nelements;
i++){
182 if(!(flag==InDet::TRT_COND_GOOD)){
184 break;
185 }
186 }
187
189}
◆ isGood() [3/3]
◆ m_manager
◆ m_svcCollection
◆ m_trtid
| const TRT_ID* TRT_ConditionsSummarySvc::m_trtid {nullptr} |
|
private |
The documentation for this class was generated from the following files: