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

Legacy data class representing the LVL1 CTP trigger decision. More...

#include <CTP_Decision.h>

Collaboration diagram for CTP_Decision:

Public Types

typedef std::vector< std::string > items_type
 Type storing the names of the passed LVL1 items. More...
 

Public Member Functions

 CTP_Decision ()
 Default (empty) constructor. More...
 
virtual ~CTP_Decision ()
 Destructor. More...
 
bool isAccepted () const
 Test if event was accepted at LVL1. More...
 
const items_typegetItems () const
 Get a vector of fired LVL1 items. More...
 
std::vector< uint32_t > getWords () const
 Get vector of CTP trigger words. More...
 
uint32_t getWord (const unsigned int i) const
 Get one CTP trigger word. More...
 
uint32_t getWord0 () const
 get 1. More...
 
uint32_t getWord1 () const
 get 2. More...
 
uint32_t getWord2 () const
 get 3. More...
 
uint32_t getWord3 () const
 get 4. More...
 
uint32_t getWord4 () const
 get 5. More...
 
uint32_t getWord5 () const
 get 6. More...
 
uint32_t getWord6 () const
 get 7. More...
 
uint32_t getWord7 () const
 get 8. More...
 
uint32_t getTriggerTypeWord () const
 Get trigger type word. More...
 
void setItems (const items_type &items)
 Set vector of fired LVL1 items. More...
 
void setItem (const items_type::value_type &item)
 Set a fired LVL1 item. More...
 
void setWords (const std::vector< uint32_t > &words)
 Set vector of CTP trigger words. More...
 
void setWord (const unsigned int i, const uint32_t word)
 Set one CTP trigger word. More...
 
void setWord0 (const uint32_t word)
 set 1. More...
 
void setWord1 (const uint32_t word)
 set 2. More...
 
void setWord2 (const uint32_t word)
 set 3. More...
 
void setWord3 (const uint32_t word)
 set 4. More...
 
void setWord4 (const uint32_t word)
 set 5. More...
 
void setWord5 (const uint32_t word)
 set 6. More...
 
void setWord6 (const uint32_t word)
 set 7. More...
 
void setWord7 (const uint32_t word)
 set 8. More...
 
void setTriggerTypeWord (uint32_t word)
 Set trigger type word. More...
 
const std::string dump () const
 Dump raw content of object to string. More...
 

Private Attributes

items_type m_items
 vector of fired LVL1 items More...
 
std::vector< uint32_t > m_CTPResultWord
 vector of CTP trigger words More...
 
uint32_t m_triggerTypeWord
 LVL1 trigger type word. More...
 

Detailed Description

Legacy data class representing the LVL1 CTP trigger decision.

   This class holds the LVL1 CTP trigger decision, 
   a vector of fired LVL1 items and trigger type word.
   The CTP trigger decision vector is 256 bits long, arranged 
   into 8 32 bit words, which can be accessed either independently
   or as a vector.

   This class is now outdated. For analysis purposes one should
   rather use TrigDec::TrigDecisionTool to retrieve the LVL1
   decision for the event.
Author
Tadashi Maeno Tadas.nosp@m.hi.M.nosp@m.aeno@.nosp@m.cern.nosp@m..ch
Wolfgang Ehrenfeld Wolfg.nosp@m.ang..nosp@m.Menge.nosp@m.s@de.nosp@m.sy.de
Version
$Revision: 1.10 $
Date
$Date: 2008-05-20 16:59:50 $

Definition at line 39 of file CTP_Decision.h.

Member Typedef Documentation

◆ items_type

typedef std::vector< std::string > CTP_Decision::items_type

Type storing the names of the passed LVL1 items.

Definition at line 50 of file CTP_Decision.h.

Constructor & Destructor Documentation

◆ CTP_Decision()

CTP_Decision::CTP_Decision ( )
inline

Default (empty) constructor.

Definition at line 43 of file CTP_Decision.h.

43  : m_items( 0 ), m_triggerTypeWord( 0 ) {
44  m_CTPResultWord.reserve( 8 );
45  }

◆ ~CTP_Decision()

virtual CTP_Decision::~CTP_Decision ( )
inlinevirtual

Destructor.

Definition at line 47 of file CTP_Decision.h.

47 {}

Member Function Documentation

◆ dump()

const std::string CTP_Decision::dump ( ) const

Dump raw content of object to string.

Definition at line 14 of file CTP_Decision.cxx.

14  {
15 
16  std::ostringstream s;
17 
18  for( size_t i( 0 ); i < m_CTPResultWord.size(); ++i ) {
19  s << std::setw(2) << i
20  << " 0x" << std::hex << std::setw(8) << std::setfill('0') << m_CTPResultWord[i]
21  << std::dec << std::setfill(' ') << std::endl;
22  }
23  s << m_triggerTypeWord << std::endl;
24 
25  for( std::vector<std::string>::const_iterator item = m_items.begin();
26  item != m_items.end(); ++item ) {
27  s << *item << " ";
28  }
29 
30  return s.str();
31 }

◆ getItems()

const items_type& CTP_Decision::getItems ( ) const
inline

Get a vector of fired LVL1 items.

Definition at line 56 of file CTP_Decision.h.

56 { return m_items; }

◆ getTriggerTypeWord()

uint32_t CTP_Decision::getTriggerTypeWord ( ) const
inline

Get trigger type word.

Definition at line 75 of file CTP_Decision.h.

75 { return m_triggerTypeWord; }

◆ getWord()

uint32_t CTP_Decision::getWord ( const unsigned int  i) const
inline

Get one CTP trigger word.

Definition at line 61 of file CTP_Decision.h.

61  {
62  return m_CTPResultWord.size() > i ? m_CTPResultWord[ i ] : 0;
63  }

◆ getWord0()

uint32_t CTP_Decision::getWord0 ( ) const
inline

get 1.

CTP trigger word

Definition at line 65 of file CTP_Decision.h.

◆ getWord1()

uint32_t CTP_Decision::getWord1 ( ) const
inline

get 2.

CTP trigger word

Definition at line 66 of file CTP_Decision.h.

◆ getWord2()

uint32_t CTP_Decision::getWord2 ( ) const
inline

get 3.

CTP trigger word

Definition at line 67 of file CTP_Decision.h.

◆ getWord3()

uint32_t CTP_Decision::getWord3 ( ) const
inline

get 4.

CTP trigger word

Definition at line 68 of file CTP_Decision.h.

◆ getWord4()

uint32_t CTP_Decision::getWord4 ( ) const
inline

get 5.

CTP trigger word

Definition at line 69 of file CTP_Decision.h.

◆ getWord5()

uint32_t CTP_Decision::getWord5 ( ) const
inline

get 6.

CTP trigger word

Definition at line 70 of file CTP_Decision.h.

◆ getWord6()

uint32_t CTP_Decision::getWord6 ( ) const
inline

get 7.

CTP trigger word

Definition at line 71 of file CTP_Decision.h.

◆ getWord7()

uint32_t CTP_Decision::getWord7 ( ) const
inline

get 8.

CTP trigger word

Definition at line 72 of file CTP_Decision.h.

◆ getWords()

std::vector< uint32_t > CTP_Decision::getWords ( ) const
inline

Get vector of CTP trigger words.

Definition at line 59 of file CTP_Decision.h.

59 { return m_CTPResultWord; }

◆ isAccepted()

bool CTP_Decision::isAccepted ( ) const
inline

Test if event was accepted at LVL1.

Definition at line 53 of file CTP_Decision.h.

53 { return m_items.size(); }

◆ setItem()

void CTP_Decision::setItem ( const items_type::value_type &  item)
inline

Set a fired LVL1 item.

Definition at line 80 of file CTP_Decision.h.

80 { m_items.push_back(item); }

◆ setItems()

void CTP_Decision::setItems ( const items_type items)
inline

Set vector of fired LVL1 items.

Definition at line 78 of file CTP_Decision.h.

78 { m_items = items; }

◆ setTriggerTypeWord()

void CTP_Decision::setTriggerTypeWord ( uint32_t  word)
inline

Set trigger type word.

Definition at line 100 of file CTP_Decision.h.

100 { m_triggerTypeWord = word; }

◆ setWord()

void CTP_Decision::setWord ( const unsigned int  i,
const uint32_t  word 
)
inline

Set one CTP trigger word.

Definition at line 85 of file CTP_Decision.h.

85  {
86  if( m_CTPResultWord.size() <= i ) m_CTPResultWord.resize( i + 1 );
87  m_CTPResultWord[ i ] = word;
88  }

◆ setWord0()

void CTP_Decision::setWord0 ( const uint32_t  word)
inline

set 1.

CTP trigger word

Definition at line 90 of file CTP_Decision.h.

◆ setWord1()

void CTP_Decision::setWord1 ( const uint32_t  word)
inline

set 2.

CTP trigger word

Definition at line 91 of file CTP_Decision.h.

◆ setWord2()

void CTP_Decision::setWord2 ( const uint32_t  word)
inline

set 3.

CTP trigger word

Definition at line 92 of file CTP_Decision.h.

◆ setWord3()

void CTP_Decision::setWord3 ( const uint32_t  word)
inline

set 4.

CTP trigger word

Definition at line 93 of file CTP_Decision.h.

◆ setWord4()

void CTP_Decision::setWord4 ( const uint32_t  word)
inline

set 5.

CTP trigger word

Definition at line 94 of file CTP_Decision.h.

◆ setWord5()

void CTP_Decision::setWord5 ( const uint32_t  word)
inline

set 6.

CTP trigger word

Definition at line 95 of file CTP_Decision.h.

◆ setWord6()

void CTP_Decision::setWord6 ( const uint32_t  word)
inline

set 7.

CTP trigger word

Definition at line 96 of file CTP_Decision.h.

◆ setWord7()

void CTP_Decision::setWord7 ( const uint32_t  word)
inline

set 8.

CTP trigger word

Definition at line 97 of file CTP_Decision.h.

◆ setWords()

void CTP_Decision::setWords ( const std::vector< uint32_t > &  words)
inline

Set vector of CTP trigger words.

Definition at line 83 of file CTP_Decision.h.

Member Data Documentation

◆ m_CTPResultWord

std::vector< uint32_t > CTP_Decision::m_CTPResultWord
private

vector of CTP trigger words

Definition at line 107 of file CTP_Decision.h.

◆ m_items

items_type CTP_Decision::m_items
private

vector of fired LVL1 items

Definition at line 106 of file CTP_Decision.h.

◆ m_triggerTypeWord

uint32_t CTP_Decision::m_triggerTypeWord
private

LVL1 trigger type word.

Definition at line 108 of file CTP_Decision.h.


The documentation for this class was generated from the following files:
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
CTP_Decision::m_triggerTypeWord
uint32_t m_triggerTypeWord
LVL1 trigger type word.
Definition: CTP_Decision.h:108
CTP_Decision::m_CTPResultWord
std::vector< uint32_t > m_CTPResultWord
vector of CTP trigger words
Definition: CTP_Decision.h:107
lumiFormat.i
int i
Definition: lumiFormat.py:92
TrigJetMonitorAlgorithm.items
items
Definition: TrigJetMonitorAlgorithm.py:79
item
Definition: ItemListSvc.h:43
CTP_Decision::m_items
items_type m_items
vector of fired LVL1 items
Definition: CTP_Decision.h:106
checkFileSG.words
words
Definition: checkFileSG.py:76