CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
< LocalCovarianceMatrix
innerStateCovariances () 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
< LocalCovarianceMatrix
outerStateCovariances () 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
< LocalCovarianceMatrix
covariances (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

local covariance matrix

Definition at line 23 of file GsfTrackExtra.h.

local parameter vector

Definition at line 21 of file GsfTrackExtra.h.

point in the space

Definition at line 25 of file GsfTrackExtra.h.

spatial vector

Definition at line 27 of file GsfTrackExtra.h.

Member Enumeration Documentation

anonymous enum

parameter dimension

Enumerator
dimension 

Definition at line 19 of file GsfTrackExtra.h.

Constructor & Destructor Documentation

reco::GsfTrackExtra::GsfTrackExtra ( )
inline

default constructor

Definition at line 30 of file GsfTrackExtra.h.

30 { }
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.

8  :
9  outerStates_(outerStates), positiveOuterStatePz_(outerLocalPzSign>0.),
10  innerStates_(innerStates), positiveInnerStatePz_(innerLocalPzSign>0.),
bool positiveInnerStatePz_
positive sign of P_z(local) at innermost State?
Definition: GsfTrackExtra.h:96
bool positiveOuterStatePz_
positive sign of P_z(local) at outermost State?
Definition: GsfTrackExtra.h:92
std::vector< GsfComponent5D > innerStates_
states at innermost point
Definition: GsfTrackExtra.h:94
const std::vector< GsfTangent > & tangents() const
access to tangent information
Definition: GsfTrackExtra.h:64
std::vector< GsfComponent5D > outerStates_
states at outermost point
Definition: GsfTrackExtra.h:90
std::vector< GsfTangent > tangents_
information for tangents
Definition: GsfTrackExtra.h:98

Member Function Documentation

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

extract covariance matrices from states

Definition at line 38 of file GsfTrackExtra.cc.

References i, and query::result.

Referenced by innerStateCovariances(), and outerStateCovariances().

39 {
40  std::vector<LocalCovarianceMatrix> result(states.size());
41  std::vector<LocalCovarianceMatrix>::iterator ir(result.begin());
42  for ( std::vector<GsfComponent5D>::const_iterator i=states.begin();
43  i!=states.end(); ++i ) {
44  (*i).covariance(*(ir++));
45  }
46  return result;
47 }
int i
Definition: DBlmapReader.cc:9
tuple result
Definition: query.py:137
std::vector<LocalCovarianceMatrix> reco::GsfTrackExtra::innerStateCovariances ( ) const
inline

local covariance matrices at innermost state

Definition at line 58 of file GsfTrackExtra.h.

References covariances(), and innerStates_.

58  {
59  return covariances(innerStates_);
60  }
std::vector< GsfComponent5D > innerStates_
states at innermost point
Definition: GsfTrackExtra.h:94
std::vector< LocalCovarianceMatrix > covariances(const std::vector< GsfComponent5D > &states) const
extract covariance matrices from states
std::vector<LocalParameterVector> reco::GsfTrackExtra::innerStateLocalParameters ( ) const
inline

local parameters at innermost state

Definition at line 54 of file GsfTrackExtra.h.

References innerStates_, and parameters().

54  {
55  return parameters(innerStates_);
56  }
std::vector< GsfComponent5D > innerStates_
states at innermost point
Definition: GsfTrackExtra.h:94
std::vector< LocalParameterVector > parameters(const std::vector< GsfComponent5D > &states) const
extract parameters from states
double reco::GsfTrackExtra::innerStateLocalPzSign ( ) const
inline

sign of local P_z at innermost state

Definition at line 50 of file GsfTrackExtra.h.

References positiveInnerStatePz_.

50 {return positiveInnerStatePz_ ? 1. : -1.;}
bool positiveInnerStatePz_
positive sign of P_z(local) at innermost State?
Definition: GsfTrackExtra.h:96
std::vector<double> reco::GsfTrackExtra::innerStateWeights ( ) const
inline

weights at innermost state

Definition at line 52 of file GsfTrackExtra.h.

References innerStates_, and weights().

52 { return weights(innerStates_); }
std::vector< GsfComponent5D > innerStates_
states at innermost point
Definition: GsfTrackExtra.h:94
std::vector< double > weights(const std::vector< GsfComponent5D > &states) const
extract weights from states
std::vector<LocalCovarianceMatrix> reco::GsfTrackExtra::outerStateCovariances ( ) const
inline

local covariance matrices at outermost state

Definition at line 46 of file GsfTrackExtra.h.

References covariances(), and outerStates_.

46  {
47  return covariances(outerStates_);
48  }
std::vector< LocalCovarianceMatrix > covariances(const std::vector< GsfComponent5D > &states) const
extract covariance matrices from states
std::vector< GsfComponent5D > outerStates_
states at outermost point
Definition: GsfTrackExtra.h:90
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  {
43  return parameters(outerStates_);
44  }
std::vector< GsfComponent5D > outerStates_
states at outermost point
Definition: GsfTrackExtra.h:90
std::vector< LocalParameterVector > parameters(const std::vector< GsfComponent5D > &states) const
extract parameters from states
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:92
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:90
std::vector< GsfTrackExtra::LocalParameterVector > GsfTrackExtra::parameters ( const std::vector< GsfComponent5D > &  states) const
private

extract parameters from states

Definition at line 26 of file GsfTrackExtra.cc.

References i, and query::result.

Referenced by innerStateLocalParameters(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputTags(), outerStateLocalParameters(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::recursePSetProperties().

27 {
28  std::vector<LocalParameterVector> result(states.size());
29  std::vector<LocalParameterVector>::iterator ir(result.begin());
30  for ( std::vector<GsfComponent5D>::const_iterator i=states.begin();
31  i!=states.end(); ++i ) {
32  *(ir++) = (*i).parameters();
33  }
34  return result;
35 }
int i
Definition: DBlmapReader.cc:9
tuple result
Definition: query.py:137
Measurement1D reco::GsfTrackExtra::tangentDeltaP ( unsigned int  index) const
inline

deltaP for tangent

Definition at line 76 of file GsfTrackExtra.h.

References cmsHarvester::index, and tangents_.

76  {
77  return tangents_[index].deltaP();
78  }
std::vector< GsfTangent > tangents_
information for tangents
Definition: GsfTrackExtra.h:98
const Vector& reco::GsfTrackExtra::tangentMomentum ( unsigned int  index) const
inline

global momentum for tangent

Definition at line 72 of file GsfTrackExtra.h.

References cmsHarvester::index, and tangents_.

72  {
73  return tangents_[index].momentum();
74  }
std::vector< GsfTangent > tangents_
information for tangents
Definition: GsfTrackExtra.h:98
const Point& reco::GsfTrackExtra::tangentPosition ( unsigned int  index) const
inline

global position for tangent

Definition at line 68 of file GsfTrackExtra.h.

References cmsHarvester::index, and tangents_.

68  {
69  return tangents_[index].position();
70  }
std::vector< GsfTangent > tangents_
information for tangents
Definition: GsfTrackExtra.h:98
const std::vector<GsfTangent>& reco::GsfTrackExtra::tangents ( ) const
inline

access to tangent information

Definition at line 64 of file GsfTrackExtra.h.

References tangents_.

64  {
65  return tangents_;
66  }
std::vector< GsfTangent > tangents_
information for tangents
Definition: GsfTrackExtra.h:98
unsigned int reco::GsfTrackExtra::tangentsSize ( ) const
inline

number of objects with information for tangents to the electron track

Definition at line 62 of file GsfTrackExtra.h.

References tangents_.

62 {return tangents_.size();}
std::vector< GsfTangent > tangents_
information for tangents
Definition: GsfTrackExtra.h:98
std::vector< double > GsfTrackExtra::weights ( const std::vector< GsfComponent5D > &  states) const
private

extract weights from states

Definition at line 14 of file GsfTrackExtra.cc.

References i, and query::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();
19  i!=states.end(); ++i ) {
20  *(ir++) = (*i).weight();
21  }
22  return result;
23 }
int i
Definition: DBlmapReader.cc:9
tuple result
Definition: query.py:137

Member Data Documentation

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

states at innermost point

Definition at line 94 of file GsfTrackExtra.h.

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

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

states at outermost point

Definition at line 90 of file GsfTrackExtra.h.

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

bool reco::GsfTrackExtra::positiveInnerStatePz_
private

positive sign of P_z(local) at innermost State?

Definition at line 96 of file GsfTrackExtra.h.

Referenced by innerStateLocalPzSign().

bool reco::GsfTrackExtra::positiveOuterStatePz_
private

positive sign of P_z(local) at outermost State?

Definition at line 92 of file GsfTrackExtra.h.

Referenced by outerStateLocalPzSign().

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

information for tangents

Definition at line 98 of file GsfTrackExtra.h.

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