TMBCaloCell Class Reference
[Calorimeter]

#include <TMBCaloCell.hpp>

List of all members.


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 OR that they can be affected a noise, only SCA failure.

Cells are only stored as part of TMBCellContainer.

See also:
TMBCellContainer

Definition at line 19 of file TMBCaloCell.hpp.

Public Types

enum  Flag {
  CAL_CELL = 0,
  NADA_CELL = 0x0001,
  T42_CELL = 0x0002,
  SCAFAILURE_CELL = 0x0004
}
 Flag to mark cells not coming from CalDataChunk !! when adding a flag you also need to modify the AddFlag function next available bits are 0x0008, 0x0010... 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.

void AddFlag (UChar_t flag=0)
 Add a flag to an already existing 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 ?

Bool_t isSCAFailureCell () const
 Is it an SCA_failure cell ?

 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


Member Enumeration Documentation

enum TMBCaloCell::Flag
 

Flag to mark cells not coming from CalDataChunk !! when adding a flag you also need to modify the AddFlag function next available bits are 0x0008, 0x0010...

this way of flagging allows to have a cell with several informations. For instance, it can be a SCAFAILURE_CELL and a T42_CELL

Enumeration values:
CAL_CELL  Cell is from normal CalDataChunk.
NADA_CELL  Cell is from CalNadaChunk.
T42_CELL  Cells is from CalT4_25Chunk.
SCAFAILURE_CELL  Cells with an SCA failure from the CalQualityChunk.

Definition at line 43 of file TMBCaloCell.hpp.


Constructor & Destructor Documentation

TMBCaloCell::TMBCaloCell  ) 
 

Definition at line 9 of file TMBCaloCell.cpp.

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

Definition at line 14 of file TMBCaloCell.cpp.

TMBCaloCell::~TMBCaloCell  )  [virtual]
 

Definition at line 24 of file TMBCaloCell.cpp.


Member Function Documentation

void TMBCaloCell::AddFlag UChar_t  flag = 0  ) 
 

Add a flag to an already existing cell.

Definition at line 37 of file TMBCaloCell.cpp.

References _flags, isCalT42Cell(), isNadaCell(), isSCAFailureCell(), NADA_CELL, SCAFAILURE_CELL, and T42_CELL.

TMBCaloCell::ClassDef TMBCaloCell  ,
 

Float_t TMBCaloCell::E  )  const [inline]
 

Energy.

Definition at line 65 of file TMBCaloCell.hpp.

References _E.

Int_t TMBCaloCell::flags  )  const [inline]
 

Cell flags.

Definition at line 77 of file TMBCaloCell.hpp.

References _flags.

Referenced by isCalT42Cell(), isNadaCell(), and isSCAFailureCell().

Int_t TMBCaloCell::ieta  )  const [inline]
 

Integer eta, -40..40.

Definition at line 68 of file TMBCaloCell.hpp.

References _ieta.

Referenced by compare_cell::operator()().

Int_t TMBCaloCell::iphi  )  const [inline]
 

Integer phi, 0..63.

Definition at line 71 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 88 of file TMBCaloCell.hpp.

References flags(), and T42_CELL.

Referenced by AddFlag().

Bool_t TMBCaloCell::isNadaCell  )  const [inline]
 

Is the cell from CalNadaChunk ?

Definition at line 83 of file TMBCaloCell.hpp.

References flags(), and NADA_CELL.

Referenced by AddFlag().

Bool_t TMBCaloCell::isNormalCell  )  const [inline]
 

Is the cell from CalDataChunk ?

Definition at line 80 of file TMBCaloCell.hpp.

References _flags.

Bool_t TMBCaloCell::isSCAFailureCell  )  const [inline]
 

Is it an SCA_failure cell ?

Definition at line 93 of file TMBCaloCell.hpp.

References flags(), and SCAFAILURE_CELL.

Referenced by AddFlag().

Int_t TMBCaloCell::layer  )  const [inline]
 

Layer, 1..17.

Definition at line 74 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 27 of file TMBCaloCell.cpp.

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


Member Data Documentation

Float_t TMBCaloCell::_E [private]
 

energy

Definition at line 23 of file TMBCaloCell.hpp.

Referenced by E(), and Set().

UChar_t TMBCaloCell::_flags [private]
 

flags

Definition at line 35 of file TMBCaloCell.hpp.

Referenced by AddFlag(), flags(), isNormalCell(), and Set().

Char_t TMBCaloCell::_ieta [private]
 

integer eta,-40..40

Definition at line 26 of file TMBCaloCell.hpp.

Referenced by ieta(), and Set().

UChar_t TMBCaloCell::_ilyr [private]
 

layer, 1..17

Definition at line 32 of file TMBCaloCell.hpp.

Referenced by layer(), and Set().

UChar_t TMBCaloCell::_iphi [private]
 

integer phi, 0..63

Definition at line 29 of file TMBCaloCell.hpp.

Referenced by iphi(), and Set().


The documentation for this class was generated from the following files:
Generated on Thu Apr 3 04:14:25 2008 for CAF by doxygen 1.3.4