CMS 3D CMS Logo

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, float errmatrix[15], unsigned int id, int surfaceSide)
 
 PTrajectoryStateOnDet (const LocalTrajectoryParameters &param, float ipt, unsigned int id, int surfaceSide)
 
int surfaceSide () const
 

Private Attributes

float theLocalErrors [15] = {}
 
LocalTrajectoryParameters theLocalParameters
 
unsigned int thePack = 0
 
float thePt = 0
 

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() [1/3]

PTrajectoryStateOnDet::PTrajectoryStateOnDet ( )
inline

Definition at line 42 of file PTrajectoryStateOnDet.h.

42 {}

◆ PTrajectoryStateOnDet() [2/3]

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

Definition at line 44 of file PTrajectoryStateOnDet.h.

45  : theLocalParameters(param), thePt(ipt) {
46  Pack p(id, surfaceSide);
47  thePack = p.packed;
48  theLocalErrors[0] = -99999.e10;
49  }

References AlCaHLTBitMon_ParallelJobs::p, surfaceSide(), theLocalErrors, and thePack.

◆ PTrajectoryStateOnDet() [3/3]

PTrajectoryStateOnDet::PTrajectoryStateOnDet ( const LocalTrajectoryParameters param,
float  ipt,
float  errmatrix[15],
unsigned int  id,
int  surfaceSide 
)
inline

Definition at line 51 of file PTrajectoryStateOnDet.h.

53  : theLocalParameters(param), thePt(ipt) {
54  Pack p(id, surfaceSide);
55  thePack = p.packed;
56  for (int i = 0; i < 15; i++)
57  theLocalErrors[i] = errmatrix[i];
58  }

References mps_fire::i, AlCaHLTBitMon_ParallelJobs::p, surfaceSide(), theLocalErrors, and thePack.

Member Function Documentation

◆ detId()

unsigned int PTrajectoryStateOnDet::detId ( ) const
inline

◆ error() [1/2]

float& PTrajectoryStateOnDet::error ( int  i)
inline

◆ error() [2/2]

float PTrajectoryStateOnDet::error ( int  i) const
inline

Definition at line 64 of file PTrajectoryStateOnDet.h.

64 { return theLocalErrors[i]; }

References mps_fire::i, and theLocalErrors.

Referenced by Page1Parser.Page1Parser::check_for_whole_start_tag().

◆ hasError()

bool PTrajectoryStateOnDet::hasError ( void  ) const
inline

Definition at line 62 of file PTrajectoryStateOnDet.h.

62 { return theLocalErrors[0] > -1.e10; }

References theLocalErrors.

Referenced by trajectoryStateTransform::transientState().

◆ parameters()

const LocalTrajectoryParameters& PTrajectoryStateOnDet::parameters ( void  ) const
inline

◆ pt()

float PTrajectoryStateOnDet::pt ( ) const
inline

◆ surfaceSide()

int PTrajectoryStateOnDet::surfaceSide ( ) const
inline

Definition at line 66 of file PTrajectoryStateOnDet.h.

66  {
67  Pack p(thePack);
68  return p.side();
69  }

References AlCaHLTBitMon_ParallelJobs::p, and thePack.

Referenced by PTrajectoryStateOnDet::Pack::Pack(), PTrajectoryStateOnDet(), and trajectoryStateTransform::transientState().

Member Data Documentation

◆ idMask

const unsigned int PTrajectoryStateOnDet::idMask = 0x3fffffff
staticprivate

Definition at line 25 of file PTrajectoryStateOnDet.h.

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

◆ theLocalErrors

float PTrajectoryStateOnDet::theLocalErrors[15] = {}
private

Definition at line 73 of file PTrajectoryStateOnDet.h.

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

◆ theLocalParameters

LocalTrajectoryParameters PTrajectoryStateOnDet::theLocalParameters
private

Definition at line 72 of file PTrajectoryStateOnDet.h.

Referenced by parameters().

◆ thePack

unsigned int PTrajectoryStateOnDet::thePack = 0
private

Definition at line 75 of file PTrajectoryStateOnDet.h.

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

◆ thePt

float PTrajectoryStateOnDet::thePt = 0
private

Definition at line 74 of file PTrajectoryStateOnDet.h.

Referenced by pt().

mps_fire.i
i
Definition: mps_fire.py:428
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
PTrajectoryStateOnDet::theLocalErrors
float theLocalErrors[15]
Definition: PTrajectoryStateOnDet.h:73
PTrajectoryStateOnDet::surfaceSide
int surfaceSide() const
Definition: PTrajectoryStateOnDet.h:66
PTrajectoryStateOnDet::theLocalParameters
LocalTrajectoryParameters theLocalParameters
Definition: PTrajectoryStateOnDet.h:72
PTrajectoryStateOnDet::thePack
unsigned int thePack
Definition: PTrajectoryStateOnDet.h:75
PTrajectoryStateOnDet::idMask
static const unsigned int idMask
Definition: PTrajectoryStateOnDet.h:25
PTrajectoryStateOnDet::thePt
float thePt
Definition: PTrajectoryStateOnDet.h:74