#include <TBID.h>
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... |
|
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.
|
|
Constructor to be used when the class used as simply a conversion tool.
|
|
Given cell integer coordinates return an ID.
|
|
Return the stored cell id.
|
|
Given a cell ID return coresponding detector number (hec = 2, emec =1).
|
|
Return the stored detector number (hec = 2, emec =1).
|
|
Given a cell ID return coresponding ieta coord.
|
|
Return the stored ieta coordinate.
|
|
Given a cell ID return coresponding iphi coord.
|
|
Return the stored iphi coordinate.
|
|
Given a cell ID return coresponding iz coord.
|
|
Return the stored iz coordinate.
|
|
The less than operator.
|
|
The equal operator.
|