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 | Static Private Member Functions | Private Attributes
reco::TrackResiduals Class Reference

#include <TrackResiduals.h>

Public Types

using StorageType = unsigned short
 

Public Member Functions

float pullX (int i) const
 
float pullY (int i) const
 
float residualX (int i) const
 get the residual of the ith hit More...
 
float residualY (int i) const
 
void resize (unsigned int nHits)
 
void setPullXY (int idx, float pullX, float pullY)
 
void setResidualXY (int idx, float residualX, float residualY)
 
 TrackResiduals ()
 

Static Private Member Functions

static StorageType pack_pull (float)
 
static StorageType pack_residual (float)
 
static float unpack_pull (StorageType)
 
static float unpack_residual (StorageType)
 

Private Attributes

std::vector< StorageTypem_storage
 

Detailed Description

Definition at line 9 of file TrackResiduals.h.

Member Typedef Documentation

using reco::TrackResiduals::StorageType = unsigned short

Definition at line 13 of file TrackResiduals.h.

Constructor & Destructor Documentation

reco::TrackResiduals::TrackResiduals ( )
inline

Definition at line 15 of file TrackResiduals.h.

15 {}

Member Function Documentation

TrackResiduals::StorageType reco::TrackResiduals::pack_pull ( float  x)
staticprivate

Definition at line 28 of file TrackResiduals.cc.

References timeUnitHelper::pack().

Referenced by setPullXY().

28 { return pack(x,pmin,pmult); }
TrackResiduals::StorageType reco::TrackResiduals::pack_residual ( float  x)
staticprivate

Definition at line 30 of file TrackResiduals.cc.

References timeUnitHelper::pack().

Referenced by setResidualXY().

30 { return pack(x,rmin,rmult); }
float reco::TrackResiduals::pullX ( int  i) const
inline

Definition at line 22 of file TrackResiduals.h.

References m_storage, and unpack_pull().

22 { return unpack_pull(m_storage[4*i+2]); }
int i
Definition: DBlmapReader.cc:9
std::vector< StorageType > m_storage
static float unpack_pull(StorageType)
float reco::TrackResiduals::pullY ( int  i) const
inline

Definition at line 23 of file TrackResiduals.h.

References m_storage, and unpack_pull().

23 { return unpack_pull(m_storage[4*i+3]); }
int i
Definition: DBlmapReader.cc:9
std::vector< StorageType > m_storage
static float unpack_pull(StorageType)
float reco::TrackResiduals::residualX ( int  i) const
inline

get the residual of the ith hit

Definition at line 20 of file TrackResiduals.h.

References m_storage, and unpack_residual().

20 { return unpack_residual(m_storage[4*i]); }
int i
Definition: DBlmapReader.cc:9
std::vector< StorageType > m_storage
static float unpack_residual(StorageType)
float reco::TrackResiduals::residualY ( int  i) const
inline

Definition at line 21 of file TrackResiduals.h.

References m_storage, and unpack_residual().

21 { return unpack_residual(m_storage[4*i+1]); }
int i
Definition: DBlmapReader.cc:9
std::vector< StorageType > m_storage
static float unpack_residual(StorageType)
void reco::TrackResiduals::resize ( unsigned int  nHits)
inline
void reco::TrackResiduals::setPullXY ( int  idx,
float  pullX,
float  pullY 
)

Definition at line 36 of file TrackResiduals.cc.

References m_storage, and pack_pull().

Referenced by trajectoryToResiduals().

36  {
37  m_storage[4*idx+2] = pack_pull(pullX);
38  m_storage[4*idx+3] = pack_pull(pullY);
39  }
std::vector< StorageType > m_storage
static StorageType pack_pull(float)
float pullX(int i) const
float pullY(int i) const
void reco::TrackResiduals::setResidualXY ( int  idx,
float  residualX,
float  residualY 
)

Definition at line 32 of file TrackResiduals.cc.

References m_storage, and pack_residual().

Referenced by trajectoryToResiduals().

32  {
34  m_storage[4*idx+1] = pack_residual(residualY);
35  }
float residualX(int i) const
get the residual of the ith hit
float residualY(int i) const
std::vector< StorageType > m_storage
static StorageType pack_residual(float)
float reco::TrackResiduals::unpack_pull ( StorageType  x)
staticprivate

Definition at line 27 of file TrackResiduals.cc.

References timeUnitHelper::unpack().

Referenced by pullX(), and pullY().

27 { return unpack(x,pmin,pdiv); }
float reco::TrackResiduals::unpack_residual ( StorageType  x)
staticprivate

Definition at line 29 of file TrackResiduals.cc.

References timeUnitHelper::unpack().

Referenced by residualX(), and residualY().

29 { return unpack(x,rmin,rdiv); }

Member Data Documentation

std::vector<StorageType> reco::TrackResiduals::m_storage
private

Definition at line 32 of file TrackResiduals.h.

Referenced by pullX(), pullY(), residualX(), residualY(), resize(), setPullXY(), and setResidualXY().