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...
 
GlobalPoint position () const
 
 VertexState ()
 
 VertexState (BasicVertexState *p)
 
 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)
 
 VertexState (const reco::BeamSpot &beamSpot)
 
GlobalWeight weight () const
 
double weightInMixture () const
 
AlgebraicVector3 weightTimesPosition () const
 

Private Types

typedef BasicVertexState::Proxy Base
 

Additional Inherited Members

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

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.

6  :
7  Base ( new BSVS ()) {}
BasicVertexState::Proxy Base
Definition: VertexState.h:15
VertexState::VertexState ( BasicVertexState p)

Definition at line 9 of file VertexState.cc.

9  :
10  Base(p) {}
BasicVertexState::Proxy Base
Definition: VertexState.h:15
VertexState::VertexState ( const GlobalPoint pos,
const GlobalError posErr,
const double &  weightInMix = 1.0 
)

Definition at line 12 of file VertexState.cc.

13  :
14  Base ( new BSVS (pos, posErr, weightInMix)) {}
BasicVertexState::Proxy Base
Definition: VertexState.h:15
VertexState::VertexState ( const GlobalPoint pos,
const GlobalWeight posWeight,
const double &  weightInMix = 1.0 
)

Definition at line 16 of file VertexState.cc.

17  :
18  Base ( new BSVS (pos, posWeight, weightInMix)) {}
BasicVertexState::Proxy Base
Definition: VertexState.h:15
VertexState::VertexState ( const AlgebraicVector3 weightTimesPosition,
const GlobalWeight posWeight,
const double &  weightInMix = 1.0 
)

Definition at line 20 of file VertexState.cc.

21  :
22  Base ( new BSVS (weightTimesPosition, posWeight, weightInMix)) {}
AlgebraicVector3 weightTimesPosition() const
Definition: VertexState.h:44
BasicVertexState::Proxy Base
Definition: VertexState.h:15
VertexState::VertexState ( const reco::BeamSpot beamSpot)

Definition at line 24 of file VertexState.cc.

24  :
25  Base ( new BSVS ( GlobalPoint(Basic3DVector<float> (beamSpot.position())),
26  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:63
Covariance3DMatrix rotatedCovariance3D() const
Definition: BeamSpot.cc:79

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 67 of file VertexState.h.

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

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

67 {return Base::isValid() && data().isValid();}
const T & data() const
Definition: ProxyBase.h:67
bool isValid() const
Definition: ProxyBase.h:81
GlobalPoint VertexState::position ( ) 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().

50  {
51  return data().weightInMixture();
52  }
const T & data() const
Definition: ProxyBase.h:67
AlgebraicVector3 VertexState::weightTimesPosition ( ) const
inline

Definition at line 44 of file VertexState.h.

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

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

45  {
46  return data().weightTimesPosition();
47  }
const T & data() const
Definition: ProxyBase.h:67