CMS 3D CMS Logo

List of all members | Public Member Functions | Private Types
VertexState Class Referencefinal

#include <VertexState.h>

Inheritance diagram for VertexState:
ProxyBase11< T >

Public Member Functions

std::vector< VertexStatecomponents () const
 
GlobalError error () const
 
GlobalError error4D () const
 
bool is4D () const
 
bool isValid () const
 Make the ReferenceCountingProxy method to check validity public. More...
 
VertexStateoperator= (const VertexState &)=default
 
VertexStateoperator= (VertexState &&)=default
 
GlobalPoint position () const
 
double time () const
 
double timeError () 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)
 
 VertexState (const GlobalPoint &pos, const double time, const GlobalError &posTimeErr, const double &weightInMix=1.0)
 
 VertexState (const GlobalPoint &pos, const double time, const GlobalWeight &posTimeWeight, const double &weightInMix=1.0)
 
 VertexState (const AlgebraicVector4 &weightTimesPosition, const GlobalWeight &posTimeWeight, const double &weightInMix=1.0)
 
GlobalWeight weight () const
 
GlobalWeight weight4D () const
 
double weightInMixture () const
 
AlgebraicVector3 weightTimesPosition () const
 
AlgebraicVector4 weightTimesPosition4D () const
 

Private Types

using Base = BasicVertexState::Proxy
 
using BSVS = BasicSingleVertexState
 
- Private Types inherited from ProxyBase11< T >
using pointer = std::shared_ptr< T >
 

Additional Inherited Members

- Private Member Functions inherited from ProxyBase11< T >
void check () const
 
const Tdata () const
 
void destroy () noexcept
 
bool isValid () const
 
template<typename U >
ProxyBase11operator= (std::shared_ptr< U > p)
 
ProxyBase11operator= (ProxyBase11 &&other) noexcept=default
 
ProxyBase11operator= (const ProxyBase11 &other)=default
 
 ProxyBase11 ()
 
 ProxyBase11 (T *p)
 
template<typename U >
 ProxyBase11 (std::shared_ptr< U > p)
 
 ProxyBase11 (ProxyBase11 &&other) noexcept=default
 
 ProxyBase11 (ProxyBase11 const &other)=default
 
int references () const
 
void reset ()
 
TsharedData ()
 
void swap (ProxyBase11 &other) noexcept
 
TunsharedData ()
 
 ~ProxyBase11 () noexcept
 

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.

References operator=().

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:13
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.

38  :
39  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 41 of file VertexState.h.

43  :
44  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 46 of file VertexState.h.

48  :
49  Base ( new BSVS (weightTimesPosition, posWeight, weightInMix)) {}
AlgebraicVector3 weightTimesPosition() const
Definition: VertexState.h:103
BasicVertexState::Proxy Base
Definition: VertexState.h:15
BasicSingleVertexState BSVS
Definition: VertexState.h:16
VertexState::VertexState ( const GlobalPoint pos,
const double  time,
const GlobalError posTimeErr,
const double &  weightInMix = 1.0 
)
inline

Definition at line 52 of file VertexState.h.

54  :
55  Base ( new BSVS (pos, time, posTimeErr, weightInMix)) {}
double time() const
Definition: VertexState.h:95
BasicVertexState::Proxy Base
Definition: VertexState.h:15
BasicSingleVertexState BSVS
Definition: VertexState.h:16
VertexState::VertexState ( const GlobalPoint pos,
const double  time,
const GlobalWeight posTimeWeight,
const double &  weightInMix = 1.0 
)
inline

Definition at line 57 of file VertexState.h.

59  :
60  Base ( new BSVS (pos, time, posTimeWeight, weightInMix)) {}
double time() const
Definition: VertexState.h:95
BasicVertexState::Proxy Base
Definition: VertexState.h:15
BasicSingleVertexState BSVS
Definition: VertexState.h:16
VertexState::VertexState ( const AlgebraicVector4 weightTimesPosition,
const GlobalWeight posTimeWeight,
const double &  weightInMix = 1.0 
)
inline

Definition at line 62 of file VertexState.h.

64  :
65  Base ( new BSVS (weightTimesPosition, posTimeWeight, weightInMix)) {}
AlgebraicVector3 weightTimesPosition() const
Definition: VertexState.h:103
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
GlobalError VertexState::error4D ( ) const
inline
bool VertexState::is4D ( ) const
inline

Definition at line 133 of file VertexState.h.

References ProxyBase11< T >::data().

Referenced by BasicMultiVertexState::is4D(), TransientVertex::positionError(), and TransientVertex::priorError().

133 { return data().is4D(); }
const T & data() const
Definition: ProxyBase11.h:54
bool VertexState::isValid ( void  ) const
inline

Make the ReferenceCountingProxy method to check validity public.

Definition at line 131 of file VertexState.h.

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

Referenced by ntupleDataFormat._Object::_checkIsValid(), GsfVertexUpdator::createNewComponent(), core.AutoHandle.AutoHandle::ReallyLoad(), and KalmanVertexUpdator< N >::update().

131 {return Base::isValid() && data().isValid();}
const T & data() const
Definition: ProxyBase11.h:54
bool isValid() const
Definition: ProxyBase11.h:66
VertexState& VertexState::operator= ( const VertexState )
default

Referenced by VertexState().

VertexState& VertexState::operator= ( VertexState &&  )
default
GlobalPoint VertexState::position ( ) const
inline
double VertexState::time ( ) const
inline
double VertexState::timeError ( ) const
inline

Definition at line 99 of file VertexState.h.

References ProxyBase11< T >::data().

Referenced by TransientVertex::priorTimeError(), BasicMultiVertexState::timeError(), and TransientVertex::timeError().

99  {
100  return data().timeError();
101  }
const T & data() const
Definition: ProxyBase11.h:54
GlobalWeight VertexState::weight ( ) const
inline
GlobalWeight VertexState::weight4D ( ) const
inline

Definition at line 90 of file VertexState.h.

References ProxyBase11< T >::data().

Referenced by BasicMultiVertexState::weight4D(), and CachingVertex< N >::weight4D().

91  {
92  return data().weight4D();
93  }
const T & data() const
Definition: ProxyBase11.h:54
double VertexState::weightInMixture ( ) const
inline

Definition at line 113 of file VertexState.h.

References ProxyBase11< T >::data().

Referenced by GsfVertexWeightCalculator::calculate().

114  {
115  return data().weightInMixture();
116  }
const T & data() const
Definition: ProxyBase11.h:54
AlgebraicVector3 VertexState::weightTimesPosition ( ) const
inline
AlgebraicVector4 VertexState::weightTimesPosition4D ( ) const
inline

Definition at line 108 of file VertexState.h.

References ProxyBase11< T >::data().

Referenced by BasicMultiVertexState::weightTimesPosition4D(), and CachingVertex< N >::weightTimesPosition4D().

109  {
110  return data().weightTimesPosition4D();
111  }
const T & data() const
Definition: ProxyBase11.h:54