Belle II Software  release-08-01-10
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;
12 using namespace Belle2;
13 
14 void TRGTOPSlotTiming::setSlotId(int slotId) { m_slotId = slotId ; }
15 void TRGTOPSlotTiming::setSlotTiming(int slotTiming) { m_slotTiming = slotTiming ; }
16 void TRGTOPSlotTiming::setSlotSegment(int slotSegment) { m_slotSegment = slotSegment; }
17 void TRGTOPSlotTiming::setSlotNHits(int slotNHits) { m_slotNHits = slotNHits ; }
18 void TRGTOPSlotTiming::setSlotLogL(int slotLogL) { m_slotLogL = slotLogL ; }
19 void TRGTOPSlotTiming::setSlotDecisionClockCycle(int slotDecisionClockCycle) { m_slotDecisionClockCycle = slotDecisionClockCycle; }
20 void TRGTOPSlotTiming::setSlotNErrors(int slotNErrors) { m_slotNErrors = slotNErrors; }
21 void TRGTOPSlotTiming::setSlotThisBoard(int slotThisBoard) { m_slotThisBoard = slotThisBoard; }
22 //void TRGTOPSlotTiming::set(int ) { m_ = ; }
23 void TRGTOPSlotTiming::setSlotFirstTS(int slotFirstTS) { m_slotFirstTS = slotFirstTS; }
24 
25 bool TRGTOPSlotTiming::isThisBoard() const
26 {
27  if (m_slotThisBoard == 1) return true;
28  return false;
29 }
30 
31 bool 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.