ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloConditions
src
CaloCellPedShift.cxx
Go to the documentation of this file.
1
#include "
CaloConditions/CaloCellPedShift.h
"
2
#include "
CaloIdentifier/CaloCell_ID.h
"
3
4
CaloCellPedShift::CaloCellPedShift
(
const
CaloCell_ID
* cellid) {
5
6
IdentifierHash
tileMinHash, tileMaxHash;
7
cellid->
calo_cell_hash_range
(
CaloCell_ID::TILE
,tileMinHash,tileMaxHash);
8
9
for
(
auto
&
vec
:
m_larValues
) {
10
vec
.resize(tileMinHash,0.0);
11
}
12
13
for
(
auto
&
vec
:
m_tileValues
) {
14
vec
.resize(tileMaxHash-tileMinHash,0.0);
15
}
16
17
m_tileMinHash
=tileMinHash;
18
}
19
20
//Setter
21
void
CaloCellPedShift::setPedShift
(
const
IdentifierHash
hash,
const
int
gain,
const
float
value) {
22
if
(hash<
m_tileMinHash
) {
23
m_larValues
[gain][hash]=value;
24
}
25
else
{
26
m_tileValues
[gain][hash-
m_tileMinHash
]=value;
27
}
28
}
CaloCellPedShift.h
CaloCell_ID.h
vec
std::vector< size_t > vec
Definition
CombinationsGeneratorTest.cxx:9
CaloCellPedShift::m_tileMinHash
size_t m_tileMinHash
Definition
CaloCellPedShift.h:35
CaloCellPedShift::m_larValues
std::array< std::vector< float >, 3 > m_larValues
Definition
CaloCellPedShift.h:32
CaloCellPedShift::CaloCellPedShift
CaloCellPedShift(const CaloCell_ID *cellid)
Definition
CaloCellPedShift.cxx:4
CaloCellPedShift::m_tileValues
std::array< std::vector< float >, 4 > m_tileValues
Definition
CaloCellPedShift.h:34
CaloCellPedShift::setPedShift
void setPedShift(const IdentifierHash hash, const int gain, const float value)
Definition
CaloCellPedShift.cxx:21
CaloCell_Base_ID::TILE
@ TILE
Definition
CaloCell_Base_ID.h:45
CaloCell_Base_ID::calo_cell_hash_range
void calo_cell_hash_range(const Identifier id, IdentifierHash &caloCellMin, IdentifierHash &caloCellMax) const
to loop on 'global' cell hashes of one sub-calorimeter alone
CaloCell_ID
Helper class for offline cell identifiers.
Definition
CaloCell_ID.h:34
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
Generated on
for ATLAS Offline Software by
1.17.0