#include <TMBCaloCell.hpp>
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.
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 | |
|
|
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
Definition at line 43 of file TMBCaloCell.hpp. |
|
|
Definition at line 9 of file TMBCaloCell.cpp. |
|
||||||||||||||||||||||||
|
Definition at line 14 of file TMBCaloCell.cpp. |
|
|
Definition at line 24 of file TMBCaloCell.cpp. |
|
|
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. |
|
||||||||||||
|
|
|
|
Energy.
Definition at line 65 of file TMBCaloCell.hpp. References _E. |
|
|
Cell flags.
Definition at line 77 of file TMBCaloCell.hpp. References _flags. Referenced by isCalT42Cell(), isNadaCell(), and isSCAFailureCell(). |
|
|
Integer eta, -40..40.
Definition at line 68 of file TMBCaloCell.hpp. References _ieta. Referenced by compare_cell::operator()(). |
|
|
Integer phi, 0..63.
Definition at line 71 of file TMBCaloCell.hpp. References _iphi. Referenced by compare_cell::operator()(). |
|
|
Is the cell from CalT4_25 ?
Definition at line 88 of file TMBCaloCell.hpp. References flags(), and T42_CELL. Referenced by AddFlag(). |
|
|
Is the cell from CalNadaChunk ?
Definition at line 83 of file TMBCaloCell.hpp. References flags(), and NADA_CELL. Referenced by AddFlag(). |
|
|
Is the cell from CalDataChunk ?
Definition at line 80 of file TMBCaloCell.hpp. References _flags. |
|
|
Is it an SCA_failure cell ?
Definition at line 93 of file TMBCaloCell.hpp. References flags(), and SCAFAILURE_CELL. Referenced by AddFlag(). |
|
|
Layer, 1..17.
Definition at line 74 of file TMBCaloCell.hpp. References _ilyr. Referenced by compare_cell::operator()(). |
|
||||||||||||||||||||||||
|
Set the values of the cell.
Definition at line 27 of file TMBCaloCell.cpp. |
|
|
energy
Definition at line 23 of file TMBCaloCell.hpp. |
|
|
flags
Definition at line 35 of file TMBCaloCell.hpp. Referenced by AddFlag(), flags(), isNormalCell(), and Set(). |
|
|
integer eta,-40..40
Definition at line 26 of file TMBCaloCell.hpp. |
|
|
layer, 1..17
Definition at line 32 of file TMBCaloCell.hpp. |
|
|
integer phi, 0..63
Definition at line 29 of file TMBCaloCell.hpp. |
1.3.4