ATLAS Offline Software
ExampleMonitorAlgorithm.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef EXAMPLEMONITORALGORITHM_H
6 #define EXAMPLEMONITORALGORITHM_H
7 
10 
11 #include "TRandom3.h"
12 
14 public:
15  ExampleMonitorAlgorithm( const std::string& name, ISvcLocator* pSvcLocator );
16  virtual ~ExampleMonitorAlgorithm();
17  virtual StatusCode initialize() override;
18  virtual StatusCode fillHistograms( const EventContext& ctx ) const override;
19 private:
20  Gaudi::Property<bool> m_doRandom {this,"RandomHist",false};
21  std::vector<int> m_abGroups1;
22  std::vector<std::vector<int>> m_abGroups2;
23  std::map<std::string,int> m_cGroups1;
24  std::map<std::string,std::map<std::string,int>> m_cGroups2;
25 };
26 #endif
ExampleMonitorAlgorithm::~ExampleMonitorAlgorithm
virtual ~ExampleMonitorAlgorithm()
Definition: ExampleMonitorAlgorithm.cxx:13
ExampleMonitorAlgorithm::m_abGroups2
std::vector< std::vector< int > > m_abGroups2
Definition: ExampleMonitorAlgorithm.h:22
ExampleMonitorAlgorithm::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Definition: ExampleMonitorAlgorithm.cxx:32
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition: AthMonitorAlgorithm.h:36
ExampleMonitorAlgorithm::m_abGroups1
std::vector< int > m_abGroups1
Definition: ExampleMonitorAlgorithm.h:21
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMonitorAlgorithm.h
ExampleMonitorAlgorithm::m_cGroups1
std::map< std::string, int > m_cGroups1
Definition: ExampleMonitorAlgorithm.h:23
Monitored.h
Header file to be included by clients of the Monitored infrastructure.
ExampleMonitorAlgorithm::m_doRandom
Gaudi::Property< bool > m_doRandom
Definition: ExampleMonitorAlgorithm.h:20
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ExampleMonitorAlgorithm::initialize
virtual StatusCode initialize() override
initialize
Definition: ExampleMonitorAlgorithm.cxx:16
ExampleMonitorAlgorithm::m_cGroups2
std::map< std::string, std::map< std::string, int > > m_cGroups2
Definition: ExampleMonitorAlgorithm.h:24
ExampleMonitorAlgorithm::ExampleMonitorAlgorithm
ExampleMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Definition: ExampleMonitorAlgorithm.cxx:7
ExampleMonitorAlgorithm
Definition: ExampleMonitorAlgorithm.h:13