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.

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.),
bool positiveInnerStatePz_
positive sign of P_z(local) at innermost State?
Definition: GsfTrackExtra.h:80
bool positiveOuterStatePz_
positive sign of P_z(local) at outermost State?
Definition: GsfTrackExtra.h:76
const std::vector< GsfTangent > & tangents() const
access to tangent information
Definition: GsfTrackExtra.h:56
std::vector< GsfComponent5D > innerStates_
states at innermost point
Definition: GsfTrackExtra.h:78
std::vector< GsfComponent5D > outerStates_
states at outermost point
Definition: GsfTrackExtra.h:74
std::vector< GsfTangent > tangents_
information for tangents
Definition: GsfTrackExtra.h:82

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.

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

Referenced by innerStateCovariances(), and outerStateCovariances().

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 }

◆ innerStateCovariances()

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

local covariance matrices at innermost state

Definition at line 52 of file GsfTrackExtra.h.

References covariances(), and innerStates_.

52 { return covariances(innerStates_); }
std::vector< GsfComponent5D > innerStates_
states at innermost point
Definition: GsfTrackExtra.h:78
std::vector< LocalCovarianceMatrix > covariances(const std::vector< GsfComponent5D > &states) const
extract covariance matrices from states

◆ innerStateLocalParameters()

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

local parameters at innermost state

Definition at line 50 of file GsfTrackExtra.h.

References innerStates_, and parameters().

50 { return parameters(innerStates_); }
std::vector< GsfComponent5D > innerStates_
states at innermost point
Definition: GsfTrackExtra.h:78
std::vector< LocalParameterVector > parameters(const std::vector< GsfComponent5D > &states) const
extract parameters from states

◆ innerStateLocalPzSign()

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

sign of local P_z at innermost state

Definition at line 46 of file GsfTrackExtra.h.

References positiveInnerStatePz_.

46 { return positiveInnerStatePz_ ? 1. : -1.; }
bool positiveInnerStatePz_
positive sign of P_z(local) at innermost State?
Definition: GsfTrackExtra.h:80

◆ innerStateWeights()

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

weights at innermost state

Definition at line 48 of file GsfTrackExtra.h.

References innerStates_, and weights().

48 { return weights(innerStates_); }
std::vector< double > weights(const std::vector< GsfComponent5D > &states) const
extract weights from states
std::vector< GsfComponent5D > innerStates_
states at innermost point
Definition: GsfTrackExtra.h:78

◆ outerStateCovariances()

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

local covariance matrices at outermost state

Definition at line 44 of file GsfTrackExtra.h.

References covariances(), and outerStates_.

44 { return covariances(outerStates_); }
std::vector< GsfComponent5D > outerStates_
states at outermost point
Definition: GsfTrackExtra.h:74
std::vector< LocalCovarianceMatrix > covariances(const std::vector< GsfComponent5D > &states) const
extract covariance matrices from states

◆ outerStateLocalParameters()

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

local parameters at outermost state

Definition at line 42 of file GsfTrackExtra.h.

References outerStates_, and parameters().

42 { return parameters(outerStates_); }
std::vector< LocalParameterVector > parameters(const std::vector< GsfComponent5D > &states) const
extract parameters from states
std::vector< GsfComponent5D > outerStates_
states at outermost point
Definition: GsfTrackExtra.h:74

◆ outerStateLocalPzSign()

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

sign of local P_z at outermost state

Definition at line 38 of file GsfTrackExtra.h.

References positiveOuterStatePz_.

38 { return positiveOuterStatePz_ ? 1. : -1.; }
bool positiveOuterStatePz_
positive sign of P_z(local) at outermost State?
Definition: GsfTrackExtra.h:76

◆ outerStateWeights()

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

weights at outermost state

Definition at line 40 of file GsfTrackExtra.h.

References outerStates_, and weights().

40 { return weights(outerStates_); }
std::vector< double > weights(const std::vector< GsfComponent5D > &states) const
extract weights from states
std::vector< GsfComponent5D > outerStates_
states at outermost point
Definition: GsfTrackExtra.h:74

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

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

Referenced by innerStateLocalParameters(), and outerStateLocalParameters().

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 }

◆ tangentDeltaP()

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

deltaP for tangent

Definition at line 62 of file GsfTrackExtra.h.

References tangents_.

62 { return tangents_[index].deltaP(); }
std::vector< GsfTangent > tangents_
information for tangents
Definition: GsfTrackExtra.h:82

◆ tangentMomentum()

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

global momentum for tangent

Definition at line 60 of file GsfTrackExtra.h.

References tangents_.

60 { return tangents_[index].momentum(); }
std::vector< GsfTangent > tangents_
information for tangents
Definition: GsfTrackExtra.h:82

◆ tangentPosition()

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

global position for tangent

Definition at line 58 of file GsfTrackExtra.h.

References tangents_.

58 { return tangents_[index].position(); }
std::vector< GsfTangent > tangents_
information for tangents
Definition: GsfTrackExtra.h:82

◆ tangents()

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

access to tangent information

Definition at line 56 of file GsfTrackExtra.h.

References tangents_.

56 { return tangents_; }
std::vector< GsfTangent > tangents_
information for tangents
Definition: GsfTrackExtra.h:82

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

References tangents_.

54 { return tangents_.size(); }
std::vector< GsfTangent > tangents_
information for tangents
Definition: GsfTrackExtra.h:82

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

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

Referenced by innerStateWeights(), and outerStateWeights().

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 }

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().