ATLAS Offline Software
Loading...
Searching...
No Matches
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
26
27#include <string>
28#include <vector>
29
30#include <inttypes.h>
31
33{
34public:
35
36 /* Constructor: */
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);
68private:
69
70 Identifier m_id; // Hardware (online) ID of the adc
71};
72
73#endif //ZDCEVENT_ZDCRAWDATA_H
74
virtual ~ZdcRawData()
Definition ZdcRawData.h:41
virtual std::string whoami(void) const
Definition ZdcRawData.h:55
virtual void print(void) const
Identifier m_id
Definition ZdcRawData.h:70
Identifier identify(void) const
Definition ZdcRawData.h:44
static void print_to_stream(const std::vector< double > &val, const std::string &label, std::ostringstream &text)
std::string label(const std::string &format, int i)
Definition label.h:19