Belle II Software  release-05-01-25
TRGGRLMatch.h
1 //-----------------------------------------------------------------------------
2 // $Id$
3 //-----------------------------------------------------------------------------
4 // Filename : TRGGRLMatch.h
5 // Section : TRG CDC
6 // Owner : Yun-Tsung Lai
7 // Email : ytlai@hep1.phys.ntu.edu.tw
8 //-----------------------------------------------------------------------------
9 // $Log$
10 //-----------------------------------------------------------------------------
11 
12 #include "framework/datastore/StoreArray.h"
13 #include "trg/cdc/Track.h"
14 #include "trg/ecl/dataobjects/TRGECLCluster.h"
15 
16 namespace Belle2 {
27  class TRGGRLMatch {
28 
33  public:
34 
36  TRGGRLMatch(TRGCDCTrack* track, TRGECLCluster* cluster, int flag);
37 
39  virtual ~TRGGRLMatch();
40 
41  public:// Selectors
42 
44  void dump(void);
45 
47  double getCenter_x(void) const {return _center_x;};
49  double getCenter_y(void) const {return _center_y;};
51  double getCenter_z(void) const {return _center_z;};
53  double getCenter_r(void) const {return _r;};
55  double getCenter_phi(void) const {return _phi;};
57  double getCenter_pt(void) const {return _pt;};
59  double getCenter_z0(void) const {return _z0;};
61  double getCenter_pz(void) const {return _pz;};
63  double getCenter_slope(void) const {return _slope;};
64 
66  double getCluster_x(void) const {return _cluster_x;};
68  double getCluster_y(void) const {return _cluster_y;};
70  double getCluster_z(void) const {return _cluster_z;};
72  double getCluster_e(void) const {return _cluster_e;};
74  double getCluster_R(void) const {return _R;};
76  double getCluster_D(void) const {return _D;};
78  double getP_rescaled(void) const {return _re_scaled_p;};
80  double getP(void) const {return _p;};
81 
83  double getDr(void) const {return _dr;};
85  double getDz(void) const {return _dz;};
87  double getPoe(void) const {return _poe;};
88 
90  int getMatch3D(void) const {return _match3D;};
91 
92 
93  private:
94 
97 
100 
102  int _match3D;
103 
105  double _center_x;
107  double _center_y;
109  double _center_z;
111  double _r;
113  double _phi;
115  double _pt;
117  double _p;
119  double _pz;
121  double _z0;
123  double _slope;
124 
126  double _cluster_x;
128  double _cluster_y;
130  double _cluster_z;
132  double _cluster_e;
134  double _R;
136  double _D;
138  double _re_scaled_p;
139 
141  double _dr;
143  double _dz;
145  double _ex_x;
147  double _ex_y;
149  double _ex_z;
151  double _poe;
152 
154  void calculate(void);
155  };
156 
157 
158 
160 } // namespace Belle2
161 
Belle2::TRGGRLMatch::getCluster_R
double getCluster_R(void) const
a function returns transverse distance of the cluster to IP
Definition: TRGGRLMatch.h:74
Belle2::TRGGRLMatch::_cluster_x
double _cluster_x
x position of cluster
Definition: TRGGRLMatch.h:126
Belle2::TRGGRLMatch::getP_rescaled
double getP_rescaled(void) const
a function returns 3-momentum of a track scaled by cluster 3D position
Definition: TRGGRLMatch.h:78
Belle2::TRGGRLMatch::_pt
double _pt
pt of track
Definition: TRGGRLMatch.h:115
Belle2::TRGGRLMatch::_pz
double _pz
pz of track
Definition: TRGGRLMatch.h:119
Belle2::TRGGRLMatch::getCenter_pz
double getCenter_pz(void) const
a function returns pz of track helix
Definition: TRGGRLMatch.h:61
Belle2::TRGGRLMatch::getMatch3D
int getMatch3D(void) const
a function retuens flag tells 3D information is valid or not
Definition: TRGGRLMatch.h:90
Belle2::TRGGRLMatch::getCenter_y
double getCenter_y(void) const
a function returns center (y) of track helix
Definition: TRGGRLMatch.h:49
Belle2::TRGECLCluster
Example Detector.
Definition: TRGECLCluster.h:25
Belle2::TRGGRLMatch::_z0
double _z0
z0 of track
Definition: TRGGRLMatch.h:121
Belle2::TRGGRLMatch::getCenter_pt
double getCenter_pt(void) const
a function returns pt of the track
Definition: TRGGRLMatch.h:57
Belle2::TRGGRLMatch::getCenter_z0
double getCenter_z0(void) const
a function returns z0 of track helix
Definition: TRGGRLMatch.h:59
Belle2::TRGGRLMatch::getPoe
double getPoe(void) const
a function returns calculated p over E of the matching candidate
Definition: TRGGRLMatch.h:87
Belle2::TRGGRLMatch::_slope
double _slope
z slope (polar angle) of track
Definition: TRGGRLMatch.h:123
Belle2::TRGGRLMatch::_R
double _R
transverse distance of cluster to IP
Definition: TRGGRLMatch.h:134
Belle2::TRGGRLMatch::getCenter_slope
double getCenter_slope(void) const
a function returns z slope (polar angle) of track helix
Definition: TRGGRLMatch.h:63
Belle2::TRGGRLMatch::_cluster_z
double _cluster_z
z position of cluster
Definition: TRGGRLMatch.h:130
Belle2::TRGGRLMatch::getCluster_x
double getCluster_x(void) const
a function returns x position of the cluster
Definition: TRGGRLMatch.h:66
Belle2::TRGGRLMatch::_ex_z
double _ex_z
z position of the cluster calculated by matching
Definition: TRGGRLMatch.h:149
Belle2::TRGGRLMatch::_p
double _p
p of track
Definition: TRGGRLMatch.h:117
Belle2::TRGGRLMatch::_re_scaled_p
double _re_scaled_p
track momentum scaled with 3D information from cluster
Definition: TRGGRLMatch.h:138
Belle2::TRGGRLMatch::getDz
double getDz(void) const
a function returns calculated dz of the matching candidate
Definition: TRGGRLMatch.h:85
Belle2::TRGGRLMatch::_D
double _D
distance of clusterto IP
Definition: TRGGRLMatch.h:136
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TRGGRLMatch::_dr
double _dr
dr between track and cluster
Definition: TRGGRLMatch.h:141
Belle2::TRGGRLMatch::getCenter_x
double getCenter_x(void) const
a function returns center (x) of track helix
Definition: TRGGRLMatch.h:47
Belle2::TRGGRLMatch::getDr
double getDr(void) const
a function returns calculated dr of the matching candidate
Definition: TRGGRLMatch.h:83
Belle2::TRGGRLMatch::_dz
double _dz
dz between track and cluster
Definition: TRGGRLMatch.h:143
Belle2::TRGGRLMatch::_match3D
int _match3D
flag tells 3D information is valid or not
Definition: TRGGRLMatch.h:102
Belle2::TRGGRLMatch::dump
void dump(void)
Unpacker of the TRGGRLMatch.
Definition: TRGGRLMatch.cc:92
Belle2::TRGGRLMatch::~TRGGRLMatch
virtual ~TRGGRLMatch()
Destructor.
Definition: TRGGRLMatch.cc:38
Belle2::TRGGRLMatch::getCluster_z
double getCluster_z(void) const
a function returns z position of the cluster
Definition: TRGGRLMatch.h:70
Belle2::TRGGRLMatch::calculate
void calculate(void)
a function to execute calculation of matching
Definition: TRGGRLMatch.cc:43
Belle2::TRGGRLMatch::_cluster_y
double _cluster_y
y position of cluster
Definition: TRGGRLMatch.h:128
Belle2::TRGGRLMatch::getCluster_y
double getCluster_y(void) const
a function returns y position of the cluster
Definition: TRGGRLMatch.h:68
Belle2::TRGGRLMatch::_center_x
double _center_x
center (x) of track helix
Definition: TRGGRLMatch.h:105
Belle2::TRGGRLMatch::_track
TRGCDCTrack * _track
a pointer to the TRGCDCTrack of the matching candidate
Definition: TRGGRLMatch.h:90
Belle2::TRGGRLMatch::_cluster_e
double _cluster_e
deposit energy of cluster
Definition: TRGGRLMatch.h:132
Belle2::TRGGRLMatch::_cluster
TRGECLCluster * _cluster
a pointer to the TRGECLCluster of the matching candidate
Definition: TRGGRLMatch.h:99
Belle2::TRGGRLMatch::getP
double getP(void) const
a function returns 3-momentum of a track
Definition: TRGGRLMatch.h:80
Belle2::TRGCDCTrack
A class to represent a reconstructed charged track in TRGCDC.
Definition: Track.h:39
Belle2::TRGGRLMatch::_phi
double _phi
phi of the track center
Definition: TRGGRLMatch.h:113
Belle2::TRGGRLMatch
A class to represent a matching candidate in TRGGRL A matching candidate consists of a TRGCDCTrack an...
Definition: TRGGRLMatch.h:27
Belle2::TRGGRLMatch::TRGGRLMatch
TRGGRLMatch(TRGCDCTrack *track, TRGECLCluster *cluster, int flag)
public member functions of TRGGRLMatch class Private variables can be called by the corresponding get...
Definition: TRGGRLMatch.cc:30
Belle2::TRGGRLMatch::_center_z
double _center_z
center (z) of track helix
Definition: TRGGRLMatch.h:109
Belle2::TRGGRLMatch::getCluster_D
double getCluster_D(void) const
a function returns distance of the cluster to IP
Definition: TRGGRLMatch.h:76
Belle2::TRGGRLMatch::getCenter_r
double getCenter_r(void) const
a function returns radius of the track to IP
Definition: TRGGRLMatch.h:53
Belle2::TRGGRLMatch::_poe
double _poe
calculated p over e
Definition: TRGGRLMatch.h:151
Belle2::TRGGRLMatch::getCenter_phi
double getCenter_phi(void) const
a function returns phi of the track center
Definition: TRGGRLMatch.h:55
Belle2::TRGGRLMatch::_ex_x
double _ex_x
x position of the cluster calculated by matching
Definition: TRGGRLMatch.h:145
Belle2::TRGGRLMatch::_ex_y
double _ex_y
y position of the cluster calculated by matching
Definition: TRGGRLMatch.h:147
Belle2::TRGGRLMatch::_r
double _r
radius of track
Definition: TRGGRLMatch.h:111
Belle2::TRGGRLMatch::getCluster_e
double getCluster_e(void) const
a function returns deposit energy of the cluster
Definition: TRGGRLMatch.h:72
Belle2::TRGGRLMatch::_center_y
double _center_y
center (y) of track helix
Definition: TRGGRLMatch.h:107
Belle2::TRGGRLMatch::getCenter_z
double getCenter_z(void) const
a function returns center (z) of track helix
Definition: TRGGRLMatch.h:51