ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
FauxTriggerMap Class Reference

Support class for use in AthenaPoolMultiTest event splitting.
Acts as dummy trigger information in event. FOR TESTING ONLY. More...

#include <FauxTriggerMap.h>

Collaboration diagram for FauxTriggerMap:

Public Types

typedef unsigned int NUMBER_TYPE
 

Public Member Functions

 FauxTriggerMap ()
 
virtual ~FauxTriggerMap ()
 
bool addPath (const TrigPath &tp)
 Add the trigger path to the current map. More...
 
bool hasL1 (int l1bit) const
 Query whether l1bit is in the map. More...
 
NUMBER_TYPE bits () const
 Return the bits stored in the map. More...
 

Private Attributes

bool m_l1results [64]
 
NUMBER_TYPE m_bits
 

Detailed Description

Support class for use in AthenaPoolMultiTest event splitting.
Acts as dummy trigger information in event. FOR TESTING ONLY.

Author
Jack Cranshaw Created May 2004 for DC2 validation

Definition at line 26 of file FauxTriggerMap.h.

Member Typedef Documentation

◆ NUMBER_TYPE

typedef unsigned int FauxTriggerMap::NUMBER_TYPE

Definition at line 29 of file FauxTriggerMap.h.

Constructor & Destructor Documentation

◆ FauxTriggerMap()

FauxTriggerMap::FauxTriggerMap ( )

Definition at line 15 of file FauxTriggerMap.cxx.

15  : m_bits(0)
16 {
17  int i=0;
18  while (i<64) {
19  m_l1results[i]=false;
20  i++;
21  }
22 }

◆ ~FauxTriggerMap()

FauxTriggerMap::~FauxTriggerMap ( )
virtual

Definition at line 24 of file FauxTriggerMap.cxx.

25 {}

Member Function Documentation

◆ addPath()

bool FauxTriggerMap::addPath ( const TrigPath tp)

Add the trigger path to the current map.

Definition at line 27 of file FauxTriggerMap.cxx.

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 }

◆ bits()

FauxTriggerMap::NUMBER_TYPE FauxTriggerMap::bits ( ) const

Return the bits stored in the map.

Definition at line 47 of file FauxTriggerMap.cxx.

47 {return m_bits;}

◆ hasL1()

bool FauxTriggerMap::hasL1 ( int  l1bit) const

Query whether l1bit is in the map.

Definition at line 42 of file FauxTriggerMap.cxx.

43 {
44  return m_l1results[l1bit];
45 }

Member Data Documentation

◆ m_bits

NUMBER_TYPE FauxTriggerMap::m_bits
private

Definition at line 44 of file FauxTriggerMap.h.

◆ m_l1results

bool FauxTriggerMap::m_l1results[64]
private

Definition at line 43 of file FauxTriggerMap.h.


The documentation for this class was generated from the following files:
FauxTriggerMap::m_bits
NUMBER_TYPE m_bits
Definition: FauxTriggerMap.h:44
ParticleTest.tp
tp
Definition: ParticleTest.py:25
lumiFormat.i
int i
Definition: lumiFormat.py:85
FauxTriggerMap::m_l1results
bool m_l1results[64]
Definition: FauxTriggerMap.h:43