LCIO  "2.7.4"
 All Classes Namespaces Functions Variables Typedefs Friends Pages
VertexImpl.h
1 // -*- C++ -*-
2 #ifndef IMPL_VERTEXIMPL_H
3 #define IMPL_VERTEXIMPL_H 1
4 
5 
6 #include "EVENT/Vertex.h"
7 #include "AccessChecked.h"
8 
9 #define VTXCOVMATRIX 6
10 
11 
12 namespace IMPL {
13 
14 
21  class VertexImpl : public EVENT::Vertex, public AccessChecked {
22 
23 
24  public:
25 
28  VertexImpl() ;
29 
30  // Destructor.
31  virtual ~VertexImpl() ;
32 
33  virtual int id() const { return simpleUID() ; }
34 
38  virtual bool isPrimary() const ;
39 
43  //virtual int getAlgorithmType() const ;
44  virtual const std::string& getAlgorithmType() const ;
45 
48  virtual float getChi2() const;
49 
52  virtual float getProbability() const;
53 
56  virtual const float* getPosition() const;
57 
61  virtual const EVENT::FloatVec & getCovMatrix() const;
62 
66  virtual const EVENT::FloatVec & getParameters() const;
67 
71 
72  // setters
73  void setPrimary( bool primary ) ;
74  //void setAlgorithmType( int type ) ;
75  void setAlgorithmType( std::string type ) ;
76  void setChi2( float chi2 ) ;
77  void setProbability( float probability ) ;
78  void setPosition( const float vpos[3] ) ;
79  void setPosition( float px, float py, float pz ) ;
80  void setCovMatrix( const float* cov ) ;
81  void setCovMatrix( const EVENT::FloatVec & ) ;
82  void setAssociatedParticle( EVENT::ReconstructedParticle * aP ) ;
83  void addParameter( float p );
84 
85  protected:
86  int _primary ;
87  //int _type ;
88  std::string _type ;
89  float _chi2 ;
90  float _probability ;
91  float _vpos[3] ;
92  EVENT::FloatVec _cov ;
93  EVENT::FloatVec _par ;
94  EVENT::ReconstructedParticle* _aParticle ;
95 
96 }; // class
97 
98 } // namespace IMPL
99 #endif /* ifndef IMPL_VERTEXIMLP_H */
The Vertex class for LCIO.
Definition: Vertex.h:34
virtual EVENT::ReconstructedParticle * getAssociatedParticle() const
Returns Reconstructed Particle associated to the Vertex.
Definition: VertexImpl.cc:32
virtual int id() const
Returns an object id for internal (debugging) use in LCIO.
Definition: VertexImpl.h:33
std::vector< float > FloatVec
Vector of floats.
Definition: LCIOSTLTypes.h:18
virtual const EVENT::FloatVec & getParameters() const
Additional parameters related to this vertex - check/set the collection parameter "VertexParameterNa...
Definition: VertexImpl.cc:31
virtual const EVENT::FloatVec & getCovMatrix() const
Covariance matrix of the position (stored as lower triangle matrix, i.e.
Definition: VertexImpl.cc:30
virtual bool isPrimary() const
Checks if the Vertex is the primary vertex of the event.
Definition: VertexImpl.cc:24
virtual const std::string & getAlgorithmType() const
Type code for the algorithm that has been used to create the vertex - check/set the collection parame...
Definition: VertexImpl.cc:26
The LCIO reconstructedParticle.
Definition: ReconstructedParticle.h:35
virtual float getProbability() const
Probability of the vertex fit.
Definition: VertexImpl.cc:28
VertexImpl()
Default constructor, initializes values to 0.
Definition: VertexImpl.cc:8
Implementation of Vertex Class.
Definition: VertexImpl.h:21
virtual float getChi2() const
Chi squared of the vertex fit.
Definition: VertexImpl.cc:27
Controls access to objects.
Definition: AccessChecked.h:17
virtual const float * getPosition() const
Position of the vertex.
Definition: VertexImpl.cc:29