ATLAS Offline Software
AtlasTest
DatabaseTest
AthenaPoolTestData
src
FauxTriggerMap.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
9
#include <string>
10
#include <set>
11
#include <sstream>
12
#include "
AthenaPoolTestData/TrigPath.h
"
13
#include "
AthenaPoolTestData/FauxTriggerMap.h
"
14
15
FauxTriggerMap::FauxTriggerMap
() : m_bits(0)
16
{
17
int
i
=0;
18
while
(
i
<64) {
19
m_l1results
[
i
]=
false
;
20
i
++;
21
}
22
}
23
24
FauxTriggerMap::~FauxTriggerMap
()
25
{}
26
27
bool
FauxTriggerMap::addPath
(
const
TrigPath
&
tp
)
28
{
29
// Check is in range
30
if
(
tp
.isValid() )
31
{
32
m_l1results
[
tp
.l1bit] =
true
;
33
m_bits
=
m_bits
|(1<<
tp
.l1bit);
// add bit to mask
34
return
true
;
35
}
36
else
37
{
38
return
false
;
39
}
40
}
41
42
bool
FauxTriggerMap::hasL1
(
int
l1bit)
const
43
{
44
return
m_l1results
[l1bit];
45
}
46
47
FauxTriggerMap::NUMBER_TYPE
FauxTriggerMap::bits
()
const
{
return
m_bits
;}
FauxTriggerMap::FauxTriggerMap
FauxTriggerMap()
Definition:
FauxTriggerMap.cxx:15
FauxTriggerMap::m_bits
NUMBER_TYPE m_bits
Definition:
FauxTriggerMap.h:44
FauxTriggerMap::NUMBER_TYPE
unsigned int NUMBER_TYPE
Definition:
FauxTriggerMap.h:29
TrigPath.h
Class definition for TrigPath.
ParticleTest.tp
tp
Definition:
ParticleTest.py:25
FauxTriggerMap::hasL1
bool hasL1(int l1bit) const
Query whether l1bit is in the map.
Definition:
FauxTriggerMap.cxx:42
lumiFormat.i
int i
Definition:
lumiFormat.py:85
FauxTriggerMap::m_l1results
bool m_l1results[64]
Definition:
FauxTriggerMap.h:43
FauxTriggerMap::~FauxTriggerMap
virtual ~FauxTriggerMap()
Definition:
FauxTriggerMap.cxx:24
FauxTriggerMap.h
Class definition for FauxTriggerMap.
FauxTriggerMap::bits
NUMBER_TYPE bits() const
Return the bits stored in the map.
Definition:
FauxTriggerMap.cxx:47
TrigPath
Support class for use in AthenaPoolMultiTest event splitting. Stores trigger path information,...
Definition:
TrigPath.h:23
FauxTriggerMap::addPath
bool addPath(const TrigPath &tp)
Add the trigger path to the current map.
Definition:
FauxTriggerMap.cxx:27
Generated on Mon Dec 23 2024 21:10:28 for ATLAS Offline Software by
1.8.18