NtupleReader/NtupleReader/MyVertex.h

00001 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00002 // 27.07.2007, AUTHOR: OLIVER KORTNER
00003 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00004 
00005 #ifndef MyVertexCandidateH
00006 #define MyVertexCandidateH
00007 
00008 //::::::::::::::::::::
00009 //:: CLASS MyVertex ::
00010 //::::::::::::::::::::
00011 
00019 
00020 //::::::::::::::::::
00021 //:: HEADER FILES ::
00022 //::::::::::::::::::
00023 
00024 // standard C++ //
00025 #include <iostream>
00026 
00027 // ROOT //
00028 #include "TVector3.h"
00029 
00030 
00031 class MyVertex {
00032 
00033 public:
00034 // Constructors //
00035         MyVertex(void) {
00036                 init(TVector3(0.0, 0.0, 0.0), TVector3(0.0, 0.0, 0.0),
00037                         0, 0, 0, 0, 0);
00038                 }
00042         MyVertex(const TVector3 & position,
00043                         const TVector3 & position_error,
00044                         const double & chi2, const unsigned int & ndof,
00045                         const unsigned int & ind,
00046                         const double & E_t, const unsigned int & nb_tracks) {
00047                 init(position, position_error, chi2, ndof, ind, E_t, nb_tracks);
00048                 }
00059 
00060 // Methods //
00061         inline TVector3 position(void) const;
00063         inline TVector3 positionError(void) const;
00066         inline double chi2(void) const;
00068         inline unsigned int numberOfDegressOfFreedom(void) const;
00071         inline int index(void) const;
00074         inline double Et(void) const;
00077         inline unsigned int numberOfTracks(void) const;
00080 
00081 private:
00082 // vertex data //
00083         TVector3 m_position; // vertex position
00084         TVector3 m_position_error; // error of the coordinates of the vertex
00085                                      // position
00086         double m_chi2; // chi^2 of the vertex fit
00087         unsigned int m_ndof; // number of degrees of freedom in the vertex fit
00088         int m_index; // index of the vertex in the original vertex
00089                               // array
00090         double m_Et; // transverse energy of the vertex
00091         unsigned int m_nb_tracks; // number of tracks emerging from the vertex
00092 
00093 // private methods //
00094         inline void init(const TVector3 & position,
00095                         const TVector3 & position_error,
00096                         const double & chi2, const unsigned int & ndof,
00097                         const unsigned int & ind, const double & E_t,
00098                         const unsigned int & nb_tracks);
00099                         // initialization method (parameter definition see
00100                         // above)
00101 
00102 };
00103 
00104 //::::::::::::::::::::::::::::::::::::::::::::::
00105 //:: INCLUDE IMPLEMENTATION OF INLINE METHODS ::
00106 //::::::::::::::::::::::::::::::::::::::::::::::
00107 
00108 #include "MyVertex.ixx"
00109 
00110 #endif

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