Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:44:59

0001 
0002 
0003 #ifndef __LASCOORDINATESET_H
0004 #define __LASCOORDINATESET_H
0005 
0006 #include <iostream>
0007 
0008 ///
0009 /// container for phi, x, y coordinates
0010 /// and their errors
0011 ///
0012 class LASCoordinateSet {
0013 public:
0014   LASCoordinateSet() : phi(0.), phiError(0.), r(0.), rError(0.), z(0.), zError(0.) {}
0015   LASCoordinateSet(double, double, double, double, double, double);
0016 
0017   void GetCoordinates(double&, double&, double&, double&, double&, double&) const;
0018   double GetPhi(void) const { return phi; }
0019   double GetPhiError(void) const { return phiError; }
0020   double GetR(void) const { return r; }
0021   double GetRError(void) const { return rError; }
0022   double GetZ(void) const { return z; }
0023   double GetZError(void) const { return zError; }
0024 
0025   void SetCoordinates(double, double, double, double, double, double);
0026   void SetErrors(double, double, double);
0027   void SetPhi(double aPhi) { phi = aPhi; }
0028   void SetPhi(double aPhi, double aPhiError) {
0029     phi = aPhi;
0030     phiError = aPhiError;
0031   }
0032   void SetPhiError(double aPhiError) { phiError = aPhiError; }
0033   void SetR(double aR) { r = aR; }
0034   void SetR(double aR, double aRError) {
0035     r = aR;
0036     rError = aRError;
0037   }
0038   void SetRError(double aRError) { rError = aRError; }
0039   void SetZ(double aZ) { z = aZ; }
0040   void SetZ(double aZ, double aZError) {
0041     z = aZ;
0042     zError = aZError;
0043   }
0044   void SetZError(double aZError) { zError = aZError; }
0045 
0046   void Dump(void);
0047 
0048 private:
0049   double phi;
0050   double phiError;
0051   double r;
0052   double rError;
0053   double z;
0054   double zError;
0055 };
0056 
0057 #endif