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 pack)
 
 Pack (unsigned int id, int surfaceSide)
 
int side () const
 

Public Attributes

Packing bytes
 
DetPack det
 
unsigned int packed
 

Detailed Description

Definition at line 25 of file PTrajectoryStateOnDet.h.

Constructor & Destructor Documentation

PTrajectoryStateOnDet::Pack::Pack ( )
inline

Definition at line 26 of file PTrajectoryStateOnDet.h.

26 {}
PTrajectoryStateOnDet::Pack::Pack ( unsigned int  pack)
inline

Definition at line 27 of file PTrajectoryStateOnDet.h.

27 : packed(pack){}
def pack(high, low)
PTrajectoryStateOnDet::Pack::Pack ( unsigned int  id,
int  surfaceSide 
)
inline

Definition at line 28 of file PTrajectoryStateOnDet.h.

References PTrajectoryStateOnDet::surfaceSide().

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

Member Function Documentation

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

Definition at line 34 of file PTrajectoryStateOnDet.h.

References PTrajectoryStateOnDet::idMask.

34 { return packed&idMask;}
static const unsigned int idMask
int PTrajectoryStateOnDet::Pack::side ( ) const
inline

Member Data Documentation

Packing PTrajectoryStateOnDet::Pack::bytes

Definition at line 36 of file PTrajectoryStateOnDet.h.

DetPack PTrajectoryStateOnDet::Pack::det

Definition at line 37 of file PTrajectoryStateOnDet.h.

unsigned int PTrajectoryStateOnDet::Pack::packed