ATLAS Offline Software
Loading...
Searching...
No Matches
Trigger
TrigT1
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
}
Count.h
Exception.h
TCS::Count::m_firstBit
unsigned int m_firstBit
Definition
Count.h:53
TCS::Count::m_count
std::bitset< 128 > m_count
Definition
Count.h:52
TCS::Count::m_sizeCount
unsigned int m_sizeCount
Definition
Count.h:55
TCS::Count::sizeCount
unsigned int sizeCount() const
Definition
Count.h:49
TCS::Count::m_nBits
unsigned int m_nBits
Definition
Count.h:54
TCS::Count::setSizeCount
void setSizeCount(unsigned int sizeCount)
Definition
Count.cxx:12
Generated on
for ATLAS Offline Software by
1.14.0