ATLAS Offline Software
Loading...
Searching...
No Matches
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>
14
16{
17 int i=0;
18 while (i<64) {
19 m_l1results[i]=false;
20 i++;
21 }
22}
23
26
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
42bool FauxTriggerMap::hasL1(int l1bit) const
43{
44 return m_l1results[l1bit];
45}
46
Class definition for FauxTriggerMap.
Class definition for TrigPath.
bool hasL1(int l1bit) const
Query whether l1bit is in the map.
unsigned int NUMBER_TYPE
NUMBER_TYPE bits() const
Return the bits stored in the map.
bool m_l1results[64]
virtual ~FauxTriggerMap()
bool addPath(const TrigPath &tp)
Add the trigger path to the current map.
NUMBER_TYPE m_bits
Support class for use in AthenaPoolMultiTest event splitting.
Definition TrigPath.h:23