|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef SGMONITORING_SGAUDSVC_H
12 #define SGMONITORING_SGAUDSVC_H
24 #include "GaudiKernel/ServiceHandle.h"
25 #include "GaudiKernel/ToolHandle.h"
26 #include "GaudiKernel/IIncidentListener.h"
27 #include "GaudiKernel/MsgStream.h"
28 #include "GaudiKernel/Algorithm.h"
29 #include "GaudiKernel/IClassIDSvc.h"
40 ISGAudSvc, IIncidentListener>
45 SGAudSvc(
const std::string&
name, ISvcLocator* pSvcLocator );
58 virtual void handle(
const Incident& incident )
override;
62 const int& fnc,
const int& store_id)
override;
133 typedef std::map<std::string, std::set<std::string> >
DataMap;
bool SGGetCurrentAlg()
Gets name of curently running algorithm from AlgContextSvc.
ServiceHandle< IClassIDSvc > m_pCID
std::map< int, int > m_timesWritten
map counting Writes of each object by each algorithm.
std::string m_sumFileName
void monitor()
just counts events. called at EndEvent incident
void SGAudRECORD(std::string SGobject)
virtual void clearFakeCurrentAlg() override
For implementing custom increased granularity auditing of for instance tools.
void getNobj(const std::string &name)
SGAudSvc()
Default constructor:
virtual StatusCode initialize() override
Gaudi Service Implementation.
bool m_useCLID
Whether to use CLID or Data Obj Name in JSON output file.
virtual StatusCode finalize() override
virtual void handle(const Incident &incident) override
incident service handle for EndEvent.
bool m_ignoreFakeAlgs
Whether to ignore fake current algs.
virtual void setFakeCurrentAlg(const std::string &) override
For implementing custom increased granularity auditing of for instance tools.
std::map< std::string, std::set< std::string > > DataMap
std::map< int, int > m_timesRead
map counting Reads of each object by each algorithm.
std::string m_outFileName
Name of the output file.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual void SGAudit(const std::string &key, const CLID &id, const int &fnc, const int &store_id) override
void SGAudRETRIEVE(std::string SGobject)
std::vector< std::string > m_vAlg
Vector of names of algorithms accessing SG.
uint32_t CLID
The Class ID type.
virtual ~SGAudSvc()
Destructor:
std::string m_allFileName
MsgStream m_msg
MsgStream for talking with the outside world.
ServiceHandle< IAlgContextSvc > p_algCtxSvc
Pointer to the AlgContextScv.
std::vector< std::string > m_vObj
Vector of accessed SG objects names.
std::string m_fakeCurrAlg