CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackResiduals.h
Go to the documentation of this file.
1 #ifndef TrackReco_TrackResiduals_h
2 #define TrackReco_TrackResiduals_h
3 
4 #include <iostream>
7 
8 class Trajectory;
9 
10 namespace reco
11 {
12 
13 class HitPattern;
14 
16 {
17 
18  friend class Trajectory;
19 
20 public:
21 
22  enum ResidualType {
25  };
26 
29  void setResidualXY(int idx, double residualX, double residualY);
30  void setPullXY(int idx, double pullX, double pullY);
31  void setResidualType(enum ResidualType);
32  void print(std::ostream &stream = std::cout) const;
33  void print(const HitPattern &, std::ostream &stream = std::cout) const;
36  double residualX(int i, const HitPattern &) const;
37  double residualY(int i, const HitPattern &) const;
40  double residualX(int i) const;
41  double residualY(int i) const;
42 
43 protected:
45  enum { numResiduals = 0x40 };
46  static double unpack_pull(unsigned char);
47  static unsigned char pack_pull(double);
48  static double unpack_residual(unsigned char);
49  static unsigned char pack_residual(double);
50 
51 private:
53  unsigned char residuals_[numResiduals];
55 };
56 
57 } // namespace reco
58 
59 #endif
60 
int i
Definition: DBlmapReader.cc:9
double residualY(int i, const HitPattern &) const
void setPullXY(int idx, double pullX, double pullY)
static double unpack_residual(unsigned char)
void setResidualType(enum ResidualType)
unsigned char residuals_[numResiduals]
residuals, bitpacked two hits to a char
double residualX(int i, const HitPattern &) const
static unsigned char pack_residual(double)
void print(std::ostream &stream=std::cout) const
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
void setResidualXY(int idx, double residualX, double residualY)
tuple cout
Definition: gather_cfg.py:145
static double unpack_pull(unsigned char)
static unsigned char pack_pull(double)