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
14namespace Belle2 {
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:
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
The Raw PXD class.
Definition: RawPXD.h:27
static unsigned int endian_swap(unsigned int x)
Endian swap a int32.
Definition: RawPXD.cc:28
virtual int * data(void)
get pointer to data
Definition: RawPXD.cc:81
int * m_buffer
Raw dump of ONSEN data. buffer of size m_nwords (32bit int)
Definition: RawPXD.h:60
int m_nwords
Number of (32bit) Words stored in the buffer.
Definition: RawPXD.h:58
virtual ~RawPXD()
Destructor.
Definition: RawPXD.cc:71
RawPXD()
Default constructor.
Definition: RawPXD.cc:16
std::string getInfoHTML() const
Return a short summary of this object's contents in HTML format.
Definition: RawPXD.cc:87
virtual int size() const
get size of buffer in 32 Bit words
Definition: RawPXD.cc:76
Abstract base class for different kinds of events.