Belle II Software development
TRGTOPTimeStamp.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 TRGTOPTIMESTAMP_H
10#define TRGTOPTIMESTAMP_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 TRGTOPTimeStamp : 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 private:
67
71 int m_slot;
72
75 };
76
78} //end namespace Belle2
79
80#endif
Defines interface for accessing relations of objects in StoreArray.
Example Detector.
ClassDef(TRGTOPTimeStamp, 15)
ClassDef.
TRGTOPTimeStamp(int timeStamp)
A Useful Constructor.
int m_timeStamp
timestamp value in 1/8 of FTSW clock cycle (conventional "2ns")
TRGTOPTimeStamp(int timeStamp, int slot)
Another Useful Constructor.
~TRGTOPTimeStamp()
Destructor.
int m_slot
slot number (1 through 16)
Abstract base class for different kinds of events.