test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Attributes | Static Private Attributes
PTrajectoryStateOnDet Class Reference

#include <PTrajectoryStateOnDet.h>

Classes

struct  DetPack
 
union  Pack
 
struct  Packing
 

Public Member Functions

unsigned int detId () const
 
float & error (int i)
 
float error (int i) const
 
bool hasError () const
 
const LocalTrajectoryParametersparameters () const
 
float pt () const
 
 PTrajectoryStateOnDet ()
 
 PTrajectoryStateOnDet (const LocalTrajectoryParameters &param, float ipt, unsigned int id, int surfaceSide)
 
 PTrajectoryStateOnDet (const LocalTrajectoryParameters &param, float ipt, float errmatrix[15], unsigned int id, int surfaceSide)
 
int surfaceSide () const
 

Private Attributes

float theLocalErrors [15]
 
LocalTrajectoryParameters theLocalParameters
 
unsigned int thePack
 
float thePt
 

Static Private Attributes

static const unsigned int idMask = 0x3fffffff
 

Detailed Description

Persistent version of a TrajectoryStateOnSurface. Stores local trajectory parameters and errors and the id of the Det defining the surface.

Definition at line 10 of file PTrajectoryStateOnDet.h.

Constructor & Destructor Documentation

PTrajectoryStateOnDet::PTrajectoryStateOnDet ( )
inline

Definition at line 43 of file PTrajectoryStateOnDet.h.

43 {}
PTrajectoryStateOnDet::PTrajectoryStateOnDet ( const LocalTrajectoryParameters param,
float  ipt,
unsigned int  id,
int  surfaceSide 
)
inline

Definition at line 45 of file PTrajectoryStateOnDet.h.

References AlCaHLTBitMon_ParallelJobs::p, PTrajectoryStateOnDet::Pack::packed, theLocalErrors, and thePack.

47  :
48  theLocalParameters(param) , thePt(ipt)
49  {
50  Pack p(id, surfaceSide);
51  thePack = p.packed;
52  theLocalErrors[0]=-99999.e10;
53  }
LocalTrajectoryParameters theLocalParameters
PTrajectoryStateOnDet::PTrajectoryStateOnDet ( const LocalTrajectoryParameters param,
float  ipt,
float  errmatrix[15],
unsigned int  id,
int  surfaceSide 
)
inline

Definition at line 55 of file PTrajectoryStateOnDet.h.

References i, AlCaHLTBitMon_ParallelJobs::p, PTrajectoryStateOnDet::Pack::packed, theLocalErrors, and thePack.

57  :
58  theLocalParameters( param), thePt(ipt)
59  {
60  Pack p(id, surfaceSide);
61  thePack = p.packed;
62  for (int i=0; i<15; i++) theLocalErrors[i] = errmatrix[i];
63  }
int i
Definition: DBlmapReader.cc:9
LocalTrajectoryParameters theLocalParameters

Member Function Documentation

unsigned int PTrajectoryStateOnDet::detId ( ) const
inline
float& PTrajectoryStateOnDet::error ( int  i)
inline
float PTrajectoryStateOnDet::error ( int  i) const
inline
bool PTrajectoryStateOnDet::hasError ( void  ) const
inline

Definition at line 68 of file PTrajectoryStateOnDet.h.

References theLocalErrors.

Referenced by trajectoryStateTransform::transientState().

68 { return theLocalErrors[0] > -1.e10; }
const LocalTrajectoryParameters& PTrajectoryStateOnDet::parameters ( void  ) const
inline
float PTrajectoryStateOnDet::pt ( void  ) const
inline
int PTrajectoryStateOnDet::surfaceSide ( ) const
inline

Member Data Documentation

const unsigned int PTrajectoryStateOnDet::idMask = 0x3fffffff
staticprivate

Definition at line 24 of file PTrajectoryStateOnDet.h.

Referenced by detId(), and PTrajectoryStateOnDet::Pack::id().

float PTrajectoryStateOnDet::theLocalErrors[15]
private

Definition at line 82 of file PTrajectoryStateOnDet.h.

Referenced by error(), hasError(), and PTrajectoryStateOnDet().

LocalTrajectoryParameters PTrajectoryStateOnDet::theLocalParameters
private

Definition at line 81 of file PTrajectoryStateOnDet.h.

Referenced by parameters().

unsigned int PTrajectoryStateOnDet::thePack
private

Definition at line 84 of file PTrajectoryStateOnDet.h.

Referenced by detId(), PTrajectoryStateOnDet(), and surfaceSide().

float PTrajectoryStateOnDet::thePt
private

Definition at line 83 of file PTrajectoryStateOnDet.h.

Referenced by pt().