CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RZLine.h
Go to the documentation of this file.
1 #ifndef PixelTrackFitting_RZLine_H
2 #define PixelTrackFitting_RZLine_H
3 
7 #include <vector>
8 
9 class RZLine {
10 public:
11 
12 
13  RZLine( const DynArray<GlobalPoint> & points,
15  const DynArray<bool>& isBarrel) : RZLine(points.begin(),errors.begin(),isBarrel.begin(),points.size()){}
16  RZLine( const GlobalPoint * points,
17  const GlobalError * errors,
18  const bool * isBarrel, unsigned int size);
19 
20  RZLine( const std::vector<float> & aR,
21  const std::vector<float> & aZ,
22  const std::vector<float> & aErrZ);
23 
24  void fit(float & cotTheta, float & intercept, float &covss, float &covii, float &covsi) const;
25 
26  float chi2(float cotTheta, float intercept) const;
27 
28 private:
29  std::vector<float> storage;
30  int nPoints;
31  float *r, *z, *errZ2;
32 };
33 #endif
float * errZ2
Definition: RZLine.h:31
bool isBarrel(GeomDetEnumerators::SubDetector m)
Definition: RZLine.h:9
std::vector< float > storage
Definition: RZLine.h:29
#define begin
Definition: vmac.h:30
void fit(float &cotTheta, float &intercept, float &covss, float &covii, float &covsi) const
Definition: RZLine.cc:44
float * r
Definition: RZLine.h:31
int nPoints
Definition: RZLine.h:30
RZLine(const DynArray< GlobalPoint > &points, const DynArray< GlobalError > &errors, const DynArray< bool > &isBarrel)
Definition: RZLine.h:13
float chi2(float cotTheta, float intercept) const
Definition: RZLine.cc:50
float * z
Definition: RZLine.h:31
tuple size
Write out results.