ATLAS Offline Software
ForwardDetectors
ZDC
ZdcEvent
ZdcEvent
ZdcRawData.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
//***************************************************************************
6
// Filename : ZdcRawData.h
7
// Author : Peter Steinberg
8
// Created : March 2009
9
//
10
// DESCRIPTION:
11
// A ZdcRawData is the base class for raw data classes,
12
// such as ZdcRdo
13
// It has only one member element - HWIdentifier
14
//
15
// HISTORY:
16
// 20 March 2009
17
//
18
// BUGS:
19
//
20
// ***************************************************************************
21
22
#ifndef ZDCEVENT_ZDCRAWDATA_H
23
#define ZDCEVENT_ZDCRAWDATA_H
24
25
#include "
Identifier/HWIdentifier.h
"
26
27
#include <string>
28
#include <vector>
29
30
#include <inttypes.h>
31
32
class
ZdcRawData
33
{
34
public
:
35
36
/* Constructor: */
37
ZdcRawData
(){}
38
ZdcRawData
(
const
Identifier
&
id
);
39
40
/* Destructor */
41
virtual
~ZdcRawData
() {}
42
43
/* Inline accessor methods: */
44
inline
Identifier
identify
(
void
)
const
{
return
m_id
; }
45
46
/*
47
Identifier side_ID (void) const;
48
Identifier module_ID (void) const;
49
Identifier type_ID (void) const;
50
Identifier channel_ID (void) const;
51
Identifier gain_ID (void) const;
52
Identifier delay_ID (void) const;
53
*/
54
55
virtual
std::string
whoami
(
void
)
const
{
return
"ZdcRawData"
; }
56
virtual
void
print
(
void
)
const
;
57
// Convertion operator to a std::string
58
// Can be used in a cast operation : (std::string) ZdcRawData
59
virtual
operator
std::string()
const
;
60
61
static
void
print_to_stream
(
const
std::vector<double>&
val
,
62
const
std::string &
label
,
63
std::ostringstream &
text
);
64
65
static
void
print_to_stream
(
const
std::vector<int>&
val
,
66
const
std::string &
label
,
67
std::ostringstream &
text
);
68
private
:
69
70
Identifier
m_id
;
// Hardware (online) ID of the adc
71
};
72
73
#endif //ZDCEVENT_ZDCRAWDATA_H
74
ZdcRawData::m_id
Identifier m_id
Definition:
ZdcRawData.h:70
ZdcRawData
Definition:
ZdcRawData.h:33
ZdcRawData::~ZdcRawData
virtual ~ZdcRawData()
Definition:
ZdcRawData.h:41
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
ZdcRawData::ZdcRawData
ZdcRawData()
Definition:
ZdcRawData.h:37
ZdcRawData::whoami
virtual std::string whoami(void) const
Definition:
ZdcRawData.h:55
ZdcRawData::print
virtual void print(void) const
Definition:
ZdcRawData.cxx:35
HWIdentifier.h
Pythia8_RapidityOrderMPI.val
val
Definition:
Pythia8_RapidityOrderMPI.py:14
makeTransCanvas.text
text
Definition:
makeTransCanvas.py:11
ZdcRawData::identify
Identifier identify(void) const
Definition:
ZdcRawData.h:44
Identifier
Definition:
IdentifierFieldParser.cxx:14
Generated on Sun Dec 22 2024 21:23:06 for ATLAS Offline Software by
1.8.18