Belle II Software development
TRGTOPSlotTiming.cc
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#include <trg/top/dataobjects/TRGTOPSlotTiming.h>
10
11using namespace Belle2;
12
13void TRGTOPSlotTiming::setSlotId(int slotId) { m_slotId = slotId ; }
14void TRGTOPSlotTiming::setSlotTiming(int slotTiming) { m_slotTiming = slotTiming ; }
15void TRGTOPSlotTiming::setSlotSegment(int slotSegment) { m_slotSegment = slotSegment; }
16void TRGTOPSlotTiming::setSlotNHits(int slotNHits) { m_slotNHits = slotNHits ; }
17void TRGTOPSlotTiming::setSlotLogL(int slotLogL) { m_slotLogL = slotLogL ; }
18void TRGTOPSlotTiming::setSlotDecisionClockCycle(int slotDecisionClockCycle) { m_slotDecisionClockCycle = slotDecisionClockCycle; }
19void TRGTOPSlotTiming::setSlotNErrors(int slotNErrors) { m_slotNErrors = slotNErrors; }
20void TRGTOPSlotTiming::setSlotThisBoard(int slotThisBoard) { m_slotThisBoard = slotThisBoard; }
21void TRGTOPSlotTiming::setSlotFirstTS(int slotFirstTS) { m_slotFirstTS = slotFirstTS; }
22
23bool TRGTOPSlotTiming::isThisBoard() const
24{
25 return (m_slotThisBoard == 1);
26}
27
28bool TRGTOPSlotTiming::isFirstTSAvailable() const
29{
30 return (m_slotThisBoard != 1 or m_slotFirstTS == -1) ? false : true;
31}
int m_slotNHits
slot N hits (timestamps)
int m_slotThisBoard
source of slot information (1 means this UT3, 0 means the other UT3)
int m_slotId
slot Id (1 through 16)
int m_slotDecisionClockCycle
clock cycle when the decision was made
int m_slotFirstTS
first TS for the decision (when available)
Abstract base class for different kinds of events.