ATLAS Offline Software
Loading...
Searching...
No Matches
CTP_Decision.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5// $Id: CTP_Decision.cxx,v 1.2 2008-05-08 15:00:11 krasznaa Exp $
6
7// STL include(s):
8#include <sstream>
9#include <iomanip>
10
11// Local include(s):
13
14const std::string CTP_Decision::dump() const {
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}
std::vector< uint32_t > m_CTPResultWord
vector of CTP trigger words
const std::string dump() const
Dump raw content of object to string.
items_type m_items
vector of fired LVL1 items
uint32_t m_triggerTypeWord
LVL1 trigger type word.