Belle II Software development
TRGTOPWaveFormTimeStamp.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 TRGTOPWAVEFORMTIMESTAMP_H
10#define TRGTOPWAVEFORMTIMESTAMP_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 TRGTOPWaveFormTimeStamp : public TObject {
29
30 public:
31
32 // Empty constructor
33 // Recommended for ROOT IO
36 {}
37
40 int timeStamp
41 ) :
42 m_timeStamp(timeStamp)
43 {}
44
47 int timeStamp,
48 int slot
49 ) :
50 m_timeStamp(timeStamp),
51 m_slot(slot)
52 {}
53
54
57
58 int getTimeStamp() const { return m_timeStamp; }
59 int getSlot() const { return m_slot; }
60 //int get() const { return m_;}
61
62 void setTimeStamp(int timeStamp);
63 void setSlot(int slot);
64 //void set(int );
65
66 bool isEmptyClockCycle() const;
67 bool isValid() const;
68
69 private:
70
74 int m_slot;
75
78 };
79
81} //end namespace Belle2
82
83#endif
Defines interface for accessing relations of objects in StoreArray.
int m_timeStamp
timestamp value in 1/8 of FTSW clock cycle (conventional "2ns")
TRGTOPWaveFormTimeStamp(int timeStamp)
A Useful Constructor.
TRGTOPWaveFormTimeStamp(int timeStamp, int slot)
Another Useful Constructor.
int m_slot
slot number (1 through 16)
ClassDef(TRGTOPWaveFormTimeStamp, 15)
ClassDef.
Abstract base class for different kinds of events.