test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Types
VertexState Class Reference

#include <VertexState.h>

Inheritance diagram for VertexState:
ProxyBase< T, Cloner >

Public Member Functions

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

Private Types

using Base = BasicVertexState::Proxy
 
using BSVS = BasicSingleVertexState
 

Additional Inherited Members

- Private Member Functions inherited from ProxyBase< T, Cloner >
void check () const
 
const Tdata () const
 
void destroy ()
 
bool isValid () const
 
ProxyBaseoperator= (const ProxyBase &other)
 
 ProxyBase ()
 
 ProxyBase (T *p)
 
 ProxyBase (const ProxyBase &other)
 
int references () const
 
TsharedData ()
 
void swap (ProxyBase &other)
 
TunsharedData ()
 
 ~ProxyBase ()
 

Detailed Description

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

Definition at line 13 of file VertexState.h.

Member Typedef Documentation

Definition at line 15 of file VertexState.h.

Definition at line 16 of file VertexState.h.

Constructor & Destructor Documentation

VertexState::VertexState ( )
inline

Definition at line 18 of file VertexState.h.

18 {}
VertexState::VertexState ( VertexState const &  )
default
VertexState::VertexState ( VertexState &&  )
default
VertexState::VertexState ( BasicVertexState p)
inlineexplicit

Definition at line 28 of file VertexState.h.

28  :
29  Base(p) {}
BasicVertexState::Proxy Base
Definition: VertexState.h:15
VertexState::VertexState ( const reco::BeamSpot beamSpot)
inlineexplicit

Definition at line 31 of file VertexState.h.

31  :
32  Base ( new BSVS ( GlobalPoint(Basic3DVector<float> (beamSpot.position())),
33  GlobalError(beamSpot.rotatedCovariance3D()), 1.0)) {}
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
Definition: GlobalError.h:11
BasicVertexState::Proxy Base
Definition: VertexState.h:15
const Point & position() const
position
Definition: BeamSpot.h:62
BasicSingleVertexState BSVS
Definition: VertexState.h:16
Covariance3DMatrix rotatedCovariance3D() const
Definition: BeamSpot.cc:78
VertexState::VertexState ( const GlobalPoint pos,
const GlobalError posErr,
const double &  weightInMix = 1.0 
)
inline

Definition at line 36 of file VertexState.h.

37  :
38  Base ( new BSVS (pos, posErr, weightInMix)) {}
BasicVertexState::Proxy Base
Definition: VertexState.h:15
BasicSingleVertexState BSVS
Definition: VertexState.h:16
VertexState::VertexState ( const GlobalPoint pos,
const GlobalWeight posWeight,
const double &  weightInMix = 1.0 
)
inline

Definition at line 40 of file VertexState.h.

41  :
42  Base ( new BSVS (pos, posWeight, weightInMix)) {}
BasicVertexState::Proxy Base
Definition: VertexState.h:15
BasicSingleVertexState BSVS
Definition: VertexState.h:16
VertexState::VertexState ( const AlgebraicVector3 weightTimesPosition,
const GlobalWeight posWeight,
const double &  weightInMix = 1.0 
)
inline

Definition at line 44 of file VertexState.h.

45  :
46  Base ( new BSVS (weightTimesPosition, posWeight, weightInMix)) {}
AlgebraicVector3 weightTimesPosition() const
Definition: VertexState.h:65
BasicVertexState::Proxy Base
Definition: VertexState.h:15
BasicSingleVertexState BSVS
Definition: VertexState.h:16

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.

Definition at line 88 of file VertexState.h.

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

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

88 {return Base::isValid() && data().isValid();}
const T & data() const
Definition: ProxyBase.h:67
bool isValid() const
Definition: ProxyBase.h:81
VertexState& VertexState::operator= ( const VertexState )
default
VertexState& VertexState::operator= ( VertexState &&  )
default
GlobalPoint VertexState::position ( ) const
inline
GlobalWeight VertexState::weight ( void  ) const
inline
double VertexState::weightInMixture ( ) const
inline

Definition at line 70 of file VertexState.h.

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

Referenced by GsfVertexWeightCalculator::calculate().

71  {
72  return data().weightInMixture();
73  }
const T & data() const
Definition: ProxyBase.h:67
AlgebraicVector3 VertexState::weightTimesPosition ( ) const
inline

Definition at line 65 of file VertexState.h.

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

Referenced by GsfVertexUpdator::add(), GsfVertexMerger::merge(), KalmanVertexUpdator< N >::positionUpdate(), and BasicMultiVertexState::weightTimesPosition().

66  {
67  return data().weightTimesPosition();
68  }
const T & data() const
Definition: ProxyBase.h:67