ATLAS Offline Software
Loading...
Searching...
No Matches
PerfMonTestPolyVectorAlg.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_PERFMONTESTPOLYVECTORALG_H
10#define PERFMONTESTS_PERFMONTESTPOLYVECTORALG_H
11
12#include <map>
14
15namespace PerfMonTest {
16class IHit;
18{
19
20 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<int> m_mixture{this, "Mixture", 1, "equal to the ratio DHIT/FHIT - 1 (default 1 == all DHits)"};
33 Gaudi::Property<bool> m_mapIt{this, "MapIt", false, "add current hit to a map"};
34 std::map<int,IHit*> m_mixMap;
35};
36} //> end namespace PerfMonTest
37
38#endif //> PERFMONTESTS_PERFMONTESTPPOLYVECTORALG_H
39
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Property< int > m_vectorSize
Property to setup the size of the Hit container.
Gaudi::Property< bool > m_mapIt
Property to introduce some fragmentation.
Gaudi::Property< int > m_2bReserved
Property to setup the amount of elements to reserve.
virtual StatusCode execute() override
Gaudi::Property< int > m_mixture
Property to set DHIT/FHIT ratio.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
PerfMonTestPolyVectorAlg.h Example for the memory optimization tutorial.