ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
PerformanceMonitoring
PerfMonTests
src
PerfMonTestPolyVectorAlgWithArenas.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_PERFMONTESTPOLYVECTORALGWITHARENAS_H
10
#define PERFMONTESTS_PERFMONTESTPOLYVECTORALGWITHARENAS_H
11
12
#include <map>
13
#include "
AthenaBaseComps/AthAlgorithm.h
"
14
15
namespace
PerfMonTest
{
16
class
IHit
;
17
class
PolyVectorAlgWithArenas
:
public
AthAlgorithm
18
{
19
21
// Public methods:
23
public
:
24
using
AthAlgorithm::AthAlgorithm
;
25
26
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
27
28
private
:
30
Gaudi::Property<int>
m_vectorSize
{
this
,
"VectorSize"
, 1024 * 1024,
"the size of the Hit container"
};
32
Gaudi::Property<int>
m_2bReserved
{
this
,
"ToBeReserved"
, 1024 * 1024,
"the number of elements to be reserved"
};
34
Gaudi::Property<int>
m_mixture
{
this
,
"Mixture"
, 1,
"equal to the ratio DHIT/FHIT - 1 (default 1 == all DHits)"
};
36
Gaudi::Property<bool>
m_mapIt
{
this
,
"MapIt"
,
false
,
"add current hit to a map"
};
37
std::map<int,IHit*>
m_mixMap
;
38
39
};
40
}
//> end namespace PerfMonTest
41
42
#endif
//> PERFMONTESTS_PERFMONTESTPPOLYVECTORALG_H
43
AthAlgorithm.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
PerfMonTest::IHit
Definition
Control/PerformanceMonitoring/PerfMonTests/src/Hit.h:8
PerfMonTest::PolyVectorAlgWithArenas
Definition
PerfMonTestPolyVectorAlgWithArenas.h:18
PerfMonTest::PolyVectorAlgWithArenas::m_mixMap
std::map< int, IHit * > m_mixMap
Definition
PerfMonTestPolyVectorAlgWithArenas.h:37
PerfMonTest::PolyVectorAlgWithArenas::m_2bReserved
Gaudi::Property< int > m_2bReserved
Property to setup the amount of elements to reserve.
Definition
PerfMonTestPolyVectorAlgWithArenas.h:32
PerfMonTest::PolyVectorAlgWithArenas::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
PerfMonTestPolyVectorAlgWithArenas.cxx:18
PerfMonTest::PolyVectorAlgWithArenas::m_mixture
Gaudi::Property< int > m_mixture
Property to set DHIT/FHIT ratio.
Definition
PerfMonTestPolyVectorAlgWithArenas.h:34
PerfMonTest::PolyVectorAlgWithArenas::m_mapIt
Gaudi::Property< bool > m_mapIt
Property to introduce some fragmentation.
Definition
PerfMonTestPolyVectorAlgWithArenas.h:36
PerfMonTest::PolyVectorAlgWithArenas::m_vectorSize
Gaudi::Property< int > m_vectorSize
Property to setup the size of the Hit container.
Definition
PerfMonTestPolyVectorAlgWithArenas.h:30
PerfMonTest::PolyVectorAlgWithArenas::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
PerfMonTest
PerfMonTestPolyVectorAlg.h Example for the memory optimization tutorial.
Definition
Control/PerformanceMonitoring/PerfMonTests/src/Hit.h:7
Generated on
for ATLAS Offline Software by
1.17.0