ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArRecUtils
LArRecUtils
MakeLArCellFromRaw.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef LARCELLREC_MAKELARCELLFROMRAW_H
6
#define LARCELLREC_MAKELARCELLFROMRAW_H
7
14
15
16
#include "
LArRecEvent/LArCell.h
"
17
#include "
LArIdentifier/LArOnlineID.h
"
18
#include "
CaloUtils/CaloCellCorrection.h
"
19
#include "
CaloIdentifier/CaloGain.h
"
20
#include "
AthAllocators/DataPool.h
"
21
22
#include <map>
23
#include <vector>
24
class
CaloDetDescrElement
;
25
26
class
LArRoIMap
;
27
class
LArOnOffIdMapping
;
28
class
CaloDetDescrManager
;
29
30
class
MakeLArCellFromRaw
31
{
32
public
:
33
34
struct
CellInfo
35
{
36
Identifier
id
;
37
double
eta
= 0;
38
double
phi
= 0;
39
double
x
= 0;
40
double
y
= 0;
41
double
z
= 0;
42
bool
fcal
=
false
;
43
unsigned
int
tt
= 0;
44
const
CaloDetDescrElement
*
elem
=
nullptr
;
45
double
eCorr
= 0;
46
};
47
50
MakeLArCellFromRaw
();
51
54
~MakeLArCellFromRaw
();
55
56
59
void
initialize
(
const
LArRoIMap
& roiMap,
60
const
LArOnOffIdMapping
& onOffMap,
61
const
CaloDetDescrManager
& man,
62
const
std::vector<const CaloCellCorrection*>* pCorr,
unsigned
int
poolMaxSize =190000);
63
66
LArCell
*
getLArCell
(
unsigned
int
feb,
unsigned
int
chan,
67
int
e,
int
t,
int
q ,
CaloGain::CaloGain
caloGain,
unsigned
int
& ttId)
const
;
68
69
LArCell
*
getLArCell
(
const
HWIdentifier
&
id
,
int
e,
int
t,
int
q,
70
CaloGain::CaloGain
g)
const
;
71
72
//FIXME will disappear
73
LArCell
*
getLArCell
(
unsigned
int
feb,
unsigned
int
chan,
74
int
e,
int
t,
int
q ,
unsigned
int
& ttId)
const
;
75
//FIXME will disappear
76
LArCell
*
getLArCell
(
const
HWIdentifier
&
id
,
int
e,
int
t,
int
q )
const
;
77
78
79
void
setThreshold
(
float
t);
80
81
private
:
82
83
// Find correction factor for this LArCell
84
double
getCorrection
(
LArCell
* cell,
85
const
std::vector<const CaloCellCorrection*>& vCorr,
86
const
EventContext& ctx)
const
;
87
88
// cells in a FEB stored in a vector
89
typedef
std::vector<CellInfo>
CELL_VEC
;
90
91
// all FEBs in a map.
92
typedef
std::map<unsigned int, CELL_VEC >
CELL_MAP
;
93
94
CELL_MAP
m_cellMap
;
95
96
size_t
m_poolMaxSize
;
97
IMessageSvc *
m_msgSvc
;
98
99
const
LArOnlineID
*
m_onlineID
;
100
101
float
m_ethreshold
;
// common threshold in MeV
102
103
};
104
105
#endif
CaloCellCorrection.h
CaloGain.h
DataPool.h
LArCell.h
LArOnlineID.h
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell.
Definition
Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
CaloDetDescrManager
This class provides the client interface for accessing the detector description information common to...
Definition
CaloDetDescrManager.h:469
HWIdentifier
Definition
HWIdentifier.h:13
LArCell
Data object for LAr calorimeter readout cell.
Definition
LArCell.h:53
LArOnOffIdMapping
Definition
LArOnOffIdMapping.h:20
LArOnlineID
Definition
LArOnlineID.h:21
LArRoIMap
Mapping between calorimeter trigger id to offline/online Identifier.
Definition
LArRoIMap.h:31
MakeLArCellFromRaw::CELL_MAP
std::map< unsigned int, CELL_VEC > CELL_MAP
Definition
MakeLArCellFromRaw.h:92
MakeLArCellFromRaw::MakeLArCellFromRaw
MakeLArCellFromRaw()
constructor
Definition
MakeLArCellFromRaw.cxx:31
MakeLArCellFromRaw::~MakeLArCellFromRaw
~MakeLArCellFromRaw()
destructor
Definition
MakeLArCellFromRaw.cxx:40
MakeLArCellFromRaw::setThreshold
void setThreshold(float t)
Definition
MakeLArCellFromRaw.cxx:341
MakeLArCellFromRaw::m_onlineID
const LArOnlineID * m_onlineID
Definition
MakeLArCellFromRaw.h:99
MakeLArCellFromRaw::getCorrection
double getCorrection(LArCell *cell, const std::vector< const CaloCellCorrection * > &vCorr, const EventContext &ctx) const
Definition
MakeLArCellFromRaw.cxx:321
MakeLArCellFromRaw::getLArCell
LArCell * getLArCell(unsigned int feb, unsigned int chan, int e, int t, int q, CaloGain::CaloGain caloGain, unsigned int &ttId) const
access by Identifier
Definition
MakeLArCellFromRaw.cxx:272
MakeLArCellFromRaw::m_msgSvc
IMessageSvc * m_msgSvc
Definition
MakeLArCellFromRaw.h:97
MakeLArCellFromRaw::CELL_VEC
std::vector< CellInfo > CELL_VEC
Definition
MakeLArCellFromRaw.h:89
MakeLArCellFromRaw::m_ethreshold
float m_ethreshold
Definition
MakeLArCellFromRaw.h:101
MakeLArCellFromRaw::m_cellMap
CELL_MAP m_cellMap
Definition
MakeLArCellFromRaw.h:94
MakeLArCellFromRaw::m_poolMaxSize
size_t m_poolMaxSize
Definition
MakeLArCellFromRaw.h:96
CaloGain::CaloGain
CaloGain
Definition
CaloGain.h:11
Identifier
Definition
IdentifierFieldParser.cxx:14
initialize
void initialize()
Definition
run_EoverP.cxx:894
MakeLArCellFromRaw::CellInfo
Definition
MakeLArCellFromRaw.h:35
MakeLArCellFromRaw::CellInfo::eCorr
double eCorr
Definition
MakeLArCellFromRaw.h:45
MakeLArCellFromRaw::CellInfo::elem
const CaloDetDescrElement * elem
Definition
MakeLArCellFromRaw.h:44
MakeLArCellFromRaw::CellInfo::z
double z
Definition
MakeLArCellFromRaw.h:41
MakeLArCellFromRaw::CellInfo::x
double x
Definition
MakeLArCellFromRaw.h:39
MakeLArCellFromRaw::CellInfo::fcal
bool fcal
Definition
MakeLArCellFromRaw.h:42
MakeLArCellFromRaw::CellInfo::y
double y
Definition
MakeLArCellFromRaw.h:40
MakeLArCellFromRaw::CellInfo::tt
unsigned int tt
Definition
MakeLArCellFromRaw.h:43
MakeLArCellFromRaw::CellInfo::eta
double eta
Definition
MakeLArCellFromRaw.h:37
MakeLArCellFromRaw::CellInfo::phi
double phi
Definition
MakeLArCellFromRaw.h:38
MakeLArCellFromRaw::CellInfo::id
Identifier id
Definition
MakeLArCellFromRaw.h:36
Generated on
for ATLAS Offline Software by
1.17.0