Belle II Software  release-08-01-10
TRGTOPTimingISimSlot.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 TRGTOPTIMINGISIMSLOT_H
10 #define TRGTOPTIMINGISIMSLOT_H
11 
12 //#pragma once
13 
14 //#include <TObject.h>
15 #include <framework/datastore/RelationsObject.h>
16 
17 #include <vector>
18 
19 #include <trg/top/dataobjects/TRGTOPTimingISim.h>
20 
21 namespace Belle2 {
29  // class TRGTOPTimingISimSlot : public TObject {
31 
32  public:
33 
34  // Empty constructor
35  // Recommended for ROOT IO
37  m_slotId(0)
38  {}
39 
42  int slotId
43  ) :
44  m_slotId(slotId)
45  {}
46 
49  int slotId,
50  int numberOfTimeStamps
51  ) :
52  m_slotId(slotId),
53  m_numberOfTimeStamps(numberOfTimeStamps)
54  {}
55 
58 
59  int getSlotId() const { return m_slotId;}
60  int getNumberOfTimeStamps() const { return m_numberOfTimeStamps;}
61  //int get() const { return m_;}
62 
63  //Need namespace qualifier because ROOT CINT has troubles otherwise
64  // const std::vector<Belle2::TRGTOPTimingISim> getTimeStamps() { return m_timeStamps; }
65 
66  void setSlotId(int slotId);
67  void setNumberOfTimeStamps(int numberOfTimeStamps);
68 
69  //void set(int );
70 
71  void addTimingISim(TRGTOPTimingISim timingISim);
72 
73  private:
74 
76  int m_slotId;
77 
80 
82  // std::vector<TRGTOPTimingISim> m_timingISims; /**< a vector of slot-level TOP timing decisions */
83 
86 
87  };
88 
90 } //end namespace Belle2
91 
92 #endif
93 
Defines interface for accessing relations of objects in StoreArray.
TRGTOPTimingISimSlot(int slotId, int numberOfTimeStamps)
Another Useful Constructor.
TRGTOPTimingISimSlot(int slotId)
A Useful Constructor.
int m_slotId
slot Id (1 through 16)
int m_numberOfTimeStamps
number of timestamps
ClassDef(TRGTOPTimingISimSlot, 1)
vector of ISim timings
Abstract base class for different kinds of events.