Belle II Software development
CDCRawHitWaveForm.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#pragma once
10
11// Includes
12#include <framework/datastore/RelationsObject.h>
13
14namespace Belle2 {
25 public:
30
34 CDCRawHitWaveForm(unsigned short status,
35 int trgNumber, unsigned short node,
36 unsigned short finess, unsigned short board,
37 unsigned short channel, unsigned short sample,
38 unsigned short trgTime,
39 unsigned short adc, unsigned short tdc);
40
41
45 inline int getStatus(void) const
46 {
47 return m_status;
48 }
49
50
54 virtual ~CDCRawHitWaveForm();
55
56
60 inline void setTriggerNumber(int trgNumber)
61 {
62 m_triggerNumber = trgNumber;
63 }
64
65
69 inline int getTriggerNumber(void) const
70 {
71 return m_triggerNumber;
72 }
73
77 inline void setNode(unsigned short node)
78 {
79 m_node = node;
80 }
81
82
86 inline unsigned short getNode(void) const
87 {
88 return m_node;
89 }
90
94 inline void setFiness(unsigned short finess)
95 {
96 m_finess = finess;
97 }
98
102 inline unsigned short getFiness(void) const
103 {
104 return m_finess;
105 }
106
110 inline unsigned short getADC(void) const
111 {
112 return m_adc;
113 }
114
118 inline unsigned short getTDC(void) const
119 {
120 return m_tdc;
121 }
122
126 inline unsigned short getSample(void) const
127 {
128 return m_sample;
129 }
130
131 private:
135 unsigned short m_status;
143 unsigned short m_node;
147 unsigned short m_finess;
151 unsigned short m_board;
155 unsigned short m_channel;
159 unsigned short m_triggerTime;
163 unsigned short m_sample;
167 unsigned short m_adc;
171 unsigned short m_tdc;
172
175
176
177 };
179}
The CDCRawHitWaveForm (Full output mode) class.
unsigned short m_triggerTime
Trigger Timing.
unsigned short m_status
Status of data block.
ClassDef(CDCRawHitWaveForm, 1)
To derive from TObject.
unsigned short m_tdc
TDC count (not subtracted by trigger time).
unsigned short m_adc
FADC count.
unsigned short getADC(void) const
Getter for ADC.
unsigned short m_channel
Channel in a FEE (0-47).
unsigned short m_finess
Finess Slot ID.
unsigned short m_node
Copper node ID.
int getTriggerNumber(void) const
Getter for trigger number.
int getStatus(void) const
Getter for status.
unsigned short getSample(void) const
Getter for samplint point.
unsigned short getTDC(void) const
Getter for TDC.
unsigned short getNode(void) const
Getter for Node ID.
CDCRawHitWaveForm()
Default constructor.
void setNode(unsigned short node)
Setter for Node ID.
unsigned short m_sample
Index of FADC sampling.
int m_triggerNumber
Trigger number.
void setTriggerNumber(int trgNumber)
Setter for trigger number.
virtual ~CDCRawHitWaveForm()
Destructor.
void setFiness(unsigned short finess)
Setter for Finess ID.
unsigned short getFiness(void) const
Getter for Finess ID.
unsigned short m_board
FEE boad ID.
Defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.