ATLAS Offline Software
Loading...
Searching...
No Matches
TileCalorimeter
TileEvent
src
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
28
TileBeamElem::TileBeamElem
(
const
Identifier
&
id
,
29
const
std::vector<uint32_t>& digits )
30
31
:
TileRawData
( id )
32
,
m_digits
( digits )
33
{
34
}
35
36
TileBeamElem::TileBeamElem
(
const
HWIdentifier
& HWid,
37
const
std::vector<uint32_t>& digits )
38
39
:
TileRawData
( HWid )
40
,
m_digits
( digits )
41
{
42
}
43
44
TileBeamElem::TileBeamElem
(
const
HWIdentifier
& HWid,
45
std::vector<uint32_t>&& digits )
46
47
:
TileRawData
( HWid )
48
,
m_digits
(
std
::move(digits) )
49
{
50
}
51
52
TileBeamElem::TileBeamElem
(
const
HWIdentifier
& HWid,
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.h
HWIdentifier
Definition
HWIdentifier.h:13
TileBeamElem::print
void print(void) const
Definition
TileBeamElem.cxx:61
TileBeamElem::m_digits
std::vector< uint32_t > m_digits
Definition
TileBeamElem.h:58
TileBeamElem::TileBeamElem
TileBeamElem()
Definition
TileBeamElem.h:32
TileRawData::TileRawData
TileRawData()
Definition
TileRawData.h:38
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
Identifier
Definition
IdentifierFieldParser.cxx:14
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.14.0