CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
PTrajectoryStateOnDet::Pack Union Reference

Public Member Functions

unsigned int id () const
 
 Pack ()
 
 Pack (unsigned int id, int surfaceSide)
 
 Pack (unsigned int pack)
 
int side () const
 

Public Attributes

Packing bytes
 
DetPack det
 
unsigned int packed
 

Detailed Description

Definition at line 26 of file PTrajectoryStateOnDet.h.

Constructor & Destructor Documentation

◆ Pack() [1/3]

PTrajectoryStateOnDet::Pack::Pack ( )
inline

Definition at line 27 of file PTrajectoryStateOnDet.h.

27 {}

◆ Pack() [2/3]

PTrajectoryStateOnDet::Pack::Pack ( unsigned int  pack)
inline

Definition at line 28 of file PTrajectoryStateOnDet.h.

28 : packed(pack) {}

◆ Pack() [3/3]

PTrajectoryStateOnDet::Pack::Pack ( unsigned int  id,
int  surfaceSide 
)
inline

Definition at line 29 of file PTrajectoryStateOnDet.h.

29  : packed(id) {
31  assert(surfaceSide < 3);
32  assert((id >> 28) < 4);
33  }

References cms::cuda::assert(), bytes, PTrajectoryStateOnDet::Packing::ss, and PTrajectoryStateOnDet::surfaceSide().

Member Function Documentation

◆ id()

unsigned int PTrajectoryStateOnDet::Pack::id ( ) const
inline

Definition at line 35 of file PTrajectoryStateOnDet.h.

35 { return packed & idMask; }

References PTrajectoryStateOnDet::idMask, and packed.

◆ side()

int PTrajectoryStateOnDet::Pack::side ( ) const
inline

Definition at line 34 of file PTrajectoryStateOnDet.h.

34 { return bytes.ss; }

References bytes, and PTrajectoryStateOnDet::Packing::ss.

Member Data Documentation

◆ bytes

Packing PTrajectoryStateOnDet::Pack::bytes

Definition at line 37 of file PTrajectoryStateOnDet.h.

Referenced by Pack(), and side().

◆ det

DetPack PTrajectoryStateOnDet::Pack::det

Definition at line 38 of file PTrajectoryStateOnDet.h.

◆ packed

unsigned int PTrajectoryStateOnDet::Pack::packed

Definition at line 36 of file PTrajectoryStateOnDet.h.

Referenced by id().

PTrajectoryStateOnDet::Pack::packed
unsigned int packed
Definition: PTrajectoryStateOnDet.h:36
cms::cuda::assert
assert(be >=bs)
PTrajectoryStateOnDet::Pack::bytes
Packing bytes
Definition: PTrajectoryStateOnDet.h:37
PTrajectoryStateOnDet::surfaceSide
int surfaceSide() const
Definition: PTrajectoryStateOnDet.h:66
timeUnitHelper.pack
def pack(high, low)
Definition: timeUnitHelper.py:3
PTrajectoryStateOnDet::Packing::ss
unsigned char ss
Definition: PTrajectoryStateOnDet.h:15
PTrajectoryStateOnDet::idMask
static const unsigned int idMask
Definition: PTrajectoryStateOnDet.h:25