![]() |
ATLAS Offline Software
|
An Algorithm that manages a set of modules, each inheriting from ManagedMonitorToolBase, by setting common configuration variables and organizing the output data. More...
#include <AthenaMonManager.h>
Classes | |
| class | Imp |
Public Types | |
| enum | Environment_t { user = 0 , noOutput , online , tier0 , tier0Raw , tier0ESD , AOD , altprod } |
| An enumeration of the different types of running environment the monitoring application may be in. More... | |
| enum | DataType_t { userDefined = 0 , monteCarlo , collisions , cosmics , heavyIonCollisions } |
| An enumeration of the different types of data the monitoring application may be running over. More... | |
Public Member Functions | |
| AthenaMonManager (const std::string &name, ISvcLocator *pSvcLocator) | |
| virtual | ~AthenaMonManager () |
| bool | forkedProcess () |
| virtual StatusCode | initialize () override |
| virtual StatusCode | execute (const EventContext &ctx) override |
| Execute method. | |
| virtual StatusCode | start () override |
| virtual StatusCode | stop () override |
| virtual std::string | fileKey () const |
| virtual void | passOwnership (TObject *h, const std::string &key) |
| Pass ownership of a TObject to this manager so that it will be deleted appropriately. | |
| virtual void | writeAndDelete (const std::string &key) |
| If the TObject is owned by this manager, its Write() method is called and it is deleted. | |
| virtual StatusCode | sysInitialize () override |
| Override sysInitialize. | |
| virtual bool | isClonable () const override |
| Specify if the algorithm is clonable. | |
| virtual StatusCode | sysExecute (const EventContext &ctx) override |
| Execute an algorithm. | |
| virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. | |
| virtual bool | filterPassed (const EventContext &ctx) const |
| Get filter decision: | |
| virtual void | setFilterPassed (bool state, const EventContext &ctx) const |
| Set filter decision: | |
| 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 |
Static Public Member Functions | |
| static Environment_t | envStringToEnum (const std::string &str) |
| Converts a string to an Environment_t of the same name. | |
| static DataType_t | dataTypeStringToEnum (const std::string &str) |
| Converts a string to a DataType_t of the same name. | |
| static Environment_t | environment () |
| Returns the running environment of the monitoring application to help ManagedMonitorToolBase objects determine which histograms to produce. | |
| static DataType_t | dataType () |
| Returns the data type that the monitoring application is running over to help ManagedMonitorToolBase objects determine which histograms to produce. | |
| static unsigned int | lumiBlockNumber () |
| static unsigned int | runNumber () |
| static unsigned int | fillNumber () |
| static unsigned int | getLBsLowStat () |
| static unsigned int | getLBsMedStat () |
| static unsigned int | getLBsHigStat () |
Protected Member Functions | |
| virtual bool | isReEntrant () const override final |
| Legacy algorithms are not thread-safe. | |
| 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 | |
| ToolHandleArray< IMonitorToolBase > | m_monTools |
| ServiceHandle< ITHistSvc > | m_THistSvc |
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 | |
| Imp * | m_d |
| DataObjIDColl | m_extendedExtraObjects |
| Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. | |
| 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 |
An Algorithm that manages a set of modules, each inheriting from ManagedMonitorToolBase, by setting common configuration variables and organizing the output data.
It provides all the functionality and behaviour of AthenaMon.
Definition at line 34 of file AthenaMonManager.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
An enumeration of the different types of data the monitoring application may be running over.
This can be used to select which histograms to produce, e.g., to prevent the production of colliding-beam histograms when running on cosmic-ray data. Strings of the same names may be given as jobOptions.
| Enumerator | |
|---|---|
| userDefined | |
| monteCarlo | |
| collisions | |
| cosmics | |
| heavyIonCollisions | |
Definition at line 58 of file AthenaMonManager.h.
An enumeration of the different types of running environment the monitoring application may be in.
The running environment may be used to select which histograms are produced, and where they are located in the output. For example, the output paths of the histograms are different for the "user", "online" and the various offline flags. The 'tier0Raw' and 'tier0ESD' are used to select sets of histograms for production either during the RAW --> ESD transform or during the ESD --> AOD transform (but not both!) Strings of the same names may be given as jobOptions.
| Enumerator | |
|---|---|
| user | |
| noOutput | |
| online | |
| tier0 | |
| tier0Raw | |
| tier0ESD | |
| AOD | |
| altprod | |
Definition at line 49 of file AthenaMonManager.h.
| AthenaMonManager::AthenaMonManager | ( | const std::string & | name, |
| ISvcLocator * | pSvcLocator ) |
Definition at line 191 of file AthenaMonManager.cxx.
|
virtual |
Definition at line 217 of file AthenaMonManager.cxx.
|
static |
Returns the data type that the monitoring application is running over to help ManagedMonitorToolBase objects determine which histograms to produce.
Definition at line 311 of file AthenaMonManager.cxx.
|
static |
Converts a string to a DataType_t of the same name.
Definition at line 264 of file AthenaMonManager.cxx.
|
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.
|
static |
Returns the running environment of the monitoring application to help ManagedMonitorToolBase objects determine which histograms to produce.
Definition at line 294 of file AthenaMonManager.cxx.
|
static |
Converts a string to an Environment_t of the same name.
static method (shared by all AthenaMonManager instances during run-time)
Definition at line 228 of file AthenaMonManager.cxx.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
overridevirtual |
Execute method.
Implements AthAlgorithm.
Definition at line 465 of file AthenaMonManager.cxx.
|
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 89 of file AthCommonAlgorithm.cxx.
|
virtual |
Definition at line 626 of file AthenaMonManager.cxx.
|
static |
Definition at line 349 of file AthenaMonManager.cxx.
|
inlinevirtualinherited |
Get filter decision:
Definition at line 93 of file AthCommonAlgorithm.h.
| bool AthenaMonManager::forkedProcess | ( | ) |
Definition at line 318 of file AthenaMonManager.cxx.
|
static |
Definition at line 306 of file AthenaMonManager.cxx.
|
static |
Definition at line 300 of file AthenaMonManager.cxx.
|
static |
Definition at line 303 of file AthenaMonManager.cxx.
|
overridevirtual |
Definition at line 357 of file AthenaMonManager.cxx.
|
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.
|
inlineoverridevirtualinherited |
Specify if the algorithm is clonable.
Only relevant for non-reentrant algorithms. Actual number of clones needs to be set via the "Cardinality" property.
Reimplemented in AFP_DigiTop, AlgB, AlgT, BCM_Digitization, CscDigitBuilder, CscDigitToCscRDO, G4AtlasAlg, G4RunAlg, HGTD_Digitization, HiveAlgBase, InDet::GNNSeedingTrackMaker, InDet::SCT_Clusterization, InDet::SiSPGNNTrackMaker, InDet::SiSPSeededTrackFinder, InDet::SiTrackerSpacePointFinder, ISF::SimKernelMT, ITk::StripDigitization, ITkPixelCablingAlg, ITkStripCablingAlg, LArHitEMapMaker, LArTTL1Maker, LUCID_DigiTop, LVL1::L1TopoSimulation, MergeCalibHits, MergeGenericMuonSimHitColl, MergeHijingPars, MergeMcEventCollection, MergeTrackRecordCollection, MergeTruthJets, MergeTruthParticles, MuonDigitizer, PileUpMTAlg, PixelDigitization, RoIBResultToxAOD, SCT_ByteStreamErrorsTestAlg, SCT_CablingCondAlgFromCoraCool, SCT_CablingCondAlgFromText, SCT_ConditionsParameterTestAlg, SCT_ConditionsSummaryTestAlg, SCT_ConfigurationConditionsTestAlg, SCT_Digitization, SCT_FlaggedConditionTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_PrepDataToxAOD, SCT_RawDataToxAOD, SCT_ReadCalibChipDataTestAlg, SCT_ReadCalibDataTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_SiliconConditionsTestAlg, SCT_StripVetoTestAlg, SCT_TdaqEnabledTestAlg, SCT_TestCablingAlg, SCTEventFlagWriter, SCTRawDataProvider, SCTSiLorentzAngleTestAlg, SCTSiPropertiesTestAlg, SGInputLoader, Simulation::BeamEffectsAlg, TileHitVecToCnt, TileMuonFitter, TilePulseForTileMuonReceiver, TileRawChannelMaker, TRTDigitization, and ZDC_DigiTop.
Definition at line 68 of file AthCommonAlgorithm.h.
|
inlinefinaloverrideprotectedvirtualinherited |
Legacy algorithms are not thread-safe.
Definition at line 47 of file AthAlgorithm.h.
|
static |
Definition at line 325 of file AthenaMonManager.cxx.
|
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.
|
virtual |
Pass ownership of a TObject to this manager so that it will be deleted appropriately.
Definition at line 634 of file AthenaMonManager.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.
|
static |
Definition at line 337 of file AthenaMonManager.cxx.
|
inlinevirtualinherited |
Set filter decision:
Reimplemented in AthFilterAlgorithm.
Definition at line 99 of file AthCommonAlgorithm.h.
|
overridevirtual |
Definition at line 590 of file AthenaMonManager.cxx.
|
overridevirtual |
Definition at line 542 of file AthenaMonManager.cxx.
|
overridevirtualinherited |
Execute an algorithm.
We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.
Reimplemented in AthAnalysisAlgorithm.
Definition at line 80 of file AthCommonAlgorithm.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 AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.
Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, AthHistogramAlgorithm, HypoBase, InputMakerBase, and PyAthena::Alg.
Definition at line 60 of file AthCommonAlgorithm.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.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
virtual |
If the TObject is owned by this manager, its Write() method is called and it is deleted.
Definition at line 642 of file AthenaMonManager.cxx.
|
private |
Definition at line 122 of file AthenaMonManager.h.
|
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 |
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 108 of file AthCommonAlgorithm.h.
|
protected |
Definition at line 115 of file AthenaMonManager.h.
|
protected |
Definition at line 117 of file AthenaMonManager.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.