CMS 3D CMS Logo

Public Member Functions | Private Types

VertexState Class Reference

#include <VertexState.h>

Inheritance diagram for VertexState:
ProxyBase< T, Cloner >

List of all members.

Public Member Functions

std::vector< VertexStatecomponents () const
GlobalError error () const
bool isValid () const
 Make the ReferenceCountingProxy method to check validity public.
GlobalPoint position () const
 VertexState (BasicVertexState *p)
 VertexState (const GlobalPoint &pos, const GlobalWeight &posWeight, const double &weightInMix=1.0)
 VertexState (const AlgebraicVector3 &weightTimesPosition, const GlobalWeight &posWeight, const double &weightInMix=1.0)
 VertexState (const GlobalPoint &pos, const GlobalError &posErr, const double &weightInMix=1.0)
 VertexState ()
 VertexState (const reco::BeamSpot &beamSpot)
GlobalWeight weight () const
double weightInMixture () const
AlgebraicVector3 weightTimesPosition () const

Private Types

typedef BasicVertexState::Proxy Base

Detailed Description

Class containing a measurement of a vertex. Some data is calculated on demand to improve performance.

Definition at line 12 of file VertexState.h.


Member Typedef Documentation

Definition at line 15 of file VertexState.h.


Constructor & Destructor Documentation

VertexState::VertexState ( )

Definition at line 6 of file VertexState.cc.

                        :
  Base ( new BSVS ()) {}
VertexState::VertexState ( BasicVertexState p)

Definition at line 9 of file VertexState.cc.

                                            : 
  Base(p) {}
VertexState::VertexState ( const GlobalPoint pos,
const GlobalError posErr,
const double &  weightInMix = 1.0 
)

Definition at line 12 of file VertexState.cc.

                                                                :
  Base ( new BSVS (pos, posErr, weightInMix)) {}
VertexState::VertexState ( const GlobalPoint pos,
const GlobalWeight posWeight,
const double &  weightInMix = 1.0 
)

Definition at line 16 of file VertexState.cc.

                                                                    :
  Base ( new BSVS (pos, posWeight, weightInMix)) {}
VertexState::VertexState ( const AlgebraicVector3 weightTimesPosition,
const GlobalWeight posWeight,
const double &  weightInMix = 1.0 
)

Definition at line 20 of file VertexState.cc.

                                                                    :
  Base ( new BSVS (weightTimesPosition, posWeight, weightInMix)) {}
VertexState::VertexState ( const reco::BeamSpot beamSpot)

Definition at line 24 of file VertexState.cc.

                                                     :
  Base ( new BSVS ( GlobalPoint(Basic3DVector<float> (beamSpot.position())), 
        GlobalError(beamSpot.rotatedCovariance3D()), 1.0)) {}

Member Function Documentation

std::vector<VertexState> VertexState::components ( ) const [inline]
GlobalError VertexState::error ( ) const [inline]
bool VertexState::isValid ( void  ) const [inline]

Make the ReferenceCountingProxy method to check validity public.

Reimplemented from ProxyBase< T, Cloner >.

Definition at line 67 of file VertexState.h.

References ProxyBase< T, Cloner >::data(), and ProxyBase< T, Cloner >::isValid().

Referenced by GsfVertexUpdator::createNewComponent(), and KalmanVertexUpdator< N >::update().

{return Base::isValid() && data().isValid();}
GlobalPoint VertexState::position ( void  ) const [inline]
GlobalWeight VertexState::weight ( void  ) const [inline]
double VertexState::weightInMixture ( ) const [inline]

Definition at line 49 of file VertexState.h.

References ProxyBase< T, Cloner >::data().

Referenced by GsfVertexWeightCalculator::calculate().

  {
    return data().weightInMixture();
  }
AlgebraicVector3 VertexState::weightTimesPosition ( ) const [inline]