FEDRA emulsion software from the OPERA Collaboration
VtDistance.hh
Go to the documentation of this file.
1 #ifndef __VTDISTANCE
2 #define __VTDISTANCE
3 // *****************************************************************************
4 //
5 // source:
6 //
7 // type: source code
8 //
9 // created: 21. Aug 2000
10 //
11 // author: Thorsten Glebe
12 // HERA-B Collaboration
13 // Max-Planck-Institut fuer Kernphysik
14 // Saupfercheckweg 1
15 // 69117 Heidelberg
16 // Germany
17 // E-mail: T.Glebe@mpi-hd.mpg.de
18 //
19 // Description: an (incomplete) collection of distance functions
20 //
21 // changes:
22 // 21 Aug 2000 (TG) creation
23 // 04 Sep 2000 (TG) SGNdistance(const Track&, const Vertex&) function added
24 // 06 Sep 2000 (TG) SGNdistance(const Track&, double x, double y, double z) added
25 // 14 Sep 2000 (TG) distance() functions returning chi2 renamed to distanceChi2()
26 // 26 Okt 2000 (TG) #ifndef NO_ARTE added (for integration into CLUE)
27 //
28 // *****************************************************************************
29 
30 namespace VERTEX {
31  class Track;
32  class Vertex;
33 
37  double distanceChi2(Track& t1, Track& t2);
38 
40  double distance(const Track& t, const Vertex& v);
41  // spatial distance track - vertex
42  inline double distance(const Vertex& v, const Track& t) { return distance(t,v); }
43 
45  double SGNdistance(const Track& t, const Vertex& v);
46  // signed spatial distance track - vertex
47  inline double SGNdistance(const Vertex& v, const Track& t) {
48  return SGNdistance(t,v);
49  }
50 
52  double SGNdistance(const Track& t, double xv, double yv, double zv);
53 
55  double distanceChi2(const Vertex& v1, const Vertex& v2);
56 
58  double distanceChi2(const Vertex& v, double x, double y, double z);
59 
61 // double SGNdistance(const Track& t, const VertexIf& ap);
62 } // end of namespace VERTEX
63 #endif
TTree * t
Definition: check_shower.C:4
Definition: Track.h:10
Definition: VtTrack.hh:64
Definition: VtVertex.hh:88
Definition: VtDistance.hh:30
double distanceChi2(Track &t1, Track &t2)
$\chi^2$ distance track - track, $ndf = 1$
Definition: VtDistance.C:40
double SGNdistance(const Track &t, const Vertex &v)
signed spatial distance track - vertex
Definition: VtDistance.C:63
double distance(const Track &t, const Vertex &v)
spatial distance track - vertex
Definition: VtDistance.C:49