BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/TrkReco/include/TrkReco/TMDCUtil.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2// $Id: TMDCUtil.h,v 1.6 2010/03/31 09:58:59 liucy Exp $
3//-----------------------------------------------------------------------------
4// Filename : TMDCUtil.h
5// Section : Tracking MDC
6// Owner : Yoshi Iwasaki
7// Email : yoshihito.iwasaki@kek.jp
8//-----------------------------------------------------------------------------
9// Description : Utilities for MDC analyses and tracking.
10// See http://bsunsrv1.kek.jp/~yiwasaki/tracking/
11//-----------------------------------------------------------------------------
12
13#ifndef TMDCUtil_FLAG_
14#define TMDCUtil_FLAG_
15
16#ifdef TRKRECO_DEBUG_DETAIL
17# ifndef TRKRECO_DEBUG
18# define TRKRECO_DEBUG
19# endif
20#endif
21
22#include <string>
23
24// #define HEP_SHORT_NAMES
25#ifndef CLHEP_POINT3D_H
26# include "CLHEP/Geometry/Point3D.h"
27#endif
28#ifndef ENABLE_BACKWARDS_COMPATIBILITY
29typedef HepGeom::Point3D<double> HepPoint3D;
30#endif
31
32#include "CLHEP/Alist/AList.h"
33
34class TMLink;
35class TMDCWire;
36class TMDCWireHit;
37class TSegment;
38// class Geocdc_wire;
39// struct geocdc_wire;
40// struct geocdc_layer;
41class MdcGeoWire;
42class MdcGeoLayer;
43
44/// Constants
45extern const HepPoint3D ORIGIN;
46
47/// ALPHA = 10000. / 2.99792458 / 15.
48// #define ALPHA 222.376063
49
50/// Converter
51double chisq2confLevel( int, double );
52
53/// geocdc utilities
54
55// conversion of wire id to sector id
56float CathodeSectorId( unsigned id );
57
58/// TMDCWireHit utilities
59
60int sortByWireId( const TMDCWireHit** a, const TMDCWireHit** b );
61
62/// Circle utilities
63
64int intersection( const HepPoint3D& c1, double r1, const HepPoint3D& c2, double r2, double eps,
65 HepPoint3D& x1, HepPoint3D& x2 );
66
67///
68void bitDisplay( unsigned );
69void bitDisplay( unsigned val, unsigned firstDigit, unsigned lastDigit );
70
71//-----------------------------------------------------------------------------
72
73#ifdef TMDCUtil_NO_INLINE
74# define inline
75#else
76# undef inline
77# define TMDCUtil_INLINE_DEFINE_HERE
78#endif
79
80#ifdef TMDCUtil_INLINE_DEFINE_HERE
81
82#endif
83
84#undef inline
85
86#endif /* TMDCUtil_FLAG_ */
HepGeom::Point3D< double > HepPoint3D
EvtTensor3C eps(const EvtVector3R &v)
const HepPoint3D ORIGIN
Constants.
Definition TMDCUtil.cxx:47
int sortByWireId(const TMDCWireHit **a, const TMDCWireHit **b)
TMDCWireHit utilities.
int intersection(const HepPoint3D &c1, double r1, const HepPoint3D &c2, double r2, double eps, HepPoint3D &x1, HepPoint3D &x2)
Circle utilities.
Definition TMDCUtil.cxx:93
float CathodeSectorId(unsigned id)
geocdc utilities
Definition TMDCUtil.cxx:59
void bitDisplay(unsigned)
Definition TMDCUtil.cxx:82
double chisq2confLevel(int, double)
ALPHA = 10000. / 2.99792458 / 15.
Definition TMDCUtil.cxx:147
A class to relate TMDCWireHit and TTrack objects.