Belle II Software
release-05-01-25
TRGTOPSlotTiming.h
1
//-----------------------------------------------------------
2
// $Id$
3
//-----------------------------------------------------------
4
// Filename : TRGTOPSlotTiming.h
5
// Section : TRG TOP
6
// Owner : Tong Pang Vladimir Savinov
7
// Email : top16@pitt.edu, vladimirsavinov@gmail.com
8
//-----------------------------------------------------------
9
// Description : A class to represent TOP L1 slot-level timing decision
10
//-----------------------------------------------------------
11
// $Log$
12
//-----------------------------------------------------------
13
#ifndef TRGTOPSLOTTIMING_H
14
#define TRGTOPSLOTTIMING_H
15
16
#include <TObject.h>
17
18
#include <vector>
19
20
#include "trg/top/dataobjects/TRGTOPSlotTiming.h"
21
22
namespace
Belle2
{
28
class
TRGTOPSlotTiming :
public
TObject {
30
31
public
:
32
33
// Empty constructor
34
// Recommended for ROOT IO
35
TRGTOPSlotTiming()
36
{
37
}
38
40
explicit
TRGTOPSlotTiming
(
41
int
slotId
42
)
43
{
44
m_slotId
= slotId;
45
m_slotNErrors
= 0;
46
}
47
49
TRGTOPSlotTiming
(
50
int
slotId,
51
int
slotTiming,
52
int
slotSegment,
53
int
slotNHits,
54
int
slotLogL,
55
int
slotNErrors
56
)
57
{
58
m_slotId
= slotId;
59
m_slotTiming
= slotTiming;
60
m_slotSegment
= slotSegment;
61
m_slotNHits
= slotNHits;
62
m_slotLogL
= slotLogL;
63
m_slotNErrors
= slotNErrors;
64
}
65
67
~TRGTOPSlotTiming
() {}
68
69
int
getSlotId()
const
{
return
m_slotId
; }
70
int
getSlotTiming()
const
{
return
m_slotTiming
; }
71
int
getSlotSegment()
const
{
return
m_slotSegment
;}
72
int
getSlotNHits()
const
{
return
m_slotNHits
; }
73
int
getSlotLogL()
const
{
return
m_slotLogL
; }
74
int
getSlotNErrors()
const
{
return
m_slotNErrors
;}
75
//int get() const { return m_;}
76
77
void
setSlotId(
int
slotId);
78
void
setSlotTiming(
int
slotTiming);
79
void
setSlotSegment(
int
slotSegment);
80
void
setSlotNHits(
int
slotNHits);
81
void
setSlotLogL(
int
slotLogL);
82
void
setSlotNErrors(
int
slotNErrors);
83
//void set(int );
84
85
private
:
86
88
int
m_slotId
;
90
int
m_slotTiming
;
92
int
m_slotSegment
;
94
int
m_slotNHits
;
96
int
m_slotLogL
;
98
int
m_slotNErrors
;
99
101
ClassDef
(
TRGTOPSlotTiming
, 2);
102
103
};
104
106
}
//end namespace Belle2
107
108
#endif
109
Belle2::TRGTOPSlotTiming
Example Detector.
Definition:
TRGTOPSlotTiming.h:29
Belle2::TRGTOPSlotTiming::TRGTOPSlotTiming
TRGTOPSlotTiming(int slotId)
A Useful Constructor.
Definition:
TRGTOPSlotTiming.h:40
Belle2::TRGTOPSlotTiming::m_slotTiming
int m_slotTiming
slot timing
Definition:
TRGTOPSlotTiming.h:90
Belle2::TRGTOPSlotTiming::~TRGTOPSlotTiming
~TRGTOPSlotTiming()
Destructor.
Definition:
TRGTOPSlotTiming.h:67
Belle2::TRGTOPSlotTiming::TRGTOPSlotTiming
TRGTOPSlotTiming(int slotId, int slotTiming, int slotSegment, int slotNHits, int slotLogL, int slotNErrors)
Another Useful Constructor.
Definition:
TRGTOPSlotTiming.h:49
Belle2::TRGTOPSlotTiming::m_slotSegment
int m_slotSegment
slot segment
Definition:
TRGTOPSlotTiming.h:92
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::TRGTOPSlotTiming::m_slotNErrors
int m_slotNErrors
slot errors
Definition:
TRGTOPSlotTiming.h:98
Belle2::TRGTOPSlotTiming::m_slotNHits
int m_slotNHits
slot N hits (timestamps)
Definition:
TRGTOPSlotTiming.h:94
Belle2::TRGTOPSlotTiming::ClassDef
ClassDef(TRGTOPSlotTiming, 2)
the class title
Belle2::TRGTOPSlotTiming::m_slotId
int m_slotId
slot Id (1 through 16)
Definition:
TRGTOPSlotTiming.h:88
Belle2::TRGTOPSlotTiming::m_slotLogL
int m_slotLogL
slot logL
Definition:
TRGTOPSlotTiming.h:96
trg
top
dataobjects
include
TRGTOPSlotTiming.h
Generated on Fri Nov 5 2021 04:06:04 for Belle II Software by
1.8.17