Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TBID Class Reference

#include <TBID.h>

List of all members.

Public Methods

 TBID (int idet, int ieta, int iphi, int iz)
 Constructor to be used when you what the class to store its cell ID and then later access the various coordinates (idet,ieta,iphi,iz) without giving a detector id. More...

 TBID ()
 Constructor to be used when the class used as simply a conversion tool. More...

int id ()
 Return the stored cell id. More...

int id (int idet, int ieta, int iphi, int iz)
 Given cell integer coordinates return an ID. More...

int ieta ()
 Return the stored ieta coordinate. More...

int ieta (int ID)
 Given a cell ID return coresponding ieta coord. More...

int iphi ()
 Return the stored iphi coordinate. More...

int iphi (int ID)
 Given a cell ID return coresponding iphi coord. More...

int iz ()
 Return the stored iz coordinate. More...

int iz (int ID)
 Given a cell ID return coresponding iz coord. More...

int idet ()
 Return the stored detector number (hec = 2, emec =1). More...

int idet (int ID)
 Given a cell ID return coresponding detector number (hec = 2, emec =1). More...


Friends

bool operator< (const TBID &, const TBID &)
 The less than operator. More...

bool operator== (const TBID &, const TBID &)
 The equal operator. More...


Detailed Description


Constructor & Destructor Documentation

TBID::TBID int    idet,
int    ieta,
int    iphi,
int    iz
 

Constructor to be used when you what the class to store its cell ID and then later access the various coordinates (idet,ieta,iphi,iz) without giving a detector id.

Parameters:
idet  Detector id: hec = 2, emec = 1
ieta  hec = [ 1,14], emec = [ 0,67]
iphi  hec=[ 1, 6], emec = [ 0,31]
iz  hec = [ 1, 3], emec = [ 0, 3]

TBID::TBID   [inline]
 

Constructor to be used when the class used as simply a conversion tool.


Member Function Documentation

int TBID::id int    idet,
int    ieta,
int    iphi,
int    iz
 

Given cell integer coordinates return an ID.

Parameters:
idet  Detector id: hec = 2, emec = 1
ieta  hec = [ 1,14], emec = [ 0,67]
iphi  hec=[ 1, 6], emec = [ 0,31]
iz  hec = [ 1, 3], emec = [ 0, 3]

int TBID::id  
 

Return the stored cell id.

int TBID::idet int    ID
 

Given a cell ID return coresponding detector number (hec = 2, emec =1).

Parameters:
ID  the ID of the cell to retrieve the iz coordinate

int TBID::idet  
 

Return the stored detector number (hec = 2, emec =1).

int TBID::ieta int    ID
 

Given a cell ID return coresponding ieta coord.

Parameters:
ID  the ID of the cell to retrieve the ieta coordinate

int TBID::ieta  
 

Return the stored ieta coordinate.

int TBID::iphi int    ID
 

Given a cell ID return coresponding iphi coord.

Parameters:
ID  the ID of the cell to retrieve the iphi coordinate

int TBID::iphi  
 

Return the stored iphi coordinate.

int TBID::iz int    ID
 

Given a cell ID return coresponding iz coord.

Parameters:
ID  the ID of the cell to retrieve the iz coordinate

int TBID::iz  
 

Return the stored iz coordinate.


Friends And Related Function Documentation

bool operator< const TBID &   ,
const TBID &   
[friend]
 

The less than operator.

bool operator== const TBID &   ,
const TBID &   
[friend]
 

The equal operator.


The documentation for this class was generated from the following files:
Generated on Fri Aug 15 10:52:05 2003 for TBRootAna by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002