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 (BasicVertexState *p)
 
 VertexState (const AlgebraicVector3 &weightTimesPosition, const GlobalWeight &posWeight, const double &weightInMix=1.0)
 
 VertexState (const AlgebraicVector4 &weightTimesPosition, const GlobalWeight &posTimeWeight, 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 GlobalPoint &pos, const GlobalError &posErr, const double &weightInMix=1.0)
 
 VertexState (const GlobalPoint &pos, const GlobalWeight &posWeight, const double &weightInMix=1.0)
 
 VertexState (const reco::BeamSpot &beamSpot)
 
 VertexState (VertexState &&)=default
 
 VertexState (VertexState const &)=default
 
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
 
ProxyBase11operator= (const ProxyBase11 &other)=default
 
ProxyBase11operator= (ProxyBase11 &&other) noexcept=default
 
template<typename U >
ProxyBase11operator= (std::shared_ptr< U > p)
 
 ProxyBase11 ()
 
 ProxyBase11 (ProxyBase11 &&other) noexcept=default
 
 ProxyBase11 (ProxyBase11 const &other)=default
 
template<typename U >
 ProxyBase11 (std::shared_ptr< U > p)
 
 ProxyBase11 (T *p)
 
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) {}

◆ 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  }

◆ 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)) {}

◆ 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)) {}

◆ 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)) {}

◆ 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)) {}

◆ 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)) {}

◆ 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)) {}

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.

95 { return data().is4D(); }

References ProxyBase11< T >::data().

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

◆ isValid()

bool VertexState::isValid ( void  ) const
inline

Make the ReferenceCountingProxy method to check validity public.

Definition at line 93 of file VertexState.h.

93 { return Base::isValid() && data().isValid(); }

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

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

◆ 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

◆ timeError()

double VertexState::timeError ( ) const
inline

Definition at line 75 of file VertexState.h.

75 { return data().timeError(); }

References ProxyBase11< T >::data().

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

◆ weight()

GlobalWeight VertexState::weight ( ) const
inline

◆ weight4D()

GlobalWeight VertexState::weight4D ( ) const
inline

Definition at line 71 of file VertexState.h.

71 { return data().weight4D(); }

References ProxyBase11< T >::data().

Referenced by BasicMultiVertexState::weight4D().

◆ weightInMixture()

double VertexState::weightInMixture ( ) const
inline

Definition at line 81 of file VertexState.h.

81 { return data().weightInMixture(); }

References ProxyBase11< T >::data().

Referenced by GsfVertexWeightCalculator::calculate().

◆ weightTimesPosition()

AlgebraicVector3 VertexState::weightTimesPosition ( ) const
inline

◆ weightTimesPosition4D()

AlgebraicVector4 VertexState::weightTimesPosition4D ( ) const
inline

Definition at line 79 of file VertexState.h.

79 { return data().weightTimesPosition4D(); }

References ProxyBase11< T >::data().

Referenced by BasicMultiVertexState::weightTimesPosition4D().

VertexState::BSVS
BasicSingleVertexState BSVS
Definition: VertexState.h:15
pwdgSkimBPark_cfi.beamSpot
beamSpot
Definition: pwdgSkimBPark_cfi.py:5
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
pos
Definition: PixelAliasList.h:18
GlobalError
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
Definition: GlobalError.h:13
GlobalPoint
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
ProxyBase11::isValid
bool isValid() const
Definition: ProxyBase11.h:69
VertexState::weightTimesPosition
AlgebraicVector3 weightTimesPosition() const
Definition: VertexState.h:77
VertexState::Base
BasicVertexState::Proxy Base
Definition: VertexState.h:14
ProxyBase11::data
const T & data() const
Definition: ProxyBase11.h:51
VertexState::time
double time() const
Definition: VertexState.h:73
Basic3DVector< float >