Belle II Software development
TRGTOPCombinedT0Decision.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#include <framework/datastore/RelationsObject.h>
12
13namespace Belle2 {
18
20 class TRGTOPCombinedT0Decision : public RelationsObject {
21
22 public:
23
24 // Empty constructor
25 // Recommended for ROOT IO
26 TRGTOPCombinedT0Decision() :
27 m_combinedT0(0),
28 m_rvcNow(0),
32 m_rvcL1(0)
33 {}
34
37 int combinedT0
38 ) :
39 m_combinedT0(combinedT0)
40 {}
41
44 int combinedT0,
45 int rvcNow,
46 int combinedT0ClockCycle,
47 int combinedT0RVC2GDL,
48 int eventNumberL1,
49 int rvcL1
50 ) :
51 m_combinedT0(combinedT0),
52 m_rvcNow(rvcNow),
53 m_combinedT0ClockCycle(combinedT0ClockCycle),
54 m_combinedT0RVC2GDL(combinedT0RVC2GDL),
55 m_eventNumberL1(eventNumberL1),
56 m_rvcL1(rvcL1)
57 {}
58
59
62
63 int getCombinedT0() const { return m_combinedT0; }
64 int getRVCNow() const { return m_rvcNow; }
65 int getCombinedT0ClockCycle() const { return m_combinedT0ClockCycle; }
66 int getCombinedT0RVC2GDL() const { return m_combinedT0RVC2GDL; }
67 int getEventNumberL1() const { return m_eventNumberL1; }
68 int getRVCL1() const { return m_rvcL1; }
69
70 void setCombinedT0(int combinedT0);
71 void setRVCNow(int rvcNow);
72 void setCombinedT0ClockCycle(int combinedT0ClockCycle);
73 void setCombinedT0RVC2GDL(int combinedT0RVC2GDL);
74 void setEventNumberL1(int eventNumberL1);
75 void setRVCL1(int rvcL1);
76
77 private:
78
91
92 ClassDef(TRGTOPCombinedT0Decision, 1);
93
94 };
95
97} //end namespace Belle2
int m_rvcNow
rvc at the time when this t0 was posted in FW
int m_rvcL1
rvc at the time L1 was issued (for latency and window width studies)
TRGTOPCombinedT0Decision(int combinedT0, int rvcNow, int combinedT0ClockCycle, int combinedT0RVC2GDL, int eventNumberL1, int rvcL1)
Another Useful Constructor.
int m_combinedT0RVC2GDL
rvc at the time when this t0 was supposed to be posted to GDL
ClassDef(TRGTOPCombinedT0Decision, 1)
ClassDef.
TRGTOPCombinedT0Decision(int combinedT0)
A Useful Constructor.
int m_eventNumberL1
L1 event number from header.
int m_combinedT0ClockCycle
clock cycle number in b2l buffer when this t0 was posted to b2l
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Abstract base class for different kinds of events.