Back to index

See source file

CVertex.h

 
//----------------------------------------------------------------------------- 
//  $Header: /asis/offline/ceres/cool/project/RCS/CVertex.h,v 3.3 1997/08/19 10:15:42 messer Exp $ 
// 
//  COOL Program Library   
//  Copyright (C) CERES collaboration, 1996 
// 
//  Declarations of class CVertex 
// 
//----------------------------------------------------------------------------- 
#ifndef CVERTEX_H 
#define CVERTEX_H 
 
#include <iostream.h>  
#include "cool.h"  
#include "CCoordinate.h"  
 
class CVertex {  
 
public:  
  CVertex();  
  CVertex(double, double, double);  
  CVertex(double, double, double, double);  
  ~CVertex();  
 
public:  
  void print(ostream & = cout); 
    
  void transform(CLabCylinderCoord&, const CEventCoord&) const;  // see CCoordinate.h 
  void transform(CEventCoord&, const CLabCylinderCoord&) const;  // see CCoordinate.h 
  void transform(CLabXYZCoord&, const CEventCoord&) const;       // see CCoordinate.h 
  void transform(CEventCoord&, const CLabXYZCoord&) const;       // see CCoordinate.h 
  void transform(CLabCylinderCoord&, const CEventXYZCoord&) const;  // see CCoordinate.h 
  void transform(CEventXYZCoord&, const CLabCylinderCoord&) const;  // see CCoordinate.h 
  void transform(CLabXYZCoord&, const CEventXYZCoord&) const;       // see CCoordinate.h 
  void transform(CEventXYZCoord&, const CLabXYZCoord&) const;       // see CCoordinate.h 
 
  CLabXYZCoord getPosition() const { return position; } 
  double getX       () const { return position.getX(); } 
  double getY       () const { return position.getY(); } 
  double getZ       () const { return position.getZ(); } 
  double getFittedZ () const { return fittedZPosition; } 
  double getVarX    () const { return varX; } 
  double getVarY    () const { return varY; } 
  double getChi2    () const { return chi2   ; } 
  int    getNTracks () const { return nTracks; } 
  int    getRC      () const { return rc     ; } 
   
  void setX       (double val) { position.setX(val); } 
  void setY       (double val) { position.setY(val); } 
  void setZ       (double val) { position.setZ(val); } 
  void setFittedZ (double val) { fittedZPosition = val; } 
  void setVarX    (double val) { varX = val; } 
  void setVarY    (double val) { varY = val; } 
  void setChi2    (double val) { chi2    = val; } 
  void setNTracks (int    val) { nTracks = val; } 
  void setRC      (int    val) { rc      = val; } 
 
protected: 
  CLabXYZCoord position; 
  double       varX; 
  double       varY; 
  double       chi2; 
  int          nTracks; 
  int          rc;                        // return code from MINUIT fit 
 
  double       fittedZPosition; 
};  
 
#endif /* CVERTEX_H */  

Back to index

See source file