ATLAS Offline Software
Loading...
Searching...
No Matches
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
10
11void
13
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}
unsigned int m_firstBit
Definition Count.h:53
std::bitset< 128 > m_count
Definition Count.h:52
unsigned int m_sizeCount
Definition Count.h:55
unsigned int sizeCount() const
Definition Count.h:49
unsigned int m_nBits
Definition Count.h:54
void setSizeCount(unsigned int sizeCount)
Definition Count.cxx:12