ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArDigitization
LArDigitization
LArHitEMap.h
Go to the documentation of this file.
1
//Dear emcas this is -*-c++-*--
2
/*
3
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
4
*/
5
6
#ifndef LARDIGITIZATION_LARHITEMAP_H
7
#define LARDIGITIZATION_LARHITEMAP_H
8
//
9
#include <utility>
10
#include <vector>
11
12
#include "
LArDigitization/LArHitList.h
"
13
#include "
CaloDetDescr/CaloDetDescrManager.h
"
14
#include "
LArRawEvent/LArDigit.h
"
15
#include "
LArCabling/LArOnOffIdMapping.h
"
16
#include "
AthenaKernel/CLASS_DEF.h
"
17
18
19
class
McEventCollection
;
20
21
class
LArHitEMap
22
{
23
24
public
:
25
typedef
std::vector<const LArDigit*>
DIGMAP
;
26
27
private
:
28
std::vector<LArHitList>
m_emap
;
29
DIGMAP
m_digmap
;
30
const
LArOnOffIdMapping
*
m_cabling
;
31
const
CaloCell_ID
*
m_calocell_id
;
32
const
CaloDetDescrManager
*
m_cddMgr
;
33
34
public
:
35
LArHitEMap
() =
delete
;
36
LArHitEMap
(
const
LArOnOffIdMapping
* cabling,
const
CaloCell_ID
* cellid,
const
CaloDetDescrManager
* cddMgr,
bool
digit=
false
);
37
~LArHitEMap
() =
default
;
38
bool
AddEnergy
(
const
IdentifierHash
index
,
const
float
energy,
const
float
time);
39
bool
AddEnergy
(
const
Identifier
cellid,
const
float
energy,
const
float
time);
40
bool
BuildWindows
(
const
McEventCollection
* mcCollptr,
41
float
deta,
float
dphi,
float
ptmin);
42
size_t
GetNbCells
(
void
)
const
{
return
m_emap
.size(); }
43
inline
const
LArHitList
&
GetCell
(
const
unsigned
int
index
)
const
{
return
m_emap
[
index
];} ;
44
inline
const
std::vector<std::pair<float,float> >&
GetTimeE
(
const
IdentifierHash
index
)
const
{
return
m_emap
[
index
].getData();}
45
46
47
bool
AddDigit
(
const
LArDigit
* digit);
48
inline
const
LArDigit
*
GetDigit
(
unsigned
int
index
)
const
{
49
if
(
index
<
m_digmap
.size())
return
m_digmap
[
index
];
50
else
return
0;
51
}
52
53
};
54
55
CLASS_DEF
(
LArHitEMap
, 103846231 , 1 )
56
#endif
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
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
LArDigit.h
LArHitList.h
LArOnOffIdMapping.h
CaloCell_ID
Helper class for offline cell identifiers.
Definition
CaloCell_ID.h:34
CaloDetDescrManager
This class provides the client interface for accessing the detector description information common to...
Definition
CaloDetDescrManager.h:469
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
LArDigit
Liquid Argon digit base class.
Definition
LArDigit.h:25
LArHitEMap
Definition
LArHitEMap.h:22
LArHitEMap::BuildWindows
bool BuildWindows(const McEventCollection *mcCollptr, float deta, float dphi, float ptmin)
Definition
LArHitEMap.cxx:64
LArHitEMap::m_emap
std::vector< LArHitList > m_emap
Definition
LArHitEMap.h:28
LArHitEMap::GetTimeE
const std::vector< std::pair< float, float > > & GetTimeE(const IdentifierHash index) const
Definition
LArHitEMap.h:44
LArHitEMap::AddEnergy
bool AddEnergy(const IdentifierHash index, const float energy, const float time)
Definition
LArHitEMap.cxx:38
LArHitEMap::AddDigit
bool AddDigit(const LArDigit *digit)
Definition
LArHitEMap.cxx:50
LArHitEMap::m_calocell_id
const CaloCell_ID * m_calocell_id
Definition
LArHitEMap.h:31
LArHitEMap::~LArHitEMap
~LArHitEMap()=default
LArHitEMap::GetNbCells
size_t GetNbCells(void) const
Definition
LArHitEMap.h:42
LArHitEMap::GetCell
const LArHitList & GetCell(const unsigned int index) const
Definition
LArHitEMap.h:43
LArHitEMap::GetDigit
const LArDigit * GetDigit(unsigned int index) const
Definition
LArHitEMap.h:48
LArHitEMap::LArHitEMap
LArHitEMap()=delete
LArHitEMap::m_cabling
const LArOnOffIdMapping * m_cabling
Definition
LArHitEMap.h:30
LArHitEMap::m_cddMgr
const CaloDetDescrManager * m_cddMgr
Definition
LArHitEMap.h:32
LArHitEMap::DIGMAP
std::vector< const LArDigit * > DIGMAP
Definition
LArHitEMap.h:25
LArHitEMap::m_digmap
DIGMAP m_digmap
Definition
LArHitEMap.h:29
LArHitList
Definition
LArHitList.h:9
LArOnOffIdMapping
Definition
LArOnOffIdMapping.h:20
McEventCollection
This defines the McEventCollection, which is really just an ObjectVector of McEvent objectsFile: Gene...
Definition
McEventCollection.h:31
Identifier
Definition
IdentifierFieldParser.cxx:14
index
Definition
index.py:1
Generated on
for ATLAS Offline Software by
1.17.0