CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
reco::GsfTrackExtra Class Reference

#include <GsfTrackExtra.h>

Public Types

enum  { dimension = 5 }
 parameter dimension More...
 
typedef math::Error< dimension >::type LocalCovarianceMatrix
 local covariance matrix More...
 
typedef math::Vector< dimension >::type LocalParameterVector
 local parameter vector More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef math::XYZVector Vector
 spatial vector More...
 

Public Member Functions

 GsfTrackExtra ()
 default constructor More...
 
 GsfTrackExtra (const std::vector< GsfComponent5D > &outerStates, const double &outerLocalPzSign, const std::vector< GsfComponent5D > &innerStates, const double &innerLocalPzSign, const std::vector< GsfTangent > &tangents)
 constructor from outermost position and momentum More...
 
std::vector< LocalCovarianceMatrixinnerStateCovariances () const
 local covariance matrices at innermost state More...
 
std::vector< LocalParameterVectorinnerStateLocalParameters () const
 local parameters at innermost state More...
 
double innerStateLocalPzSign () const
 sign of local P_z at innermost state More...
 
std::vector< double > innerStateWeights () const
 weights at innermost state More...
 
std::vector< LocalCovarianceMatrixouterStateCovariances () const
 local covariance matrices at outermost state More...
 
std::vector< LocalParameterVectorouterStateLocalParameters () const
 local parameters at outermost state More...
 
double outerStateLocalPzSign () const
 sign of local P_z at outermost state More...
 
std::vector< double > outerStateWeights () const
 weights at outermost state More...
 
Measurement1D tangentDeltaP (unsigned int index) const
 deltaP for tangent More...
 
const VectortangentMomentum (unsigned int index) const
 global momentum for tangent More...
 
const PointtangentPosition (unsigned int index) const
 global position for tangent More...
 
const std::vector< GsfTangent > & tangents () const
 access to tangent information More...
 
unsigned int tangentsSize () const
 number of objects with information for tangents to the electron track More...
 

Private Member Functions

std::vector< LocalCovarianceMatrixcovariances (const std::vector< GsfComponent5D > &states) const
 extract covariance matrices from states More...
 
std::vector< LocalParameterVectorparameters (const std::vector< GsfComponent5D > &states) const
 extract parameters from states More...
 
std::vector< double > weights (const std::vector< GsfComponent5D > &states) const
 extract weights from states More...
 

Private Attributes

std::vector< GsfComponent5DinnerStates_
 states at innermost point More...
 
std::vector< GsfComponent5DouterStates_
 states at outermost point More...
 
bool positiveInnerStatePz_
 positive sign of P_z(local) at innermost State? More...
 
bool positiveOuterStatePz_
 positive sign of P_z(local) at outermost State? More...
 
std::vector< GsfTangenttangents_
 information for tangents More...
 

Detailed Description

Definition at line 16 of file GsfTrackExtra.h.

Member Typedef Documentation

◆ LocalCovarianceMatrix

local covariance matrix

Definition at line 23 of file GsfTrackExtra.h.

◆ LocalParameterVector

local parameter vector

Definition at line 21 of file GsfTrackExtra.h.

◆ Point

point in the space

Definition at line 25 of file GsfTrackExtra.h.

◆ Vector

spatial vector

Definition at line 27 of file GsfTrackExtra.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

parameter dimension

Enumerator
dimension 

Definition at line 19 of file GsfTrackExtra.h.

19 { dimension = 5 };

Constructor & Destructor Documentation

◆ GsfTrackExtra() [1/2]

reco::GsfTrackExtra::GsfTrackExtra ( )
inline

default constructor

Definition at line 30 of file GsfTrackExtra.h.

30 {}

◆ GsfTrackExtra() [2/2]

GsfTrackExtra::GsfTrackExtra ( const std::vector< GsfComponent5D > &  outerStates,
const double &  outerLocalPzSign,
const std::vector< GsfComponent5D > &  innerStates,
const double &  innerLocalPzSign,
const std::vector< GsfTangent > &  tangents 
)

constructor from outermost position and momentum

Definition at line 4 of file GsfTrackExtra.cc.

9  : outerStates_(outerStates),
10  positiveOuterStatePz_(outerLocalPzSign > 0.),
11  innerStates_(innerStates),
12  positiveInnerStatePz_(innerLocalPzSign > 0.),

Member Function Documentation

◆ covariances()

std::vector< GsfTrackExtra::LocalCovarianceMatrix > GsfTrackExtra::covariances ( const std::vector< GsfComponent5D > &  states) const
private

extract covariance matrices from states

Definition at line 34 of file GsfTrackExtra.cc.

35  {
36  std::vector<LocalCovarianceMatrix> result(states.size());
37  std::vector<LocalCovarianceMatrix>::iterator ir(result.begin());
38  for (std::vector<GsfComponent5D>::const_iterator i = states.begin(); i != states.end(); ++i) {
39  (*i).covariance(*(ir++));
40  }
41  return result;
42 }

References mps_fire::i, and mps_fire::result.

Referenced by innerStateCovariances(), and outerStateCovariances().

◆ innerStateCovariances()

std::vector<LocalCovarianceMatrix> reco::GsfTrackExtra::innerStateCovariances ( ) const
inline

local covariance matrices at innermost state

Definition at line 52 of file GsfTrackExtra.h.

52 { return covariances(innerStates_); }

References covariances(), and innerStates_.

◆ innerStateLocalParameters()

std::vector<LocalParameterVector> reco::GsfTrackExtra::innerStateLocalParameters ( ) const
inline

local parameters at innermost state

Definition at line 50 of file GsfTrackExtra.h.

50 { return parameters(innerStates_); }

References innerStates_, and parameters().

◆ innerStateLocalPzSign()

double reco::GsfTrackExtra::innerStateLocalPzSign ( ) const
inline

sign of local P_z at innermost state

Definition at line 46 of file GsfTrackExtra.h.

46 { return positiveInnerStatePz_ ? 1. : -1.; }

References positiveInnerStatePz_.

◆ innerStateWeights()

std::vector<double> reco::GsfTrackExtra::innerStateWeights ( ) const
inline

weights at innermost state

Definition at line 48 of file GsfTrackExtra.h.

48 { return weights(innerStates_); }

References innerStates_, and weights().

◆ outerStateCovariances()

std::vector<LocalCovarianceMatrix> reco::GsfTrackExtra::outerStateCovariances ( ) const
inline

local covariance matrices at outermost state

Definition at line 44 of file GsfTrackExtra.h.

44 { return covariances(outerStates_); }

References covariances(), and outerStates_.

◆ outerStateLocalParameters()

std::vector<LocalParameterVector> reco::GsfTrackExtra::outerStateLocalParameters ( ) const
inline

local parameters at outermost state

Definition at line 42 of file GsfTrackExtra.h.

42 { return parameters(outerStates_); }

References outerStates_, and parameters().

◆ outerStateLocalPzSign()

double reco::GsfTrackExtra::outerStateLocalPzSign ( ) const
inline

sign of local P_z at outermost state

Definition at line 38 of file GsfTrackExtra.h.

38 { return positiveOuterStatePz_ ? 1. : -1.; }

References positiveOuterStatePz_.

◆ outerStateWeights()

std::vector<double> reco::GsfTrackExtra::outerStateWeights ( ) const
inline

weights at outermost state

Definition at line 40 of file GsfTrackExtra.h.

40 { return weights(outerStates_); }

References outerStates_, and weights().

◆ parameters()

std::vector< GsfTrackExtra::LocalParameterVector > GsfTrackExtra::parameters ( const std::vector< GsfComponent5D > &  states) const
private

extract parameters from states

Definition at line 24 of file GsfTrackExtra.cc.

25  {
26  std::vector<LocalParameterVector> result(states.size());
27  std::vector<LocalParameterVector>::iterator ir(result.begin());
28  for (std::vector<GsfComponent5D>::const_iterator i = states.begin(); i != states.end(); ++i) {
29  *(ir++) = (*i).parameters();
30  }
31  return result;
32 }

References mps_fire::i, and mps_fire::result.

Referenced by innerStateLocalParameters(), and outerStateLocalParameters().

◆ tangentDeltaP()

Measurement1D reco::GsfTrackExtra::tangentDeltaP ( unsigned int  index) const
inline

deltaP for tangent

Definition at line 62 of file GsfTrackExtra.h.

62 { return tangents_[index].deltaP(); }

References tangents_.

◆ tangentMomentum()

const Vector& reco::GsfTrackExtra::tangentMomentum ( unsigned int  index) const
inline

global momentum for tangent

Definition at line 60 of file GsfTrackExtra.h.

60 { return tangents_[index].momentum(); }

References tangents_.

◆ tangentPosition()

const Point& reco::GsfTrackExtra::tangentPosition ( unsigned int  index) const
inline

global position for tangent

Definition at line 58 of file GsfTrackExtra.h.

58 { return tangents_[index].position(); }

References tangents_.

◆ tangents()

const std::vector<GsfTangent>& reco::GsfTrackExtra::tangents ( ) const
inline

access to tangent information

Definition at line 56 of file GsfTrackExtra.h.

56 { return tangents_; }

References tangents_.

◆ tangentsSize()

unsigned int reco::GsfTrackExtra::tangentsSize ( ) const
inline

number of objects with information for tangents to the electron track

Definition at line 54 of file GsfTrackExtra.h.

54 { return tangents_.size(); }

References tangents_.

◆ weights()

std::vector< double > GsfTrackExtra::weights ( const std::vector< GsfComponent5D > &  states) const
private

extract weights from states

Definition at line 15 of file GsfTrackExtra.cc.

15  {
16  std::vector<double> result(states.size());
17  std::vector<double>::iterator ir(result.begin());
18  for (std::vector<GsfComponent5D>::const_iterator i = states.begin(); i != states.end(); ++i) {
19  *(ir++) = (*i).weight();
20  }
21  return result;
22 }

References mps_fire::i, and mps_fire::result.

Referenced by innerStateWeights(), and outerStateWeights().

Member Data Documentation

◆ innerStates_

std::vector<GsfComponent5D> reco::GsfTrackExtra::innerStates_
private

states at innermost point

Definition at line 78 of file GsfTrackExtra.h.

Referenced by innerStateCovariances(), innerStateLocalParameters(), and innerStateWeights().

◆ outerStates_

std::vector<GsfComponent5D> reco::GsfTrackExtra::outerStates_
private

states at outermost point

Definition at line 74 of file GsfTrackExtra.h.

Referenced by outerStateCovariances(), outerStateLocalParameters(), and outerStateWeights().

◆ positiveInnerStatePz_

bool reco::GsfTrackExtra::positiveInnerStatePz_
private

positive sign of P_z(local) at innermost State?

Definition at line 80 of file GsfTrackExtra.h.

Referenced by innerStateLocalPzSign().

◆ positiveOuterStatePz_

bool reco::GsfTrackExtra::positiveOuterStatePz_
private

positive sign of P_z(local) at outermost State?

Definition at line 76 of file GsfTrackExtra.h.

Referenced by outerStateLocalPzSign().

◆ tangents_

std::vector<GsfTangent> reco::GsfTrackExtra::tangents_
private

information for tangents

Definition at line 82 of file GsfTrackExtra.h.

Referenced by tangentDeltaP(), tangentMomentum(), tangentPosition(), tangents(), and tangentsSize().

reco::GsfTrackExtra::dimension
Definition: GsfTrackExtra.h:19
mps_fire.i
i
Definition: mps_fire.py:428
reco::GsfTrackExtra::weights
std::vector< double > weights(const std::vector< GsfComponent5D > &states) const
extract weights from states
Definition: GsfTrackExtra.cc:15
reco::GsfTrackExtra::positiveOuterStatePz_
bool positiveOuterStatePz_
positive sign of P_z(local) at outermost State?
Definition: GsfTrackExtra.h:76
reco::GsfTrackExtra::tangents
const std::vector< GsfTangent > & tangents() const
access to tangent information
Definition: GsfTrackExtra.h:56
reco::GsfTrackExtra::tangents_
std::vector< GsfTangent > tangents_
information for tangents
Definition: GsfTrackExtra.h:82
reco::GsfTrackExtra::parameters
std::vector< LocalParameterVector > parameters(const std::vector< GsfComponent5D > &states) const
extract parameters from states
Definition: GsfTrackExtra.cc:24
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
mps_fire.result
result
Definition: mps_fire.py:311
reco::GsfTrackExtra::innerStates_
std::vector< GsfComponent5D > innerStates_
states at innermost point
Definition: GsfTrackExtra.h:78
reco::GsfTrackExtra::covariances
std::vector< LocalCovarianceMatrix > covariances(const std::vector< GsfComponent5D > &states) const
extract covariance matrices from states
Definition: GsfTrackExtra.cc:34
reco::GsfTrackExtra::outerStates_
std::vector< GsfComponent5D > outerStates_
states at outermost point
Definition: GsfTrackExtra.h:74
reco::GsfTrackExtra::positiveInnerStatePz_
bool positiveInnerStatePz_
positive sign of P_z(local) at innermost State?
Definition: GsfTrackExtra.h:80