|
ATLAS Offline Software
|
#include <TRTStrawStatusRead.h>
|
| TRTStrawStatusRead (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~TRTStrawStatusRead ()=default |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute () override |
|
virtual StatusCode | finalize () override |
|
virtual StatusCode | writeToTextFile (const std::string &filename) |
|
virtual const StrawStatusContainer * | getStrawStatusContainer () const |
|
virtual const StrawStatusContainer * | getStrawStatusPermanentContainer () const |
|
virtual const StrawStatusContainer * | getStrawStatusHTContainer () const |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
Definition at line 24 of file TRTStrawStatusRead.h.
◆ StoreGateSvc_t
◆ StrawStatusContainer
◆ TRTStrawStatusRead()
TRTStrawStatusRead::TRTStrawStatusRead |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~TRTStrawStatusRead()
virtual TRTStrawStatusRead::~TRTStrawStatusRead |
( |
| ) |
|
|
virtualdefault |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode TRTStrawStatusRead::execute |
( |
| ) |
|
|
overridevirtual |
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ finalize()
StatusCode TRTStrawStatusRead::finalize |
( |
| ) |
|
|
overridevirtual |
◆ getStrawStatusContainer()
◆ getStrawStatusHTContainer()
◆ getStrawStatusPermanentContainer()
◆ initialize()
StatusCode TRTStrawStatusRead::initialize |
( |
| ) |
|
|
overridevirtual |
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ writeToTextFile()
StatusCode TRTStrawStatusRead::writeToTextFile |
( |
const std::string & |
filename | ) |
|
|
virtual |
Definition at line 91 of file TRTStrawStatusRead.cxx.
104 for(
int i=0;
i<32;
i++){
112 for(
int i=0;
i<14;
i++){
124 std::cout <<
" Status write output file in the same format as input " << std::endl;
125 for( TRTCond::StrawStatusContainer::FlatContainer::const_iterator
126 it = flatcontainer.begin() ;
it != flatcontainer.end() ; ++
it) {
155 for (
int i=0;
i<=nStrawsInLayer;
i++) {
164 stat =
m_status->getStatus(
id, Gaudi::Hive::currentContext());
171 if(lay==0) deadbc0[sec]++;
172 if(lay==1) deadbc1[sec]++;
173 if(lay==2) deadbc2[sec]++;
175 if(lay==0) deadba0[sec]++;
176 if(lay==1) deadba1[sec]++;
177 if(lay==2) deadba2[sec]++;
199 if(sec==1 && slay==1) {
201 int stat =
int(
m_status->getStatusHT(
id, Gaudi::Hive::currentContext()));
207 for( TRTCond::StrawStatusContainer::FlatContainer::const_iterator
208 it = flatcontainerHT.begin() ;
it != flatcontainerHT.end() ; ++
it) {
223 std::cout <<
" StatusPermanent cobntainer first straws: " << std::endl;
224 for( TRTCond::StrawStatusContainer::FlatContainer::const_iterator
225 it = flatcontainerpermanent.begin() ;
it != flatcontainerpermanent.end() ; ++
it) {
235 outfile <<
bec <<
" " << sec <<
" " <<
straw <<
" " << slay <<
" " << lay <<
" " <<
stat << std::endl ;
242 if(lay==0) deadbc0[sec]++;
243 if(lay==1) deadbc1[sec]++;
244 if(lay==2) deadbc2[sec]++;
246 if(lay==0) deadba0[sec]++;
247 if(lay==1) deadba1[sec]++;
248 if(lay==2) deadba2[sec]++;
254 if(
straw==0 && slay==0) std::cout <<
bec <<
" " << sec <<
" " <<
straw <<
" " << slay <<
" " << lay <<
" " <<
stat << std::endl;
261 for (
int i=0;
i<=nStrawsInLayer;
i++) {
269 stat =
int(
m_status->getStatusPermanent(
id, Gaudi::Hive::currentContext()));
271 if(slay==0 &&
straw==0) std::cout <<
bec <<
" " << lay <<
" " << sec <<
" " <<
stat << std::endl;
279 ATH_MSG_INFO (
"deadba0[] = { " << deadba0[0] <<
", " << deadba0[1] <<
", " << deadba0[2] <<
", " << deadba0[3] <<
", " <<
280 deadba0[4] <<
", " << deadba0[5] <<
", " << deadba0[6] <<
", " << deadba0[7] <<
", " <<
281 deadba0[8] <<
", " << deadba0[9] <<
", " << deadba0[10] <<
", " << deadba0[11] <<
", " <<
282 deadba0[12] <<
", " << deadba0[13] <<
", " << deadba0[14] <<
", " << deadba0[15] <<
", " <<
283 deadba0[16] <<
", " << deadba0[17] <<
", " << deadba0[18] <<
", " << deadba0[19] <<
", " <<
284 deadba0[20] <<
", " << deadba0[21] <<
", " << deadba0[22] <<
", " << deadba0[23] <<
", " <<
285 deadba0[24] <<
", " << deadba0[25] <<
", " << deadba0[26] <<
", " << deadba0[27] <<
", " <<
286 deadba0[28] <<
", " << deadba0[29] <<
", " << deadba0[30] <<
", " << deadba0[31] <<
"}; " );
288 ATH_MSG_INFO (
"deadba1[] = { " << deadba1[0] <<
", " << deadba1[1] <<
", " << deadba1[2] <<
", " << deadba1[3] <<
", " <<
289 deadba1[4] <<
", " << deadba1[5] <<
", " << deadba1[6] <<
", " << deadba1[7] <<
", " <<
290 deadba1[8] <<
", " << deadba1[9] <<
", " << deadba1[10] <<
", " << deadba1[11] <<
", " <<
291 deadba1[12] <<
", " << deadba1[13] <<
", " << deadba1[14] <<
", " << deadba1[15] <<
", " <<
292 deadba1[16] <<
", " << deadba1[17] <<
", " << deadba1[18] <<
", " << deadba1[19] <<
", " <<
293 deadba1[20] <<
", " << deadba1[21] <<
", " << deadba1[22] <<
", " << deadba1[23] <<
", " <<
294 deadba1[24] <<
", " << deadba1[25] <<
", " << deadba1[26] <<
", " << deadba1[27] <<
", " <<
295 deadba1[28] <<
", " << deadba1[29] <<
", " << deadba1[30] <<
", " << deadba1[31] <<
"};");
297 ATH_MSG_INFO (
"deadba2[]= { " << deadba2[0] <<
", " << deadba2[1] <<
", " << deadba2[2] <<
", " << deadba2[3] <<
", " <<
298 deadba2[4] <<
", " << deadba2[5] <<
", " << deadba2[6] <<
", " << deadba2[7] <<
", " <<
299 deadba2[8] <<
", " << deadba2[9] <<
", " << deadba2[10] <<
", " << deadba2[11] <<
", " <<
300 deadba2[12] <<
", " << deadba2[13] <<
", " << deadba2[14] <<
", " << deadba2[15] <<
", " <<
301 deadba2[16] <<
", " << deadba2[17] <<
", " << deadba2[18] <<
", " << deadba2[19] <<
", " <<
302 deadba2[20] <<
", " << deadba2[21] <<
", " << deadba2[22] <<
", " << deadba2[23] <<
", " <<
303 deadba2[24] <<
", " << deadba2[25] <<
", " << deadba2[26] <<
", " << deadba2[27] <<
", " <<
304 deadba2[28] <<
", " << deadba2[29] <<
", " << deadba2[30] <<
", " << deadba2[31] <<
"}; ");
307 ATH_MSG_INFO (
"deadbc0[] = { " << deadbc0[0] <<
", " << deadbc0[1] <<
", " << deadbc0[2] <<
", " << deadbc0[3] <<
", " <<
308 deadbc0[4] <<
", " << deadbc0[5] <<
", " << deadbc0[6] <<
", " << deadbc0[7] <<
", " <<
309 deadbc0[8] <<
", " << deadbc0[9] <<
", " << deadbc0[10] <<
", " << deadbc0[11] <<
", " <<
310 deadbc0[12] <<
", " << deadbc0[13] <<
", " << deadbc0[14] <<
", " << deadbc0[15] <<
", " <<
311 deadbc0[16] <<
", " << deadbc0[17] <<
", " << deadbc0[18] <<
", " << deadbc0[19] <<
", " <<
312 deadbc0[20] <<
", " << deadbc0[21] <<
", " << deadbc0[22] <<
", " << deadbc0[23] <<
", " <<
313 deadbc0[24] <<
", " << deadbc0[25] <<
", " << deadbc0[26] <<
", " << deadbc0[27] <<
", " <<
314 deadbc0[28] <<
", " << deadbc0[29] <<
", " << deadbc0[30] <<
", " << deadbc0[31] <<
"}; " );
316 ATH_MSG_INFO (
"deadbc1[] = { " << deadbc1[0] <<
", " << deadbc1[1] <<
", " << deadbc1[2] <<
", " << deadbc1[3] <<
", " <<
317 deadbc1[4] <<
", " << deadbc1[5] <<
", " << deadbc1[6] <<
", " << deadbc1[7] <<
", " <<
318 deadbc1[8] <<
", " << deadbc1[9] <<
", " << deadbc1[10] <<
", " << deadbc1[11] <<
", " <<
319 deadbc1[12] <<
", " << deadbc1[13] <<
", " << deadbc1[14] <<
", " << deadbc1[15] <<
", " <<
320 deadbc1[16] <<
", " << deadbc1[17] <<
", " << deadbc1[18] <<
", " << deadbc1[19] <<
", " <<
321 deadbc1[20] <<
", " << deadbc1[21] <<
", " << deadbc1[22] <<
", " << deadbc1[23] <<
", " <<
322 deadbc1[24] <<
", " << deadbc1[25] <<
", " << deadbc1[26] <<
", " << deadbc1[27] <<
", " <<
323 deadbc1[28] <<
", " << deadbc1[29] <<
", " << deadbc1[30] <<
", " << deadbc1[31] <<
"};");
325 ATH_MSG_INFO (
"deadbc2[]= { " << deadbc2[0] <<
", " << deadbc2[1] <<
", " << deadbc2[2] <<
", " << deadbc2[3] <<
", " <<
326 deadbc2[4] <<
", " << deadbc2[5] <<
", " << deadbc2[6] <<
", " << deadbc2[7] <<
", " <<
327 deadbc2[8] <<
", " << deadbc2[9] <<
", " << deadbc2[10] <<
", " << deadbc2[11] <<
", " <<
328 deadbc2[12] <<
", " << deadbc2[13] <<
", " << deadbc2[14] <<
", " << deadbc2[15] <<
", " <<
329 deadbc2[16] <<
", " << deadbc2[17] <<
", " << deadbc2[18] <<
", " << deadbc2[19] <<
", " <<
330 deadbc2[20] <<
", " << deadbc2[21] <<
", " << deadbc2[22] <<
", " << deadbc2[23] <<
", " <<
331 deadbc2[24] <<
", " << deadbc2[25] <<
", " << deadbc2[26] <<
", " << deadbc2[27] <<
", " <<
332 deadbc2[28] <<
", " << deadbc2[29] <<
", " << deadbc2[30] <<
", " << deadbc2[31] <<
"}; ");
335 ATH_MSG_INFO (
"deadea[] = { " << deadea[0] <<
", " << deadea[1] <<
", " << deadea[2] <<
", " << deadea[3] <<
", " <<
336 deadea[4] <<
", " << deadea[5] <<
", " << deadea[6] <<
", " << deadea[7] <<
", " <<
337 deadea[8] <<
", " << deadea[9] <<
", " << deadea[10] <<
", " << deadea[11] <<
", " <<
338 deadea[12] <<
", " << deadea[13] <<
"}; ");
340 ATH_MSG_INFO (
"deadec[] = { " << deadec[0] <<
", " << deadec[1] <<
", " << deadec[2] <<
", " << deadec[3] <<
", " <<
341 deadec[4] <<
", " << deadec[5] <<
", " << deadec[6] <<
", " << deadec[7] <<
", " <<
342 deadec[8] <<
", " << deadec[9] <<
", " << deadec[10] <<
", " << deadec[11] <<
", " <<
343 deadec[12] <<
", " << deadec[13] <<
"}; " );
344 ATH_MSG_INFO(
"Number of good layers or wheels: " << ngood);
348 return StatusCode::SUCCESS ;
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_permReadKey
◆ m_printfolder
std::string TRTStrawStatusRead::m_printfolder |
|
private |
◆ m_setup
bool TRTStrawStatusRead::m_setup |
|
private |
◆ m_statHTReadKey
◆ m_statReadKey
◆ m_status
◆ m_trtid
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
int straw_max(const Identifier &id) const
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
TRTCond::StrawStatusMultChanContainer StrawStatusContainer
std::string m_printfolder
const_id_iterator straw_layer_end(void) const
std::vector< std::pair< ExpandedIdentifier, const StrawStatus * > > FlatContainer
fill vector with all entries in the container. needed to dump to Peter's flat file format
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
ToolHandle< ITRT_StrawStatusSummaryTool > m_status
int straw(const Identifier &id) const
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
virtual const StrawStatusContainer * getStrawStatusHTContainer() const
int straw_layer(const Identifier &id) const
int layer_or_wheel(const Identifier &id) const
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
virtual const StrawStatusContainer * getStrawStatusContainer() const
int phi_module(const Identifier &id) const
DataObjIDColl m_extendedExtraObjects
void getall(typename DaughterContainer::FlatContainer &entries) const
get a flat vector with all values.
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
virtual StatusCode writeToTextFile(const std::string &filename)
AthAlgorithm()
Default constructor:
const_id_iterator straw_layer_begin(void) const
Iterators over full set of straw_layer ids. Straw_layer ids are sorted.
SG::ReadCondHandleKey< StrawStatusContainer > m_permReadKey
Identifier for TRT detector elements in the conditions code.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
SG::ReadCondHandleKey< StrawStatusContainer > m_statHTReadKey
const TRT_ID * m_trtid
trt id helper
Identifier straw_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer, int straw) const
Three ways of getting id for a single straw:
virtual const StrawStatusContainer * getStrawStatusPermanentContainer() const
SG::ReadCondHandleKey< StrawStatusContainer > m_statReadKey