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#ifndef TRGTOPCOMBINEDT0DECISION_H
10#define TRGTOPCOMBINEDT0DECISION_H
11
12//#pragma once
13
14//#include <TObject.h>
15#include <framework/datastore/RelationsObject.h>
16
17#include <vector>
18#include <limits>
19
20namespace Belle2 {
27 // class TRGTOPCombinedT0Decision : public TObject {
29
30 public:
31
32 // Empty constructor
33 // Recommended for ROOT IO
35 m_combinedT0(0),
36 m_rvcNow(0),
40 m_rvcL1(0)
41 {}
42
45 int combinedT0
46 ) :
47 m_combinedT0(combinedT0)
48 {}
49
52 int combinedT0,
53 int rvcNow,
54 int combinedT0ClockCycle,
55 int combinedT0RVC2GDL,
56 int eventNumberL1,
57 int rvcL1
58 ) :
59 m_combinedT0(combinedT0),
60 m_rvcNow(rvcNow),
61 m_combinedT0ClockCycle(combinedT0ClockCycle),
62 m_combinedT0RVC2GDL(combinedT0RVC2GDL),
63 m_eventNumberL1(eventNumberL1),
64 m_rvcL1(rvcL1)
65 {}
66
67
70
71 int getCombinedT0() const { return m_combinedT0; }
72 int getRVCNow() const { return m_rvcNow; }
73 int getCombinedT0ClockCycle() const { return m_combinedT0ClockCycle; }
74 int getCombinedT0RVC2GDL() const { return m_combinedT0RVC2GDL; }
75 int getEventNumberL1() const { return m_eventNumberL1; }
76 int getRVCL1() const { return m_rvcL1; }
77 //int get() const { return m_;}
78
79 void setCombinedT0(int combinedT0);
80 void setRVCNow(int rvcNow);
81 void setCombinedT0ClockCycle(int combinedT0ClockCycle);
82 void setCombinedT0RVC2GDL(int combinedT0RVC2GDL);
83 void setEventNumberL1(int eventNumberL1);
84 void setRVCL1(int rvcL1);
85 //void set(int );
86
87 private:
88
101
104 };
105
107} //end namespace Belle2
108
109#endif
Defines interface for accessing relations of objects in StoreArray.
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
Abstract base class for different kinds of events.