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

◆ Base

Definition at line 14 of file VertexState.h.

◆ BSVS

Definition at line 15 of file VertexState.h.

Constructor & Destructor Documentation

◆ VertexState() [1/11]

VertexState::VertexState ( )
inline

Definition at line 18 of file VertexState.h.

18 {}

◆ VertexState() [2/11]

VertexState::VertexState ( VertexState const &  )
default

◆ VertexState() [3/11]

VertexState::VertexState ( VertexState &&  )
default

◆ VertexState() [4/11]

VertexState::VertexState ( BasicVertexState p)
inlineexplicit

Definition at line 28 of file VertexState.h.

28 : Base(p) {}
BasicVertexState::Proxy Base
Definition: VertexState.h:14

◆ VertexState() [5/11]

VertexState::VertexState ( const reco::BeamSpot beamSpot)
inlineexplicit

Definition at line 30 of file VertexState.h.

31  : Base(new BSVS(
32  GlobalPoint(Basic3DVector<float>(beamSpot.position())), GlobalError(beamSpot.rotatedCovariance3D()), 1.0)) {
33  }
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
Definition: GlobalError.h:13
BasicVertexState::Proxy Base
Definition: VertexState.h:14
BasicSingleVertexState BSVS
Definition: VertexState.h:15

◆ VertexState() [6/11]

VertexState::VertexState ( const GlobalPoint pos,
const GlobalError posErr,
const double &  weightInMix = 1.0 
)
inline

Definition at line 35 of file VertexState.h.

36  : Base(new BSVS(pos, posErr, weightInMix)) {}
BasicVertexState::Proxy Base
Definition: VertexState.h:14
BasicSingleVertexState BSVS
Definition: VertexState.h:15

◆ VertexState() [7/11]

VertexState::VertexState ( const GlobalPoint pos,
const GlobalWeight posWeight,
const double &  weightInMix = 1.0 
)
inline

Definition at line 38 of file VertexState.h.

39  : Base(new BSVS(pos, posWeight, weightInMix)) {}
BasicVertexState::Proxy Base
Definition: VertexState.h:14
BasicSingleVertexState BSVS
Definition: VertexState.h:15

◆ VertexState() [8/11]

VertexState::VertexState ( const AlgebraicVector3 weightTimesPosition,
const GlobalWeight posWeight,
const double &  weightInMix = 1.0 
)
inline

Definition at line 41 of file VertexState.h.

44  : Base(new BSVS(weightTimesPosition, posWeight, weightInMix)) {}
BasicVertexState::Proxy Base
Definition: VertexState.h:14
AlgebraicVector3 weightTimesPosition() const
Definition: VertexState.h:77
BasicSingleVertexState BSVS
Definition: VertexState.h:15

◆ VertexState() [9/11]

VertexState::VertexState ( const GlobalPoint pos,
const double  time,
const GlobalError posTimeErr,
const double &  weightInMix = 1.0 
)
inline

Definition at line 47 of file VertexState.h.

48  : Base(new BSVS(pos, time, posTimeErr, weightInMix)) {}
BasicVertexState::Proxy Base
Definition: VertexState.h:14
double time() const
Definition: VertexState.h:73
BasicSingleVertexState BSVS
Definition: VertexState.h:15

◆ VertexState() [10/11]

VertexState::VertexState ( const GlobalPoint pos,
const double  time,
const GlobalWeight posTimeWeight,
const double &  weightInMix = 1.0 
)
inline

Definition at line 50 of file VertexState.h.

54  : Base(new BSVS(pos, time, posTimeWeight, weightInMix)) {}
BasicVertexState::Proxy Base
Definition: VertexState.h:14
double time() const
Definition: VertexState.h:73
BasicSingleVertexState BSVS
Definition: VertexState.h:15

◆ VertexState() [11/11]

VertexState::VertexState ( const AlgebraicVector4 weightTimesPosition,
const GlobalWeight posTimeWeight,
const double &  weightInMix = 1.0 
)
inline

Definition at line 56 of file VertexState.h.

59  : Base(new BSVS(weightTimesPosition, posTimeWeight, weightInMix)) {}
BasicVertexState::Proxy Base
Definition: VertexState.h:14
AlgebraicVector3 weightTimesPosition() const
Definition: VertexState.h:77
BasicSingleVertexState BSVS
Definition: VertexState.h:15

Member Function Documentation

◆ components()

std::vector<VertexState> VertexState::components ( ) const
inline

◆ error()

GlobalError VertexState::error ( ) const
inline

◆ error4D()

GlobalError VertexState::error4D ( ) const
inline

◆ is4D()

bool VertexState::is4D ( ) const
inline

Definition at line 95 of file VertexState.h.

References ProxyBase11< T >::data().

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

95 { return data().is4D(); }
const T & data() const
Definition: ProxyBase11.h:51

◆ isValid()

bool VertexState::isValid ( void  ) const
inline

Make the ReferenceCountingProxy method to check validity public.

Definition at line 93 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< 5 >::update().

93 { return Base::isValid() && data().isValid(); }
bool isValid() const
Definition: ProxyBase11.h:69
const T & data() const
Definition: ProxyBase11.h:51

◆ operator=() [1/2]

VertexState& VertexState::operator= ( const VertexState )
default

◆ operator=() [2/2]

VertexState& VertexState::operator= ( VertexState &&  )
default

◆ position()

GlobalPoint VertexState::position ( ) const
inline

◆ time()

double VertexState::time ( ) const
inline

Definition at line 73 of file VertexState.h.

References ProxyBase11< T >::data().

Referenced by CachingVertex< 5 >::priorTime(), TransientVertex::priorTime(), BasicMultiVertexState::time(), and TransientVertex::time().

73 { return data().time(); }
const T & data() const
Definition: ProxyBase11.h:51

◆ timeError()

double VertexState::timeError ( ) const
inline

Definition at line 75 of file VertexState.h.

References ProxyBase11< T >::data().

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

75 { return data().timeError(); }
const T & data() const
Definition: ProxyBase11.h:51

◆ weight()

GlobalWeight VertexState::weight ( ) const
inline

◆ weight4D()

GlobalWeight VertexState::weight4D ( ) const
inline

Definition at line 71 of file VertexState.h.

References ProxyBase11< T >::data().

Referenced by BasicMultiVertexState::weight4D().

71 { return data().weight4D(); }
const T & data() const
Definition: ProxyBase11.h:51

◆ weightInMixture()

double VertexState::weightInMixture ( ) const
inline

Definition at line 81 of file VertexState.h.

References ProxyBase11< T >::data().

Referenced by GsfVertexWeightCalculator::calculate().

81 { return data().weightInMixture(); }
const T & data() const
Definition: ProxyBase11.h:51

◆ weightTimesPosition()

AlgebraicVector3 VertexState::weightTimesPosition ( ) const
inline

Definition at line 77 of file VertexState.h.

References ProxyBase11< T >::data().

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

77 { return data().weightTimesPosition(); }
const T & data() const
Definition: ProxyBase11.h:51

◆ weightTimesPosition4D()

AlgebraicVector4 VertexState::weightTimesPosition4D ( ) const
inline

Definition at line 79 of file VertexState.h.

References ProxyBase11< T >::data().

Referenced by BasicMultiVertexState::weightTimesPosition4D().

79 { return data().weightTimesPosition4D(); }
const T & data() const
Definition: ProxyBase11.h:51