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
11//using namespace std;
12using namespace Belle2;
13
14void TRGTOPSlotTiming::setSlotId(int slotId) { m_slotId = slotId ; }
15void TRGTOPSlotTiming::setSlotTiming(int slotTiming) { m_slotTiming = slotTiming ; }
16void TRGTOPSlotTiming::setSlotSegment(int slotSegment) { m_slotSegment = slotSegment; }
17void TRGTOPSlotTiming::setSlotNHits(int slotNHits) { m_slotNHits = slotNHits ; }
18void TRGTOPSlotTiming::setSlotLogL(int slotLogL) { m_slotLogL = slotLogL ; }
19void TRGTOPSlotTiming::setSlotDecisionClockCycle(int slotDecisionClockCycle) { m_slotDecisionClockCycle = slotDecisionClockCycle; }
20void TRGTOPSlotTiming::setSlotNErrors(int slotNErrors) { m_slotNErrors = slotNErrors; }
21void TRGTOPSlotTiming::setSlotThisBoard(int slotThisBoard) { m_slotThisBoard = slotThisBoard; }
22//void TRGTOPSlotTiming::set(int ) { m_ = ; }
23void TRGTOPSlotTiming::setSlotFirstTS(int slotFirstTS) { m_slotFirstTS = slotFirstTS; }
24
25bool TRGTOPSlotTiming::isThisBoard() const
26{
27 if (m_slotThisBoard == 1) return true;
28 return false;
29}
30
31bool TRGTOPSlotTiming::isFirstTSAvailable() const
32{
33 if (m_slotThisBoard != 1) return false;
34 if (m_slotFirstTS == -1) return false;
35 return true;
36}
37
38// no longer needed (in ROOT v6)
39//ClassImp(TRGTOPSlotTiming)
40
41
42
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_slotSegment
slot segment
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.