CMS 3D CMS Logo

Public Member Functions | Public Attributes

PTrajectoryStateOnDet::Pack Union Reference

List of all members.

Public Member Functions

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

Public Attributes

Packing bytes
DetPack det
unsigned int packed

Detailed Description

Definition at line 24 of file PTrajectoryStateOnDet.h.


Constructor & Destructor Documentation

PTrajectoryStateOnDet::Pack::Pack ( ) [inline]

Definition at line 25 of file PTrajectoryStateOnDet.h.

{}
PTrajectoryStateOnDet::Pack::Pack ( unsigned int  pack) [inline]

Definition at line 26 of file PTrajectoryStateOnDet.h.

: packed(pack){}
PTrajectoryStateOnDet::Pack::Pack ( unsigned int  id,
int  surfaceSide 
) [inline]

Definition at line 27 of file PTrajectoryStateOnDet.h.

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

                                           : packed(id) {
      bytes.ss=surfaceSide;
      assert(surfaceSide<3);
      assert((id>>28)<4);
    }

Member Function Documentation

unsigned int PTrajectoryStateOnDet::Pack::id ( void  ) const [inline]

Definition at line 33 of file PTrajectoryStateOnDet.h.

References PTrajectoryStateOnDet::idMask, and packed.

{ return packed&idMask;}
int PTrajectoryStateOnDet::Pack::side ( ) const [inline]

Definition at line 32 of file PTrajectoryStateOnDet.h.

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

Referenced by PTrajectoryStateOnDet::surfaceSide().

{ return bytes.ss;}

Member Data Documentation

Definition at line 35 of file PTrajectoryStateOnDet.h.

Referenced by Pack(), and side().

Definition at line 36 of file PTrajectoryStateOnDet.h.

Definition at line 34 of file PTrajectoryStateOnDet.h.

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