![]() |
ATLAS Offline Software
|
Public Member Functions | |
| __init__ (self, name="LArBadChannelBrowserAlg", **kw) | |
| initialize (self) | |
| execute (self) | |
| finalize (self) | |
| GetTagsAndIOVFromDatabase (self, folderName) | |
| ReadObjectsFromDatabase (self, folderName, tagName, tagIOVNumber) | |
| DumpDatabasePayloadObjects (self, dbSvc, dbName, ff) | |
| virtual StatusCode | reinitialize () override |
| virtual StatusCode | start () override |
| virtual StatusCode | stop () override |
| virtual StatusCode | sysInitialize () override |
| Override sysInitialize. | |
| virtual const char * | typeName () const override |
return the std::type_info name of the underlying py-component This is used by concrete implementations to connect a python component to its C++ counter-part | |
| virtual PyObject * | self () override |
| return associated python object. | |
| virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. | |
| ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. | |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. | |
| virtual StatusCode | sysStart () override |
| Handle START transition. | |
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. | |
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. | |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| MsgStream & | msg () const |
| bool | msgLvl (const MSG::Level lvl) const |
Public Attributes | |
| sg = PyAthena.py_svc('StoreGateSvc') | |
| note that we are using the python logging service and that the PyAthena.Alg base class has already initialized it for us | |
| det = PyAthena.py_svc('DetDescrCnvSvc') | |
| msgSvc = PyAthena.py_svc('MessageSvc') | |
| dbSvc = cool.DatabaseSvcFactory.databaseService() | |
| db = self.dbSvc.openDatabase(dbstring,True) | |
| onlineID = detStore.retrieve("LArOnlineID","LArOnlineID") | |
| larCablingSvc = PyAthena.py_tool("LArCablingService") | |
| str | dbFolderName = "/LAR/BadChannels/BadChannels" |
| folderId = BAD_CHANNEL | |
| iNbCoolChannel = self.GetTagsAndIOVFromDatabase(self.dbFolderName) | |
| nspace_LArBadChannelDBTools = LArBadChannelDBTools() | |
| class_LArBadChannel = cppyy.makeClass('LArBadChannel') | |
| class_HWIdentifier = cppyy.makeClass('HWIdentifier') | |
| class_LArBadChanBitPacking = cppyy.makeClass("LArBadChanBitPacking") | |
| dbBrowserBadChan | |
| dbBrowserMissingFeb | |
| selectedTag = listOfTags[iSelectedTag-1] | |
| dict | tagIOVDict = {} |
| channelNameDict = self.ReadObjectsFromDatabase(self.dbFolderName,self.selectedTag,self.tagIOVDict) | |
Protected Member Functions | |
| virtual bool | setPyAttr (PyObject *pyobj) override |
| attach the C++ component to its python cousin | |
| void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution | |
| std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
| void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
| Add StoreName to extra input/output deps as needed. | |
Protected Attributes | |
| PyObject * | m_self |
| Pointer to self (from the python world) | |
Private Types | |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| DataObjIDColl | m_extendedExtraObjects |
| StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) | |
| StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) | |
| std::vector< SG::VarHandleKeyArray * > | m_vhka |
| bool | m_varHandleArraysDeclared |
My first python algorithm ( and most probably not the last one... )
Definition at line 25 of file LArBadChannelBrowserLib.py.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.__init__ | ( | self, | |
| name = "LArBadChannelBrowserAlg", | |||
| ** | kw ) |
Definition at line 29 of file LArBadChannelBrowserLib.py.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 95 of file AthCommonDataStore.h.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.DumpDatabasePayloadObjects | ( | self, | |
| dbSvc, | |||
| dbName, | |||
| ff ) |
Definition at line 367 of file LArBadChannelBrowserLib.py.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.execute | ( | self | ) |
Definition at line 109 of file LArBadChannelBrowserLib.py.
|
protectedinherited |
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
|
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.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.finalize | ( | self | ) |
Definition at line 245 of file LArBadChannelBrowserLib.py.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.GetTagsAndIOVFromDatabase | ( | self, | |
| folderName ) |
First database browsing => retrieve tag names, IOVs and number of channels
Definition at line 250 of file LArBadChannelBrowserLib.py.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.initialize | ( | self | ) |
Definition at line 37 of file LArBadChannelBrowserLib.py.
|
overridevirtualinherited |
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.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
overridevirtualinherited |
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.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.ReadObjectsFromDatabase | ( | self, | |
| folderName, | |||
| tagName, | |||
| tagIOVNumber ) |
Second database browsing => read cool channel corresponding to selected tag
Definition at line 300 of file LArBadChannelBrowserLib.py.
|
overridevirtualinherited |
Definition at line 67 of file PyAthenaAlg.cxx.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
inlineoverridevirtualinherited |
return associated python object.
BORROWED reference.
Implements IPyComponent.
Definition at line 71 of file PyAthenaAlg.h.
|
overrideprotectedvirtualinherited |
attach the C++ component to its python cousin
Implements IPyComponent.
Definition at line 143 of file PyAthenaAlg.cxx.
|
overridevirtualinherited |
Definition at line 74 of file PyAthenaAlg.cxx.
|
overridevirtualinherited |
Definition at line 80 of file PyAthenaAlg.cxx.
|
overridevirtualinherited |
Override sysInitialize.
Override sysInitialize from the base class.
Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc
Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc
Reimplemented from AthAlgorithm.
Definition at line 105 of file PyAthenaAlg.cxx.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
overridevirtualinherited |
return the std::type_info name of the underlying py-component This is used by concrete implementations to connect a python component to its C++ counter-part
Implements IPyComponent.
Definition at line 132 of file PyAthenaAlg.cxx.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.channelNameDict = self.ReadObjectsFromDatabase(self.dbFolderName,self.selectedTag,self.tagIOVDict) |
Definition at line 174 of file LArBadChannelBrowserLib.py.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.class_HWIdentifier = cppyy.makeClass('HWIdentifier') |
Definition at line 137 of file LArBadChannelBrowserLib.py.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.class_LArBadChanBitPacking = cppyy.makeClass("LArBadChanBitPacking") |
Definition at line 138 of file LArBadChannelBrowserLib.py.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.class_LArBadChannel = cppyy.makeClass('LArBadChannel') |
Definition at line 136 of file LArBadChannelBrowserLib.py.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.db = self.dbSvc.openDatabase(dbstring,True) |
Definition at line 84 of file LArBadChannelBrowserLib.py.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.dbBrowserBadChan |
Definition at line 141 of file LArBadChannelBrowserLib.py.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.dbBrowserMissingFeb |
Definition at line 150 of file LArBadChannelBrowserLib.py.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.dbFolderName = "/LAR/BadChannels/BadChannels" |
Definition at line 119 of file LArBadChannelBrowserLib.py.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.dbSvc = cool.DatabaseSvcFactory.databaseService() |
Definition at line 77 of file LArBadChannelBrowserLib.py.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.det = PyAthena.py_svc('DetDescrCnvSvc') |
Definition at line 56 of file LArBadChannelBrowserLib.py.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.folderId = BAD_CHANNEL |
Definition at line 120 of file LArBadChannelBrowserLib.py.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.iNbCoolChannel = self.GetTagsAndIOVFromDatabase(self.dbFolderName) |
Definition at line 128 of file LArBadChannelBrowserLib.py.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.larCablingSvc = PyAthena.py_tool("LArCablingService") |
Definition at line 99 of file LArBadChannelBrowserLib.py.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 79 of file AthAlgorithm.h.
|
protectedinherited |
Pointer to self (from the python world)
Definition at line 96 of file PyAthenaAlg.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.msgSvc = PyAthena.py_svc('MessageSvc') |
Definition at line 67 of file LArBadChannelBrowserLib.py.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.nspace_LArBadChannelDBTools = LArBadChannelDBTools() |
Definition at line 134 of file LArBadChannelBrowserLib.py.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.onlineID = detStore.retrieve("LArOnlineID","LArOnlineID") |
Definition at line 95 of file LArBadChannelBrowserLib.py.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.selectedTag = listOfTags[iSelectedTag-1] |
Definition at line 163 of file LArBadChannelBrowserLib.py.
| python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.sg = PyAthena.py_svc('StoreGateSvc') |
note that we are using the python logging service and that the PyAthena.Alg base class has already initialized it for us
Definition at line 46 of file LArBadChannelBrowserLib.py.
| dict python.LArBadChannelBrowserLib.LArBadChannelBrowserAlg.tagIOVDict = {} |
Definition at line 167 of file LArBadChannelBrowserLib.py.