Belle II Software
development
RawPXD.h
1
/**************************************************************************
2
* basf2 (Belle II Analysis Software Framework) *
3
* Author: The Belle II Collaboration *
4
* *
5
* See git log for contributors and copyright holders. *
6
* This file is licensed under LGPL-3.0, see LICENSE.md. *
7
**************************************************************************/
8
9
#ifndef RAWPXD_H
10
#define RAWPXD_H
11
12
#include <TObject.h>
13
14
namespace
Belle2
{
19
27
class
RawPXD
:
public
TObject {
28
public
:
29
31
RawPXD
();
32
34
RawPXD
(
int
*,
int
);
35
37
RawPXD
(
const
std::vector <unsigned int>& header,
const
std::vector <std::vector <unsigned char>>& payload);
38
40
virtual
~RawPXD
();
41
43
virtual
int
size
()
const
;
44
/*at the moment not used
46
virtual int* allocate_buffer(int nwords);
47
49
virtual void data(int nwords, int*);
50
*/
52
virtual
int
*
data
(
void
);
53
55
std::string
getInfoHTML
()
const
;
56
57
private
:
58
int
m_nwords
;
60
int
*
m_buffer
;
//[m_nwords] /**< Buffer of size m_nwords */
61
63
static
unsigned
int
endian_swap
(
unsigned
int
x);
64
65
ClassDef(
RawPXD
, 2)
66
};
// class RawPXD
67
68
70
}
// end namespace Belle2
71
72
#endif
Belle2::RawPXD::endian_swap
static unsigned int endian_swap(unsigned int x)
Endian swap a int32.
Definition
RawPXD.cc:28
Belle2::RawPXD::data
virtual int * data(void)
get pointer to data
Definition
RawPXD.cc:81
Belle2::RawPXD::m_buffer
int * m_buffer
Raw dump of ONSEN data. buffer of size m_nwords (32bit int)
Definition
RawPXD.h:60
Belle2::RawPXD::m_nwords
int m_nwords
Number of (32bit) Words stored in the buffer.
Definition
RawPXD.h:58
Belle2::RawPXD::~RawPXD
virtual ~RawPXD()
Destructor.
Definition
RawPXD.cc:71
Belle2::RawPXD::RawPXD
RawPXD()
Default constructor.
Definition
RawPXD.cc:16
Belle2::RawPXD::getInfoHTML
std::string getInfoHTML() const
Return a short summary of this object's contents in HTML format.
Definition
RawPXD.cc:87
Belle2::RawPXD::size
virtual int size() const
get size of buffer in 32 Bit words
Definition
RawPXD.cc:76
Belle2
Abstract base class for different kinds of events.
Definition
MillepedeAlgorithm.h:17
rawdata
dataobjects
include
RawPXD.h
Generated on Mon Sep 1 2025 02:55:14 for Belle II Software by
1.13.2