ATLAS Offline Software
ZdcRawData.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //*****************************************************************************
6 // Filename : ZdcRawData.cxx
7 // Author : Peter Steinberg
8 // Created : March 2009
9 //
10 // DESCRIPTION:
11 //
12 //
13 // HISTORY:
14 // 20 March 2009: Created
15 //
16 // BUGS:
17 //
18 //
19 //
20 //*****************************************************************************
21 
22 #include "ZdcEvent/ZdcRawData.h"
25 
26 #include <iostream>
27 #include <sstream>
28 #include <iomanip>
29 
31  : m_id (id)
32 {
33 }
34 
35 void ZdcRawData::print() const
36 {
37  std::cout << (std::string) (*this) << std::endl;
38 }
39 
40 ZdcRawData::operator std::string() const
41 {
42  std::string result(whoami());
43  //result += " Id = " + ZdcCablingService::getInstance()->getZdcID()->to_string(m_id);
44  return result;
45 }
46 
47 
48 /*
49 Identifier ZdcRawData::side_ID(void) const {
50  return ZdcCablingService::getInstance()->h2s_side_id(m_channel_hwid);
51 }
52 
53 Identifier ZdcRawData::module_ID(void) const {
54  return ZdcCablingService::getInstance()->h2s_module_id(m_channel_hwid);
55 }
56 
57 Identifier ZdcRawData::type_ID(void) const {
58  return ZdcCablingService::getInstance()->h2s_type_id(m_channel_hwid);
59 }
60 
61 Identifier ZdcRawData::channel_ID(void) const {
62  return ZdcCablingService::getInstance()->h2s_channel_id(m_channel_hwid);
63 }
64 
65 Identifier ZdcRawData::gain_ID(void) const {
66  return ZdcCablingService::getInstance()->h2s_gain_id(m_channel_hwid);
67 }
68 
69 Identifier ZdcRawData::delay_ID(void) const {
70  return ZdcCablingService::getInstance()->h2s_delay_id(m_channel_hwid);
71 }
72 */
73 
74 
75 void ZdcRawData::print_to_stream ( const std::vector<double>& val,
76  const std::string & label,
77  std::ostringstream & text)
78 {
79  text << label;
80  for (double v : val) {
81  text << " " << v;
82  }
83 }
84 
85 void ZdcRawData::print_to_stream ( const std::vector<int>& val,
86  const std::string & label,
87  std::ostringstream & text)
88 {
89  text << label;
90  for (double v : val) {
91  text << " " << v;
92  }
93 }
94 
get_generator_info.result
result
Definition: get_generator_info.py:21
PlotCalibFromCool.label
label
Definition: PlotCalibFromCool.py:78
ZdcRawData::print_to_stream
static void print_to_stream(const std::vector< double > &val, const std::string &label, std::ostringstream &text)
Definition: ZdcRawData.cxx:75
ZdcCablingService.h
ZdcRawData::ZdcRawData
ZdcRawData()
Definition: ZdcRawData.h:37
ZdcRawData::print
virtual void print(void) const
Definition: ZdcRawData.cxx:35
ZdcHardwareID.h
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
ZdcRawData.h
python.PyAthena.v
v
Definition: PyAthena.py:154
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
makeTransCanvas.text
text
Definition: makeTransCanvas.py:11
Identifier
Definition: IdentifierFieldParser.cxx:14