ATLAS Offline Software
Loading...
Searching...
No Matches
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
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
62{
63 std::cout << (std::string) (*this) << std::endl;
64}
65
66TileBeamElem::operator std::string() const
67{
68 std::ostringstream text(std::ostringstream::out);
69
70 text << TileRawData::operator std::string();
71
73
74 return text.str();
75}
void print(void) const
std::vector< uint32_t > m_digits
static void print_to_stream(const std::vector< float > &val, const std::string &label, std::ostringstream &text)
STL namespace.