ATLAS Offline Software
TileBeamElem.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //*****************************************************************************
6 // Filename : TileBeamElem.cxx
7 // Author : AS
8 // Created : Oct, 2003
9 //
10 // DESCRIPTION:
11 // Implementation comments only. Class level comments go in .h file.
12 //
13 // HISTORY:
14 // 29Oct03: Created for testbeam data coming from Beam ROD
15 //
16 // BUGS:
17 //
18 //
19 //
20 //*****************************************************************************
21 
22 #include "TileEvent/TileBeamElem.h"
23 
24 #include <iostream>
25 #include <sstream>
26 #include <iomanip>
27 
29  const std::vector<uint32_t>& digits )
30 
31  : TileRawData( id )
32  , m_digits ( digits )
33 {
34 }
35 
37  const std::vector<uint32_t>& digits )
38 
39  : TileRawData( HWid )
40  , m_digits ( digits )
41 {
42 }
43 
45  std::vector<uint32_t>&& digits )
46 
47  : TileRawData( HWid )
48  , m_digits ( std::move(digits) )
49 {
50 }
51 
53  uint32_t digit )
54 
55  : TileRawData( HWid )
56  , m_digits ()
57 {
58  m_digits.push_back(digit);
59 }
60 
61 void TileBeamElem::print() const
62 {
63  std::cout << (std::string) (*this) << std::endl;
64 }
65 
66 TileBeamElem::operator std::string() const
67 {
68  std::ostringstream text(std::ostringstream::out);
69 
70  text << TileRawData::operator std::string();
71 
72  TileRawData::print_to_stream(m_digits," Val:",text);
73 
74  return text.str();
75 }
TileBeamElem::m_digits
std::vector< uint32_t > m_digits
Definition: TileBeamElem.h:58
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TileRawData::print_to_stream
static void print_to_stream(const std::vector< float > &val, const std::string &label, std::ostringstream &text)
Definition: TileRawData.cxx:81
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
checkRpcDigits.digit
digit
Definition: checkRpcDigits.py:186
HWIdentifier
Definition: HWIdentifier.h:13
TileBeamElem::print
void print(void) const
Definition: TileBeamElem.cxx:61
TileBeamElem::TileBeamElem
TileBeamElem()
Definition: TileBeamElem.h:32
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
TileBeamElem.h
TileRawData
Definition: TileRawData.h:34
makeTransCanvas.text
text
Definition: makeTransCanvas.py:11
Identifier
Definition: IdentifierFieldParser.cxx:14