CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/SimDataFormats/Vertex/interface/SimVertex.h

Go to the documentation of this file.
00001 #ifndef SimVertex_H
00002 #define SimVertex_H
00003 
00004 #include "SimDataFormats/Vertex/interface/CoreSimVertex.h"
00005 class SimVertex : public CoreSimVertex
00006 {
00007 
00008  public:
00009   
00010   typedef CoreSimVertex Core;
00012   SimVertex();
00013 
00015   SimVertex(const CoreSimVertex & t, int it);
00016 
00017   SimVertex( const math::XYZVectorD& v, float tof ) ;
00018 
00020   SimVertex( const math::XYZVectorD& v, float tof, int it ) ;
00021 
00023   SimVertex(const CoreSimVertex & t, int it, unsigned int vId );
00024 
00025   SimVertex( const math::XYZVectorD& v, float tof, unsigned int vId ) ;
00026 
00028   SimVertex( const math::XYZVectorD& v, float tof, int it, unsigned int vId ) ;
00029 
00030 
00033   int parentIndex() const { return  itrack; }
00034   bool noParent() const { return  itrack==-1; }
00035 
00036   void setVertexId(unsigned int n) {vtxId = n;}
00037   unsigned int vertexId() const { return  vtxId; }  
00038 
00039 private: 
00040   int itrack;
00041   unsigned int vtxId; 
00042 };
00043 
00044 #include <iosfwd>
00045 std::ostream & operator <<(std::ostream & o , const SimVertex& v);
00046  
00047 
00048 #endif