CMS 3D CMS Logo

Public Types | Public Member Functions | Private Member Functions | Private Attributes

reco::GsfTrackExtra Class Reference

#include <GsfTrackExtra.h>

List of all members.

Public Types

enum  { dimension = 5 }
 

parameter dimension

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

Public Member Functions

 GsfTrackExtra ()
 default constructor
 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
std::vector
< LocalCovarianceMatrix
innerStateCovariances () const
 local covariance matrices at innermost state
std::vector< LocalParameterVectorinnerStateLocalParameters () const
 local parameters at innermost state
double innerStateLocalPzSign () const
 sign of local P_z at innermost state
std::vector< double > innerStateWeights () const
 weights at innermost state
std::vector
< LocalCovarianceMatrix
outerStateCovariances () const
 local covariance matrices at outermost state
std::vector< LocalParameterVectorouterStateLocalParameters () const
 local parameters at outermost state
double outerStateLocalPzSign () const
 sign of local P_z at outermost state
std::vector< double > outerStateWeights () const
 weights at outermost state
Measurement1D tangentDeltaP (unsigned int index) const
 deltaP for tangent
const VectortangentMomentum (unsigned int index) const
 global momentum for tangent
const PointtangentPosition (unsigned int index) const
 global position for tangent
const std::vector< GsfTangent > & tangents () const
 access to tangent information
unsigned int tangentsSize () const
 number of objects with information for tangents to the electron track

Private Member Functions

std::vector
< LocalCovarianceMatrix
covariances (const std::vector< GsfComponent5D > &states) const
 extract covariance matrices from states
std::vector< LocalParameterVectorparameters (const std::vector< GsfComponent5D > &states) const
 extract parameters from states
std::vector< double > weights (const std::vector< GsfComponent5D > &states) const
 extract weights from states

Private Attributes

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

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.

{ dimension = 5 };

Constructor & Destructor Documentation

reco::GsfTrackExtra::GsfTrackExtra ( ) [inline]

default constructor

Definition at line 30 of file GsfTrackExtra.h.

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

                                                                      :
  outerStates_(outerStates), positiveOuterStatePz_(outerLocalPzSign>0.),
  innerStates_(innerStates), positiveInnerStatePz_(innerLocalPzSign>0.),
  tangents_(tangents) {}

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

{
  std::vector<LocalCovarianceMatrix> result(states.size());
  std::vector<LocalCovarianceMatrix>::iterator ir(result.begin());
  for ( std::vector<GsfComponent5D>::const_iterator i=states.begin();
        i!=states.end(); ++i ) {
    (*i).covariance(*(ir++));
  }
  return result;
}
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_.

                                                                   {
      return covariances(innerStates_);
    }
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().

                                                                      { 
      return parameters(innerStates_); 
    }
double reco::GsfTrackExtra::innerStateLocalPzSign ( ) const [inline]

sign of local P_z at innermost state

Definition at line 50 of file GsfTrackExtra.h.

References positiveInnerStatePz_.

{return positiveInnerStatePz_ ? 1. : -1.;}
std::vector<double> reco::GsfTrackExtra::innerStateWeights ( ) const [inline]

weights at innermost state

Definition at line 52 of file GsfTrackExtra.h.

References innerStates_, and weights().

{ return weights(innerStates_); }
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_.

                                                                   {
      return covariances(outerStates_);
    }
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().

                                                                      { 
      return parameters(outerStates_); 
    }
double reco::GsfTrackExtra::outerStateLocalPzSign ( ) const [inline]

sign of local P_z at outermost state

Definition at line 38 of file GsfTrackExtra.h.

References positiveOuterStatePz_.

{return positiveOuterStatePz_ ? 1. : -1.;}
std::vector<double> reco::GsfTrackExtra::outerStateWeights ( ) const [inline]

weights at outermost state

Definition at line 40 of file GsfTrackExtra.h.

References outerStates_, and weights().

{ return weights(outerStates_); }
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(), and outerStateLocalParameters().

{
  std::vector<LocalParameterVector> result(states.size());
  std::vector<LocalParameterVector>::iterator ir(result.begin());
  for ( std::vector<GsfComponent5D>::const_iterator i=states.begin();
        i!=states.end(); ++i ) {
    *(ir++) = (*i).parameters();
  }
  return result;
}
Measurement1D reco::GsfTrackExtra::tangentDeltaP ( unsigned int  index) const [inline]

deltaP for tangent

Definition at line 76 of file GsfTrackExtra.h.

References getHLTprescales::index, and tangents_.

                                                           {
      return tangents_[index].deltaP();
    }
const Vector& reco::GsfTrackExtra::tangentMomentum ( unsigned int  index) const [inline]

global momentum for tangent

Definition at line 72 of file GsfTrackExtra.h.

References getHLTprescales::index, and tangents_.

                                                             {
      return tangents_[index].momentum();
    }
const Point& reco::GsfTrackExtra::tangentPosition ( unsigned int  index) const [inline]

global position for tangent

Definition at line 68 of file GsfTrackExtra.h.

References getHLTprescales::index, and tangents_.

                                                            {
      return tangents_[index].position();
    }
const std::vector<GsfTangent>& reco::GsfTrackExtra::tangents ( ) const [inline]

access to tangent information

Definition at line 64 of file GsfTrackExtra.h.

References tangents_.

                                                  {
      return tangents_;
    }
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_.

{return tangents_.size();}
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().

{
  std::vector<double> result(states.size());
  std::vector<double>::iterator ir(result.begin());
  for ( std::vector<GsfComponent5D>::const_iterator i=states.begin();
        i!=states.end(); ++i ) {
    *(ir++) = (*i).weight();
  }
  return result;
}

Member Data Documentation

states at innermost point

Definition at line 94 of file GsfTrackExtra.h.

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

states at outermost point

Definition at line 90 of file GsfTrackExtra.h.

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

positive sign of P_z(local) at innermost State?

Definition at line 96 of file GsfTrackExtra.h.

Referenced by innerStateLocalPzSign().

positive sign of P_z(local) at outermost State?

Definition at line 92 of file GsfTrackExtra.h.

Referenced by outerStateLocalPzSign().

information for tangents

Definition at line 98 of file GsfTrackExtra.h.

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