ATLAS Offline Software
Trigger
TrigT1
Global
GlobalSimulation
src
IO
Global/GlobalSimulation/src/IO/Count.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-202' 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
// Adapted for GlobalSim
9
10
#include "
Count.h
"
11
12
namespace
GlobalSim
{
13
void
Count::setSizeCount
(
unsigned
int
sizeCount){
14
15
m_sizeCount
=
sizeCount
;
16
17
// Compute the final bits that make up the output of the
18
// multiplicity algorithms
19
20
// saturation limit given by the number of bits allowed
21
// for the trigger line
22
unsigned
int
maximum = (1 <<
m_nBits
) - 1;
23
24
std::bitset<128>
mask
= (
sizeCount
< maximum)?
sizeCount
:maximum;
25
26
m_count
= (
mask
<<
m_firstBit
);
27
28
}
29
}
30
31
std::ostream &
operator<<
(std::ostream&
os
,
const
GlobalSim::Count
&
count
) {
32
os
<<
"GlobalSim::Count:\n"
33
<<
"first bit "
<<
count
.firstBit()
34
<<
" last bit "
<<
count
.lastBit()
35
<<
" nbits "
<<
count
.nBits()
36
<<
" sizeCount "
<<
count
.sizeCount()
37
<<
'\n'
;
38
return
os
;
39
}
operator<<
std::ostream & operator<<(std::ostream &os, const GlobalSim::Count &count)
Definition:
Global/GlobalSimulation/src/IO/Count.cxx:31
GlobalSim::Count::m_firstBit
unsigned int m_firstBit
Definition:
Global/GlobalSimulation/src/IO/Count.h:56
XMLtoHeader.count
count
Definition:
XMLtoHeader.py:85
python.utils.AtlRunQueryLookup.mask
string mask
Definition:
AtlRunQueryLookup.py:460
GlobalSim::Count
Definition:
Global/GlobalSimulation/src/IO/Count.h:23
GlobalSim::Count::setSizeCount
void setSizeCount(unsigned int sizeCount)
Definition:
Global/GlobalSimulation/src/IO/Count.cxx:13
GlobalSim
AlgTool to obtain a selection of eFex RoIs read in from the event store.
Definition:
dump.h:8
Count.h
ReadFromCoolCompare.os
os
Definition:
ReadFromCoolCompare.py:231
GlobalSim::Count::sizeCount
unsigned int sizeCount() const
Definition:
Global/GlobalSimulation/src/IO/Count.h:52
GlobalSim::Count::m_count
std::bitset< 128 > m_count
Definition:
Global/GlobalSimulation/src/IO/Count.h:55
GlobalSim::Count::m_sizeCount
unsigned int m_sizeCount
Definition:
Global/GlobalSimulation/src/IO/Count.h:58
GlobalSim::Count::m_nBits
unsigned int m_nBits
Definition:
Global/GlobalSimulation/src/IO/Count.h:57
Generated on Sun Dec 22 2024 21:08:39 for ATLAS Offline Software by
1.8.18