ATLAS Offline Software
PerfMonTestVectorAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 // Author: S.Binet<binet@cern.ch>
9 #ifndef PERFMONTESTS_PERFMONTESTVECTORALG_H
10 #define PERFMONTESTS_PERFMONTESTVECTORALG_H
11 
12 #include <map>
14 
15 namespace PerfMonTest {
16  class IHit;
17 class VectorAlg : public AthAlgorithm
18 {
19  public:
22 
23  virtual StatusCode execute() override;
24 
25  private:
27  Gaudi::Property<int> m_vectorSize{this, "VectorSize", 1024*1024, "the size of the Hit container"};
29  Gaudi::Property<int> m_2bReserved{this, "ToBeReserved", 1024*1024, "the number of elements to be reserved"};
31  Gaudi::Property<bool> m_mapIt{this, "MapIt", false, "add current hit to a map"};
32  std::map<int,IHit*> m_mixMap;
33 
34 };
35 } //> end namespace PerfMonTest
36 
37 #endif //> PERFMONTESTS_PERFMONTESTPVECTORALG_H
38 
PerfMonTest::VectorAlg::execute
virtual StatusCode execute() override
Definition: PerfMonTestVectorAlg.cxx:20
AthAlgorithm.h
PerfMonTest::VectorAlg::m_2bReserved
Gaudi::Property< int > m_2bReserved
Property to setup the amount of elements to reserve.
Definition: PerfMonTestVectorAlg.h:29
PerfMonTest::VectorAlg::m_vectorSize
Gaudi::Property< int > m_vectorSize
Property to setup the size of the Hit container.
Definition: PerfMonTestVectorAlg.h:27
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PerfMonTest
PerfMonTestPolyVectorAlg.h Example for the memory optimization tutorial.
Definition: Control/PerformanceMonitoring/PerfMonTests/src/Hit.h:7
AthAlgorithm
Definition: AthAlgorithm.h:47
PerfMonTest::VectorAlg::m_mixMap
std::map< int, IHit * > m_mixMap
Definition: PerfMonTestVectorAlg.h:32
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor:
PerfMonTest::VectorAlg
Definition: PerfMonTestVectorAlg.h:18
PerfMonTest::VectorAlg::m_mapIt
Gaudi::Property< bool > m_mapIt
Property to introduce some fragmentation.
Definition: PerfMonTestVectorAlg.h:31