ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigGepPerf
TrigGepPerf
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>
11
#include "
AthenaKernel/CLASS_DEF.h
"
12
13
typedef
std::unique_ptr<std::map<unsigned int,Gep::GepCaloCell>>
pGepCellMap
;
14
15
namespace
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
29
pGepCellMap
getCellMap
()
const
{
30
return
std::make_unique<std::map<unsigned int,Gep::GepCaloCell>>(
m_cellMap
);
31
}
32
33
const
std::map<unsigned int, Gep::GepCaloCell>*
getCellMapPtr
()
const
{
34
return
&
m_cellMap
;
35
}
36
37
void
setNumberOfOverflowingFEB2s
(
int
n) {
m_nFeb2sInOverflow
= n; }
38
39
int
getNumberOfOverflowingFEB2s
() {
return
m_nFeb2sInOverflow
; }
40
41
private
:
42
43
std::map<unsigned int,Gep::GepCaloCell>
m_cellMap
;
44
int
m_nFeb2sInOverflow
= -1;
45
46
};
47
}
48
49
CLASS_DEF
(
Gep::GepCellMap
, 252505461, 1 )
50
51
#endif
//TRIGGEPPERF_GEPCELLMAP_H
CLASS_DEF.h
macros to associate a CLID to a type
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
GepCaloCell.h
pGepCellMap
std::unique_ptr< GepCellMap > pGepCellMap
Definition
IClusterMaker.h:17
Gep::GepCellMap
Definition
GepCellMap.h:17
Gep::GepCellMap::getNumberOfOverflowingFEB2s
int getNumberOfOverflowingFEB2s()
Definition
GepCellMap.h:39
Gep::GepCellMap::getCellMapPtr
const std::map< unsigned int, Gep::GepCaloCell > * getCellMapPtr() const
Definition
GepCellMap.h:33
Gep::GepCellMap::m_nFeb2sInOverflow
int m_nFeb2sInOverflow
Definition
GepCellMap.h:44
Gep::GepCellMap::setNumberOfOverflowingFEB2s
void setNumberOfOverflowingFEB2s(int n)
Definition
GepCellMap.h:37
Gep::GepCellMap::size
unsigned int size()
Definition
GepCellMap.h:25
Gep::GepCellMap::insert
void insert(unsigned int id, const Gep::GepCaloCell &cell)
Definition
GepCellMap.h:21
Gep::GepCellMap::getCellMap
pGepCellMap getCellMap() const
Definition
GepCellMap.h:29
Gep::GepCellMap::m_cellMap
std::map< unsigned int, Gep::GepCaloCell > m_cellMap
Definition
GepCellMap.h:43
Gep
Definition
BasicGepClusterMaker.h:13
Gep::GepCaloCell
Definition
GepCaloCell.h:13
Generated on
for ATLAS Offline Software by
1.17.0