16#include "GaudiKernel/ServiceHandle.h"
24#include "CaloDetDescr/CaloDetDescrElement.h"
38 (
const std::string&
type,
39 const std::string& name,
40 const IInterface* parent)
68 return StatusCode::SUCCESS;
82 return StatusCode::SUCCESS;
110 return StatusCode::SUCCESS;
122 unsigned ATbit1 =
m_emid->is_lar_em(cellID) ? (1<<0) : 0;
123 unsigned ATbit2 =
m_hecid->is_lar_hec(cellID) ? (1<<1) : 0;
124 unsigned ATbit3 =
m_fcalid->is_lar_fcal(cellID) ? (1<<2) : 0;
125 unsigned ATbit4 =
m_tileid->is_tile(cellID) ? (1<<3) : 0;
126 unsigned ATbit = (ATbit1 | ATbit2 | ATbit3 | ATbit4);
143 EMbit1 = unsigned(
m_emid->sampling(cellID));
144 EMbit3 =
m_emid->is_em_barrel(cellID) ? (1<<2) : 0;
145 EMbit4 =
m_emid->is_em_endcap_inner(cellID) ? (1<<3) : 0;
146 EMbit5 =
m_emid->is_em_endcap_outer(cellID) ? (1<<4) : 0;
148 unsigned EMbit = (EMbit1 | EMbit3 | EMbit4 | EMbit5);
158 HCbit1 = unsigned(
m_hecid->sampling(cellID));
160 unsigned HCbit = HCbit1;
172 FCbit1 = unsigned(
m_fcalid->module(cellID));
174 unsigned FCbit = FCbit1;
195 TLbit1 = unsigned(
m_tileid->sample(cellID));
196 TLbit4 =
m_tileid->is_tile_barrel(cellID) ? (1<<3) : 0;
197 TLbit5 =
m_tileid->is_tile_extbarrel(cellID) ? (1<<4) : 0;
198 TLbit6 =
m_tileid->is_tile_gap(cellID) ? (1<<5) : 0;
199 TLbit7 =
m_tileid->is_tile_gapscin(cellID) ? (1<<6) : 0;
201 unsigned TLbit = (TLbit1 | TLbit4 | TLbit5 | TLbit6 | TLbit7);
205 unsigned int CombBit = (ATbit | (EMbit<<4) | (HCbit<<9) |
206 (FCbit<<11) | (TLbit<<13));
#define ATH_CHECK
Evaluate an expression and check for errors.
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
This class groups all DetDescr information related to a CaloCell.
float eta() const
cell eta
float phi() const
cell phi
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
Class to store hit energy and time in LAr cell from G4 simulation.
Block filler tool for noisy FEB information.