 |
ATLAS Offline Software
|
Go to the documentation of this file.
9 #ifndef SGCOMPS_SGAUDSVC_H
10 #define SGCOMPS_SGAUDSVC_H
21 #include "GaudiKernel/ServiceHandle.h"
22 #include "GaudiKernel/IIncidentListener.h"
23 #include "GaudiKernel/IClassIDSvc.h"
43 ISGAudSvc, IIncidentListener>
48 SGAudSvc(
const std::string&
name, ISvcLocator* pSvcLocator );
58 virtual void handle(
const Incident& incident )
override;
62 const int& fnc,
const int& store_id)
override;
100 Gaudi::Property<std::string>
m_outFileName{
this,
"OutFileName",
"SGAudSvc.out",
101 "Name of the output file to hold SGAudSvc data"};
104 "Name of the output file to hold the full SG aud data"};
107 "Name of the output file to hold the summary output in json format"};
110 "Set to ignore any attempts to override current-alg"};
113 "Event number to start recording data"};
116 "Use CLID or DataObj name in Summary File"};
138 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.
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.
Gaudi::Property< std::string > m_allFileName
void getNobj(const std::string &name)
Gaudi::Property< int > m_startEvent
SGAudSvc()
Default constructor:
Gaudi::Property< bool > m_useCLID
virtual StatusCode initialize() override
Gaudi Service Implementation.
virtual StatusCode finalize() override
virtual void handle(const Incident &incident) override
incident service handle for EndEvent.
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.
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Property< std::string > m_outFileName
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.
Gaudi::Property< bool > m_ignoreFakeAlgs
Gaudi::Property< std::string > m_sumFileName
ServiceHandle< IAlgContextSvc > p_algCtxSvc
Pointer to the AlgContextScv.
This service gives a graphical representation of algorithms accessing StoreGate.
std::vector< std::string > m_vObj
Vector of accessed SG objects names.
std::string m_fakeCurrAlg