ATLAS Offline Software
Trigger
TrigT1
L1Topo
L1TopoInterfaces
Root
L1Topo/L1TopoInterfaces/Root/Count.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
// Count.cxx
5
// TopoCore
6
// Created by Carlos Moreno on 05/05/20.
7
8
#include "
L1TopoInterfaces/Count.h
"
9
#include "
L1TopoCommon/Exception.h
"
10
11
void
12
TCS::Count::setSizeCount
(
unsigned
int
sizeCount){
13
14
m_sizeCount
=
sizeCount
;
15
16
// Compute the final bits that make up the output of the multiplicity algorithm
17
18
unsigned
int
maximum = (1 <<
m_nBits
) - 1;
// saturation limit given by the number of bits allowed for the trigger line
19
20
std::bitset<128>
mask
= (
sizeCount
< maximum)?
sizeCount
:maximum;
21
22
m_count
= (
mask
<<
m_firstBit
);
23
24
}
TCS::Count::m_nBits
unsigned int m_nBits
Definition:
L1Topo/L1TopoInterfaces/L1TopoInterfaces/Count.h:54
TCS::Count::sizeCount
unsigned int sizeCount() const
Definition:
L1Topo/L1TopoInterfaces/L1TopoInterfaces/Count.h:49
python.utils.AtlRunQueryLookup.mask
string mask
Definition:
AtlRunQueryLookup.py:460
TCS::Count::m_count
std::bitset< 128 > m_count
Definition:
L1Topo/L1TopoInterfaces/L1TopoInterfaces/Count.h:52
Count.h
TCS::Count::m_sizeCount
unsigned int m_sizeCount
Definition:
L1Topo/L1TopoInterfaces/L1TopoInterfaces/Count.h:55
TCS::Count::m_firstBit
unsigned int m_firstBit
Definition:
L1Topo/L1TopoInterfaces/L1TopoInterfaces/Count.h:53
TCS::Count::setSizeCount
void setSizeCount(unsigned int sizeCount)
Definition:
L1Topo/L1TopoInterfaces/Root/Count.cxx:12
Exception.h
Generated on Thu Nov 7 2024 21:12:33 for ATLAS Offline Software by
1.8.18