ATLAS Offline Software
Loading...
Searching...
No Matches
GepCellMap.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4
5#ifndef TRIGGEPPERF_GEPCELLMAP_H
6#define TRIGGEPPERF_GEPCELLMAP_H
7
8#include "src/GepCaloCell.h"
9#include <map>
10#include <memory>
12
13typedef std::unique_ptr<std::map<unsigned int,Gep::GepCaloCell>> pGepCellMap;
14
15namespace Gep{
16
17 class GepCellMap {
18
19 public:
20
21 void insert(unsigned int id, const Gep::GepCaloCell & cell) {
22 m_cellMap.emplace(id, cell);
23 }
24
25 unsigned int size() {
26 return m_cellMap.size();
27 }
28
30 return std::make_unique<std::map<unsigned int,Gep::GepCaloCell>>(m_cellMap);
31 }
32
34
36
37 private:
38
39 std::map<unsigned int,Gep::GepCaloCell> m_cellMap;
41
42 };
43}
44
45CLASS_DEF(Gep::GepCellMap, 252505461, 1 )
46
47#endif //TRIGGEPPERF_GEPCELLMAP_H
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
std::unique_ptr< GepCellMap > pGepCellMap
pGepCellMap getCellMap()
Definition GepCellMap.h:29
int getNumberOfOverflowingFEB2s()
Definition GepCellMap.h:35
void setNumberOfOverflowingFEB2s(int n)
Definition GepCellMap.h:33
unsigned int size()
Definition GepCellMap.h:25
void insert(unsigned int id, const Gep::GepCaloCell &cell)
Definition GepCellMap.h:21
std::map< unsigned int, Gep::GepCaloCell > m_cellMap
Definition GepCellMap.h:39