Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

NPCellID Class Reference

#include <NPCellID.hh>

Collaboration diagram for NPCellID:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NPCellID (unsigned int jr, unsigned int jphi, unsigned int jz)
 NPCellID (unsigned int cellIndex)
 NPCellID (const NPCellID &id)
 ~NPCellID ()
unsigned int packIn32Bits ()

Public Attributes

unsigned int ir
unsigned int iphi
unsigned int iz

Private Member Functions

 NPCellID ()

Constructor & Destructor Documentation

NPCellID::NPCellID unsigned int  jr,
unsigned int  jphi,
unsigned int  jz
[inline]
 

Definition at line 16 of file NPCellID.hh.

References iphi, ir, and iz.

00016                                                                 {
00017     ir = jr;
00018     iphi = jphi;
00019     iz = jz;
00020   }

NPCellID::NPCellID unsigned int  cellIndex  )  [inline]
 

Definition at line 22 of file NPCellID.hh.

References iphi, ir, and iz.

00022                                    {
00023     ir = (cellIndex>>26) & 0x3f;
00024     iz = (cellIndex>>14) & 0xfff;
00025     if(iz&0x800) iz |= ~0xfff;        // account for sign bit
00026     iphi = (cellIndex & 0x3fff);
00027   }

NPCellID::NPCellID const NPCellID id  )  [inline]
 

Definition at line 29 of file NPCellID.hh.

References iphi, ir, and iz.

00029 : ir(id.ir), iphi(id.iphi), iz(id.iz) { };

NPCellID::~NPCellID  )  [inline]
 

Definition at line 31 of file NPCellID.hh.

00031 {};

NPCellID::NPCellID  )  [inline, private]
 

Definition at line 42 of file NPCellID.hh.

00042 { }


Member Function Documentation

unsigned int NPCellID::packIn32Bits  )  [inline]
 

Definition at line 33 of file NPCellID.hh.

References iphi, ir, and iz.

Referenced by LCDG4CalSDNonProj::findCell().

00033                               {
00034     unsigned int bits =0;
00035     bits |= (ir & 0x3f) << 26;       // first 6 bits are layno,
00036     bits |= (iz & 0xfff) << 14;  // followed by 12 bits for theta
00037     bits |= (iphi & 0x3fff);     // and then 14 bits for phi
00038     return bits;
00039   }


Member Data Documentation

unsigned int NPCellID::iphi
 

Definition at line 46 of file NPCellID.hh.

Referenced by NonProjCalLayer::activeCellContains(), NonProjCalLayer::getCellCenterPhi(), NPCellID(), and packIn32Bits().

unsigned int NPCellID::ir
 

Definition at line 45 of file NPCellID.hh.

Referenced by NonProjCalLayer::activeCellContains(), NonProjCalGeometry::activeCellContains(), NonProjCalGeometry::getCellCenter(), NonProjCalGeometry::getCellCenterCylR(), NonProjCalGeometry::getCellCenterPhi(), NonProjCalGeometry::getCellCenterSphR(), NonProjCalGeometry::getCellCenterTheta(), NonProjCalGeometry::getCellCenterX(), NonProjCalGeometry::getCellCenterY(), NonProjCalGeometry::getCellCenterZ(), NPCellID(), and packIn32Bits().

unsigned int NPCellID::iz
 

Definition at line 47 of file NPCellID.hh.

Referenced by NonProjCalLayer::activeCellContains(), NonProjCalLayer::getCellCenterZ(), NPCellID(), and packIn32Bits().


The documentation for this class was generated from the following file:
Generated on Thu Oct 7 18:45:10 2004 for LCDG4 by doxygen 1.3.4