CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
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 : [email protected]
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
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
59
60/// TMDCWireHit utilities
61
62int sortByWireId(const TMDCWireHit ** a, const TMDCWireHit ** b);
63
64
65
66/// Circle utilities
67
68int intersection(const HepPoint3D & c1,
69 double r1,
70 const HepPoint3D & c2,
71 double r2,
72 double eps,
73 HepPoint3D & x1,
74 HepPoint3D & x2);
75
76///
77void bitDisplay(unsigned);
78void bitDisplay(unsigned val, unsigned firstDigit, unsigned lastDigit);
79
80//-----------------------------------------------------------------------------
81
82#ifdef TMDCUtil_NO_INLINE
83#define inline
84#else
85#undef inline
86#define TMDCUtil_INLINE_DEFINE_HERE
87#endif
88
89#ifdef TMDCUtil_INLINE_DEFINE_HERE
90
91
92#endif
93
94#undef inline
95
96#endif /* TMDCUtil_FLAG_ */
97
TCanvas * c1
EvtTensor3C eps(const EvtVector3R &v)
HepGeom::Point3D< double > HepPoint3D
Definition TMDCUtil.h:29
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:99
const HepPoint3D ORIGIN
Constants.
Definition TMDCUtil.cxx:47
float CathodeSectorId(unsigned id)
geocdc utilities
Definition TMDCUtil.cxx:60
void bitDisplay(unsigned)
Definition TMDCUtil.cxx:85
double chisq2confLevel(int, double)
ALPHA = 10000. / 2.99792458 / 15.
Definition TMDCUtil.cxx:156
A class to represent a wire in MDC.
Definition TMDCWire.h:55
A class to relate TMDCWireHit and TTrack objects.
Definition TSegment.h:43