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

TMBCaloCell Class Reference
[Calorimeter]

A single calorimeter cell. More...

#include <TMBCaloCell.hpp>

List of all members.

Public Types

enum  Flag {
  CAL_CELL = 0,
  NADA_CELL = 1,
  T42_CELL = 2
}
 Flag to mark cells not coming from CalDataChunk. More...


Public Member Functions

 TMBCaloCell ()
 TMBCaloCell (Char_t ieta, UChar_t iphi, UChar_t ilyr, Float_t E, UChar_t flags)
virtual ~TMBCaloCell ()
void Set (Char_t ieta, UChar_t iphi, UChar_t ilyr, Float_t E, UChar_t flags=0)
 Set the values of the cell.

Float_t E () const
 Energy.

Int_t ieta () const
 Integer eta, -40..40.

Int_t iphi () const
 Integer phi, 0..63.

Int_t layer () const
 Layer, 1..17.

Int_t flags () const
 Cell flags.

Bool_t isNormalCell () const
 Is the cell from CalDataChunk ?

Bool_t isNadaCell () const
 Is the cell from CalNadaChunk ?

Bool_t isCalT42Cell () const
 Is the cell from CalT4_25 ?

 ClassDef (TMBCaloCell, 1)

Private Attributes

Float_t _E
 energy

Char_t _ieta
 integer eta,-40..40

UChar_t _iphi
 integer phi, 0..63

UChar_t _ilyr
 layer, 1..17

UChar_t _flags
 flags


Detailed Description

A single calorimeter cell.

Cells are stored with their energy (as float), integer eta and phi coordinates and their layer. In addition, a cell can be marked with special flags to indicate that they are not from the normal CalDataChunk.

Cells are only stored as part of TMBCellContainer.

See also:
TMBCellContainer

Definition at line 17 of file TMBCaloCell.hpp.


Member Enumeration Documentation

enum TMBCaloCell::Flag
 

Flag to mark cells not coming from CalDataChunk.

Enumeration values:
CAL_CELL  Cell is from normal CalDataChunk.
NADA_CELL  Cell is from CalNadaChunk.
T42_CELL  Cells is from CalT4_25Chunk.

Definition at line 38 of file TMBCaloCell.hpp.


Constructor & Destructor Documentation

TMBCaloCell::TMBCaloCell  ) 
 

Definition at line 6 of file TMBCaloCell.cpp.

TMBCaloCell::TMBCaloCell Char_t  ieta,
UChar_t  iphi,
UChar_t  ilyr,
Float_t  E,
UChar_t  flags
 

Definition at line 11 of file TMBCaloCell.cpp.

TMBCaloCell::~TMBCaloCell  )  [virtual]
 

Definition at line 21 of file TMBCaloCell.cpp.


Member Function Documentation

TMBCaloCell::ClassDef TMBCaloCell  ,
 

Float_t TMBCaloCell::E  )  const [inline]
 

Energy.

Definition at line 54 of file TMBCaloCell.hpp.

References _E.

Int_t TMBCaloCell::flags  )  const [inline]
 

Cell flags.

Definition at line 66 of file TMBCaloCell.hpp.

References _flags.

Int_t TMBCaloCell::ieta  )  const [inline]
 

Integer eta, -40..40.

Definition at line 57 of file TMBCaloCell.hpp.

References _ieta.

Referenced by compare_cell::operator()().

Int_t TMBCaloCell::iphi  )  const [inline]
 

Integer phi, 0..63.

Definition at line 60 of file TMBCaloCell.hpp.

References _iphi.

Referenced by compare_cell::operator()().

Bool_t TMBCaloCell::isCalT42Cell  )  const [inline]
 

Is the cell from CalT4_25 ?

Definition at line 75 of file TMBCaloCell.hpp.

References _flags.

Bool_t TMBCaloCell::isNadaCell  )  const [inline]
 

Is the cell from CalNadaChunk ?

Definition at line 72 of file TMBCaloCell.hpp.

References _flags.

Bool_t TMBCaloCell::isNormalCell  )  const [inline]
 

Is the cell from CalDataChunk ?

Definition at line 69 of file TMBCaloCell.hpp.

References _flags.

Int_t TMBCaloCell::layer  )  const [inline]
 

Layer, 1..17.

Definition at line 63 of file TMBCaloCell.hpp.

References _ilyr.

Referenced by compare_cell::operator()().

void TMBCaloCell::Set Char_t  ieta,
UChar_t  iphi,
UChar_t  ilyr,
Float_t  E,
UChar_t  flags = 0
 

Set the values of the cell.

Definition at line 24 of file TMBCaloCell.cpp.

References _E, _flags, _ieta, _ilyr, and _iphi.


Member Data Documentation

Float_t TMBCaloCell::_E [private]
 

energy

Definition at line 21 of file TMBCaloCell.hpp.

Referenced by E(), and Set().

UChar_t TMBCaloCell::_flags [private]
 

flags

Definition at line 33 of file TMBCaloCell.hpp.

Referenced by flags(), isCalT42Cell(), isNadaCell(), isNormalCell(), and Set().

Char_t TMBCaloCell::_ieta [private]
 

integer eta,-40..40

Definition at line 24 of file TMBCaloCell.hpp.

Referenced by ieta(), and Set().

UChar_t TMBCaloCell::_ilyr [private]
 

layer, 1..17

Definition at line 30 of file TMBCaloCell.hpp.

Referenced by layer(), and Set().

UChar_t TMBCaloCell::_iphi [private]
 

integer phi, 0..63

Definition at line 27 of file TMBCaloCell.hpp.

Referenced by iphi(), and Set().


The documentation for this class was generated from the following files:
Generated on Tue Mar 28 10:13:06 2006 for CAF by doxygen 1.3.4