Belle II Software development
CDCRawHit.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 class CDCRawHit : public RelationsObject {
26 public:
30 CDCRawHit();
34 CDCRawHit(unsigned short status, int trgNumber, unsigned short node,
35 unsigned short finess, unsigned short board,
36 unsigned short channel, unsigned short trgTime,
37 unsigned short adc, unsigned short tdc,
38 unsigned short tdc2, unsigned short tot);
39
43 inline int getStatus(void) const
44 {
45 return m_status;
46 }
47
51 inline int getTriggerNumber(void) const
52 {
53 return m_triggerNumber;
54 }
55
59 inline unsigned short getNode(void) const
60 {
61 return m_node;
62 }
63
68 inline unsigned short getFiness(void) const
69 {
70 return m_finess;
71 }
72
76 inline unsigned short getTriggerTime(void) const
77 {
78 return m_triggerTime;
79 }
80
84 inline unsigned short getFEChannel(void) const
85 {
86 return m_channel;
87 }
88
92 inline unsigned short getBoardId(void) const
93 {
94 return m_board;
95 }
96
100 inline unsigned short getFADC(void) const
101 {
102 return m_adc;
103 }
104
108 inline unsigned short getTDC(void) const
109 {
110 return m_tdc;
111 }
112
116 inline unsigned short getTOT(void) const
117 {
118 return m_tot;
119 }
120
124 virtual ~CDCRawHit();
125 // To derive from TObject.
126
127 private:
131 unsigned short m_status;
139 unsigned short m_node;
143 unsigned short m_finess;
147 unsigned short m_board;
151 unsigned short m_channel;
155 unsigned short m_triggerTime;
159 unsigned short m_adc;
163 unsigned short m_tdc;
164
168 unsigned short m_tdc2nd;
169
173 unsigned short m_tot;
174
177 };
179}
The CDCRawHit (suppressed mode) class.
Definition: CDCRawHit.h:25
unsigned short m_triggerTime
Trigger Timing.
Definition: CDCRawHit.h:155
unsigned short m_status
Status of data block.
Definition: CDCRawHit.h:131
ClassDef(CDCRawHit, 2)
To derive from TObject.
unsigned short m_tdc
TDC count (not subtracted by trigger time).
Definition: CDCRawHit.h:163
unsigned short m_adc
FADC count.
Definition: CDCRawHit.h:159
unsigned short m_channel
Channel in a FEE (0-47).
Definition: CDCRawHit.h:151
unsigned short m_finess
Finess Slot ID.
Definition: CDCRawHit.h:143
unsigned short getTOT(void) const
Getter for TOT value.
Definition: CDCRawHit.h:116
unsigned short m_node
Copper node ID.
Definition: CDCRawHit.h:139
int getTriggerNumber(void) const
Getter for Trigger number.
Definition: CDCRawHit.h:51
unsigned short m_tdc2nd
2nd TDC count (not subtracted by trigger time).
Definition: CDCRawHit.h:168
int getStatus(void) const
Getter for status.
Definition: CDCRawHit.h:43
unsigned short getBoardId(void) const
Getter for boar ID.
Definition: CDCRawHit.h:92
unsigned short getTDC(void) const
Getter for TDC value.
Definition: CDCRawHit.h:108
unsigned short getNode(void) const
Getter for Node ID.
Definition: CDCRawHit.h:59
unsigned short getTriggerTime(void) const
Getter for trigger time.
Definition: CDCRawHit.h:76
int m_triggerNumber
Trigger number.
Definition: CDCRawHit.h:135
unsigned short getFEChannel(void) const
Getter for FE channel.
Definition: CDCRawHit.h:84
CDCRawHit()
Default constructor.
Definition: CDCRawHit.cc:14
virtual ~CDCRawHit()
Destructor.
Definition: CDCRawHit.cc:46
unsigned short getFiness(void) const
Getter fot Finess ID.
Definition: CDCRawHit.h:68
unsigned short getFADC(void) const
Getter for FADC value.
Definition: CDCRawHit.h:100
unsigned short m_tot
Time over threshold.
Definition: CDCRawHit.h:173
unsigned short m_board
FEE boad ID.
Definition: CDCRawHit.h:147
Defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.