Belle II Software development
Bitstream.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#pragma once
9#include <TObject.h>
10
11#define MERGER_WIDTH 256
12#define NUM_MERGER 146
13//#define TSF_TO_2D_HALF_WIDTH 219 //210+9
14//#define TSF_TO_2D_WIDTH 429 //210*2+9
15#define TSF_TO_2D_HALF_WIDTH 324 //315+9
16#define TSF_TO_2D_WIDTH 639 //315*2+9
17#define NUM_2D 4
18#define NUM_TSF 5
19#define T2D_TO_3D_WIDTH 747
20#define NN_IN_WIDTH 982
21#define NN_WIDTH 2048
22#define DNN_WIDTH 4096
23#define NN_OUT_WIDTH 570
24//#define NN_OUT_WIDTH 709
25
26
27namespace Belle2 {
32
54 template <typename SignalBus>
55 class Bitstream : public TObject {
56 friend class CDCTriggerUnpackerModule;
57 friend struct Merger;
58 friend struct Tracker2D;
59 template <int bitwidth, typename T_bitstream>
60 friend struct Neuro;
61 public:
64
66 explicit Bitstream(SignalBus bus) : m_signal(bus) {}
67
70
72 const SignalBus& signal()
73 {
74 return m_signal;
75 }
76
77 protected:
79 SignalBus m_signal;
80
83 };
84
86}
87
~Bitstream()
destructor, empty because we don't allocate memory explicitly.
Definition Bitstream.h:69
ClassDef(Bitstream, 4)
Needed to make the ROOT object storable.
const SignalBus & signal()
accessors
Definition Bitstream.h:72
Bitstream()
default constructor
Definition Bitstream.h:63
Bitstream(SignalBus bus)
constructor from Signal Bus
Definition Bitstream.h:66
Abstract base class for different kinds of events.