ATLAS Offline Software
Loading...
Searching...
No Matches
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
10namespace 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
33
34 };
35 }
36
38
39}
40
41#endif
#define M_PI
static const BitField< 33, 33, uint8_t, bool > flag_error
Definition Tower.h:28
static const BitField< 35, 35, uint8_t, bool > flag_truncate
Definition Tower.h:30
DECLARE_FIELDS(ptt, eta, phi, flag_et_overflow, flag_error, flag_next_tob_same_et, flag_truncate)
static const SignedBitField< 13, 22, float > eta
Definition Tower.h:24
static const BitField< 34, 34, uint8_t, bool > flag_next_tob_same_et
Definition Tower.h:29
static const BitField< 32, 32, uint8_t, bool > flag_et_overflow
Definition Tower.h:27
static const BitField< 0, 12, float > ptt
Definition Tower.h:23
static const UnclampedBitField< 23, 31, float > phi
Definition Tower.h:25
AlgTool to read in LArStripNeighborhoods, and run the BDT Algorithm.
Definition BitSpec.h:24
BitField< Lo, Hi, AuxValue, Value, true > SignedBitField
Definition BitSpec.h:526
BitField< Lo, Hi, AuxValue, Value, false, false > UnclampedBitField
Definition BitSpec.h:529
v1::Tower Tower
Definition Tower.h:37