ATLAS Offline Software
StreamAuditorTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // StreamAuditorTool.h, (c) ATLAS Detector software
8 
9 #ifndef DERIVATIONFRAMEWORK_STREAMAUDITORTOOL_H
10 #define DERIVATIONFRAMEWORK_STREAMAUDITORTOOL_H 1
11 
12 #include<string>
13 #include<vector>
14 
15 // Gaudi & Athena basics
17 #include "GaudiKernel/ServiceHandle.h"
18 #include "GaudiKernel/IIncidentListener.h"
19 
20 namespace DerivationFramework {
21 
22  static const InterfaceID IID_StreamAuditorTool("StreamAuditorTool", 1, 0);
23  class StreamAuditorTool : public AthAlgTool,
24  virtual public IIncidentListener {
25 
26  public:
28  StreamAuditorTool( const std::string& t, const std::string& n, const IInterface* p );
29 
32 
33  // Athena algtool's Hooks
36  static const InterfaceID& interfaceID() { return IID_StreamAuditorTool;};
37 
39  void registerAlgorithmName(const std::string&);
40  void eventAccepted(const std::string&);
41 
42  // Incident handle
43  void handle(const Incident& inc);
44 
45  private:
47  std::map<std::string,unsigned int> m_algNames;
48  std::map<std::pair<std::string,std::string> , unsigned int> m_overlapMap;
49  unsigned int m_totalEvents = 0U;
50  //m_algCounts,
51  //m_overlapCounts,
52 
53 
54 
55  };
56 
57 }
58 
59 
60 #endif
DerivationFramework::StreamAuditorTool::m_totalEvents
unsigned int m_totalEvents
Definition: StreamAuditorTool.h:49
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
DerivationFramework::StreamAuditorTool::eventAccepted
void eventAccepted(const std::string &)
Definition: StreamAuditorTool.cxx:88
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
DerivationFramework::StreamAuditorTool::m_overlapMap
std::map< std::pair< std::string, std::string >, unsigned int > m_overlapMap
Definition: StreamAuditorTool.h:48
DerivationFramework::StreamAuditorTool::~StreamAuditorTool
~StreamAuditorTool()
Destructor.
Definition: StreamAuditorTool.cxx:33
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
DerivationFramework::StreamAuditorTool::handle
void handle(const Incident &inc)
Definition: StreamAuditorTool.cxx:98
DerivationFramework::StreamAuditorTool::initialize
StatusCode initialize()
Definition: StreamAuditorTool.cxx:37
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::StreamAuditorTool::m_incidentSvc
ServiceHandle< IIncidentSvc > m_incidentSvc
Definition: StreamAuditorTool.h:46
DerivationFramework::StreamAuditorTool::finalize
StatusCode finalize()
Definition: StreamAuditorTool.cxx:52
DerivationFramework::StreamAuditorTool::interfaceID
static const InterfaceID & interfaceID()
Definition: StreamAuditorTool.h:36
DerivationFramework::StreamAuditorTool::m_algNames
std::map< std::string, unsigned int > m_algNames
Definition: StreamAuditorTool.h:47
DerivationFramework::StreamAuditorTool
Definition: StreamAuditorTool.h:24
DerivationFramework::StreamAuditorTool::registerAlgorithmName
void registerAlgorithmName(const std::string &)
Register name of an algorithm.
Definition: StreamAuditorTool.cxx:68
DerivationFramework::StreamAuditorTool::StreamAuditorTool
StreamAuditorTool(const std::string &t, const std::string &n, const IInterface *p)
Constructor with parameters.
Definition: StreamAuditorTool.cxx:20
AthAlgTool
Definition: AthAlgTool.h:26
ServiceHandle< IIncidentSvc >