Belle II Software  release-05-01-25
TRGGRLShortTrack.h
1 //-----------------------------------------------------------
2 // $Id$
3 //-----------------------------------------------------------
4 // Filename : TRGGRLShortTrack.h
5 // Section : TRG GRL
6 // Owner : Yun-Tsung Lai
7 // Email : ytlai@post.kek.jp
8 //-----------------------------------------------------------
9 // Description : storeArray for TRG GRL CDC-KLM matching.
10 //-----------------------------------------------------------
11 // $Log$
12 //-----------------------------------------------------------
13 
14 #ifndef TRGGRLShortTrack_H
15 #define TRGGRLShortTrack_H
16 
17 #include <framework/datastore/RelationsObject.h>
18 #include <vector>
19 
20 namespace Belle2 {
26  class TRGGRLShortTrack : public RelationsObject {
28  public:
29 
34 
36  double get_TS_ID(int i) const {return m_TS_ID[i];}
37 
39  double get_TS_phi(int i) const {return m_TS_ID[i] * 5.625;}
40 
42  void set_TS_ID(int i, int id) { m_TS_ID[i] = id; }
43 
44 
46  void init()
47  {
48  m_TS_ID.clear();
49  for (int i = 0; i < 5; i++) {
50  m_TS_ID.push_back(-1);
51  }
52  }
53 
54  private:
55 
57  std::vector<int> m_TS_ID = std::vector<int>(0, 0);
58 
60  ClassDef(TRGGRLShortTrack, 1); /*< the class title */
61 
62  };
63 
65 } // end namespace Belle2
66 
67 #endif
Belle2::TRGGRLShortTrack::get_TS_ID
double get_TS_ID(int i) const
Get TS ID of SL i, from 0 to 63.
Definition: TRGGRLShortTrack.h:36
Belle2::TRGGRLShortTrack::set_TS_ID
void set_TS_ID(int i, int id)
set TS ID of SL i
Definition: TRGGRLShortTrack.h:42
Belle2::TRGGRLShortTrack::TRGGRLShortTrack
TRGGRLShortTrack()
Constructor.
Definition: TRGGRLShortTrack.h:31
Belle2::TRGGRLShortTrack
a class for neutral ECL cluster in TRGGRL
Definition: TRGGRLShortTrack.h:27
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TRGGRLShortTrack::ClassDef
ClassDef(TRGGRLShortTrack, 1)
! The Class title
Belle2::TRGGRLShortTrack::get_TS_phi
double get_TS_phi(int i) const
Get TS phi of SL i with unit = 5.625.
Definition: TRGGRLShortTrack.h:39
Belle2::TRGGRLShortTrack::~TRGGRLShortTrack
~TRGGRLShortTrack()
Destructor.
Definition: TRGGRLShortTrack.h:33
Belle2::RelationsObject
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Definition: RelationsObject.h:443
Belle2::TRGGRLShortTrack::init
void init()
initialization
Definition: TRGGRLShortTrack.h:46
Belle2::TRGGRLShortTrack::m_TS_ID
std::vector< int > m_TS_ID
Energy of the cluster.
Definition: TRGGRLShortTrack.h:57