ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
Global
GlobalSimulation
GlobalSimulation
Tower.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 GLOBALSIM_TOWER_H
6
#define GLOBALSIM_TOWER_H
7
8
#include "
BitSpec.h
"
9
10
namespace
GlobalSim
{
11
12
namespace
v1
{
13
class
Tower
:
public
BitSpec
<Tower, 64> {
14
15
16
public
:
17
// syntax is:
18
// BitField<Lo,Hi, AuxType [, ValueType=AuxType]> name{"name","auxvar", "description" [, encoder, decoder]}
19
// auxvar can optionally include bitpacking-specifiers, in form of either auxvar[i] or auxvar[a:b]
20
// this will map the bitfield into subbits of the auxvar. AuxType will need to be an integral type,
21
// e.g. you cannot use bitpacking-specifiers on AuxType=float fields
22
23
static
inline
const
BitField<0, 12, float>
ptt
{{.name=
"ptt"
, .auxvar=
"et"
, .description=
"Transverse energy"
, .scale=0.1
/*GeV*/
, .centre=0}};
24
static
inline
const
SignedBitField<13, 22, float>
eta
{{.name=
"eta"
, .description=
"Eta coordinate"
,.scale=0.1}};
25
static
inline
const
UnclampedBitField<23, 31, float>
phi
{{.name=
"phi"
, .description=
"Phi coordinate"
,.scale=
M_PI
/32}};
26
27
static
inline
const
BitField<32, 32, uint8_t, bool>
flag_et_overflow
{
"flag_et_overflow"
,
"flags[0]"
,
"flag description placeholder"
};
28
static
inline
const
BitField<33, 33, uint8_t, bool>
flag_error
{
"flag_error"
,
"flags[1]"
,
"flag description placeholder"
};
29
static
inline
const
BitField<34, 34, uint8_t, bool>
flag_next_tob_same_et
{
"flag_next_tob_same_et"
,
"flags[2]"
,
"flag description placeholder"
};
30
static
inline
const
BitField<35, 35, uint8_t, bool>
flag_truncate
{
"flag_truncate"
,
"flags[3]"
,
"flag description placeholder"
};
31
32
DECLARE_FIELDS
(
ptt
,
eta
,
phi
,
flag_et_overflow
,
flag_error
,
flag_next_tob_same_et
,
flag_truncate
);
33
34
};
35
}
36
37
typedef
v1::Tower
Tower
;
38
39
}
40
41
#endif
M_PI
#define M_PI
Definition
ActiveFraction.h:14
BitSpec.h
GlobalSim::BitField
Definition
BitSpec.h:205
GlobalSim::BitSpec
Definition
BitSpec.h:637
GlobalSim::v1::Tower
Definition
Tower.h:13
GlobalSim::v1::Tower::flag_error
static const BitField< 33, 33, uint8_t, bool > flag_error
Definition
Tower.h:28
GlobalSim::v1::Tower::flag_truncate
static const BitField< 35, 35, uint8_t, bool > flag_truncate
Definition
Tower.h:30
GlobalSim::v1::Tower::DECLARE_FIELDS
DECLARE_FIELDS(ptt, eta, phi, flag_et_overflow, flag_error, flag_next_tob_same_et, flag_truncate)
GlobalSim::v1::Tower::eta
static const SignedBitField< 13, 22, float > eta
Definition
Tower.h:24
GlobalSim::v1::Tower::flag_next_tob_same_et
static const BitField< 34, 34, uint8_t, bool > flag_next_tob_same_et
Definition
Tower.h:29
GlobalSim::v1::Tower::flag_et_overflow
static const BitField< 32, 32, uint8_t, bool > flag_et_overflow
Definition
Tower.h:27
GlobalSim::v1::Tower::ptt
static const BitField< 0, 12, float > ptt
Definition
Tower.h:23
GlobalSim::v1::Tower::phi
static const UnclampedBitField< 23, 31, float > phi
Definition
Tower.h:25
GlobalSim::v1
Definition
Global/GlobalSimulation/GlobalSimulation/GenericTOB.h:12
GlobalSim
AlgTool to read in LArStripNeighborhoods, and run the BDT Algorithm.
Definition
BitSpec.h:24
GlobalSim::SignedBitField
BitField< Lo, Hi, AuxValue, Value, true > SignedBitField
Definition
BitSpec.h:526
GlobalSim::UnclampedBitField
BitField< Lo, Hi, AuxValue, Value, false, false > UnclampedBitField
Definition
BitSpec.h:529
GlobalSim::Tower
v1::Tower Tower
Definition
Tower.h:37
Generated on
for ATLAS Offline Software by
1.17.0