Belle II Software  release-08-01-10
TRGGRLShortTrack.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 TRGGRLShortTrack_H
10 #define TRGGRLShortTrack_H
11 
12 #include <framework/datastore/RelationsObject.h>
13 #include <vector>
14 
15 namespace Belle2 {
23  public:
24 
29 
31  double get_TS_ID(int i) const {return m_TS_ID[i];}
32 
34  double get_TS_phi(int i) const {return m_TS_ID[i] * 5.625;}
35 
37  void set_TS_ID(int i, int id) { m_TS_ID[i] = id; }
38 
39 
41  void init()
42  {
43  m_TS_ID.clear();
44  for (int i = 0; i < 5; i++) {
45  m_TS_ID.push_back(-1);
46  }
47  }
48 
49  private:
50 
52  std::vector<int> m_TS_ID = std::vector<int>(0, 0);
53 
55  ClassDef(TRGGRLShortTrack, 1); /*< the class title */
56 
57  };
58 
60 } // end namespace Belle2
61 
62 #endif
Defines interface for accessing relations of objects in StoreArray.
a class for neutral ECL cluster in TRGGRL
void init()
initialization
double get_TS_ID(int i) const
Get TS ID of SL i, from 0 to 63.
ClassDef(TRGGRLShortTrack, 1)
! The Class title
void set_TS_ID(int i, int id)
set TS ID of SL i
double get_TS_phi(int i) const
Get TS phi of SL i with unit = 5.625.
std::vector< int > m_TS_ID
TSF ID used for the short track.
TRGGRLShortTrack()
Constructor.
Abstract base class for different kinds of events.