NtupleWriter13/NtupleWriter13-00-01-00/NtupleWriter13/Vertex.h

00001 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00002 // 18.08.2007, AUTHOR: OLIVER KORTNER
00003 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00004 
00005 #ifndef MPIHiggsAnalysis_VertexH
00006 #define MPIHiggsAnalysis_VertexH
00007 
00008 //::::::::::::::::::
00009 //:: CLASS Vertex ::
00010 //::::::::::::::::::
00011 
00021 
00022 //::::::::::::::::::
00023 //:: HEADER FILES ::
00024 //::::::::::::::::::
00025 
00026 // CLHEP //
00027 #include "CLHEP/Vector/ThreeVector.h"
00028 
00029 namespace MPIHiggsAnalysis {
00030 
00031 class Vertex {
00032 
00033 public:
00034 // Constructor //
00035         Vertex(void);
00037 
00038         Vertex(const Hep3Vector & pos, const Hep3Vector & pos_err,
00039                 const double & chisqu, const unsigned int & ndof,
00040                 const double & E_T, const unsigned int & nb_tracks);
00049 
00050 // Methods //
00051         const Hep3Vector & position(void) const;
00053         const Hep3Vector & positionError(void) const;
00056         double chi2(void) const;
00058         unsigned int numberOfDegreesOfFreedom(void) const;
00061         double Et(void) const;
00065         unsigned int numberOfTracks(void) const;
00068         bool operator < (const Vertex & vertex) const;
00071         bool operator > (const Vertex & vertex) const;
00074         bool operator <= (const Vertex & vertex) const;
00077         bool operator >= (const Vertex & vertex) const;
00080 
00081 private:
00082         Hep3Vector m_pos; // vertex position
00083         Hep3Vector m_pos_err; // error of the vertex position
00084         double m_chi2; // chi^2 of the vertex fit
00085         unsigned int m_ndof; // number of degrees of freedom of the vertex fit
00086         double m_Et; // sum of the transverse energies of the tracks emerging
00087                      // from the vertex
00088         unsigned int m_nb_tracks; // number of tracks emerging from the vertex
00089 
00090 };
00091 
00092 }
00093 
00094 #endif

Generated on Tue Oct 21 11:50:42 2008 for NtupleAnalysis by  doxygen 1.5.1