15#include "GaudiKernel/StatusCode.h"
16#include "CLHEP/Units/SystemOfUnits.h"
38 (
const std::string&
type,
39 const std::string& name,
40 const IInterface* parent)
86 return StatusCode::SUCCESS;
113 return StatusCode::SUCCESS;
136 int quality = ( (cell->quality()&0xFFFF) | ((cell->provenance()&0xFFFF) <<16));
151 *
m_sigma = caloNoise-> getNoise(cell->ID(), cell->gain());
154 return StatusCode::SUCCESS ;
172 unsigned ATbit1 = desc.is_lar_em() ? (1<<0) : 0;
173 unsigned ATbit2 = desc.is_lar_hec() ? (1<<1) : 0;
174 unsigned ATbit3 = desc.is_lar_fcal() ? (1<<2) : 0;
175 unsigned ATbit4 = desc.is_tile() ? (1<<3) : 0;
176 unsigned ATbit = (ATbit1 | ATbit2 | ATbit3 | ATbit4);
194 EMbit1 = unsigned(emid.
sampling(cellID));
199 unsigned EMbit = (EMbit1 | EMbit3 | EMbit4 | EMbit5);
210 HCbit1 = unsigned(hecid.
sampling(cellID));
212 unsigned HCbit = HCbit1;
225 FCbit1 = unsigned(fcalid.module(cellID));
227 unsigned FCbit = FCbit1;
249 TLbit1 = unsigned(tileid.
sample(cellID));
255 unsigned TLbit = (TLbit1 | TLbit4 | TLbit5 | TLbit6 | TLbit7);
259 unsigned CombBit = (ATbit | (EMbit<<4) | (HCbit<<9) |
260 (FCbit<<11) | (TLbit<<13));
Helper base class for offline cell identifiers.
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
Helper base class for offline cell identifiers.
const LArFCAL_Base_ID * fcal_idHelper() const
access to FCAL idHelper
const LArHEC_Base_ID * hec_idHelper() const
access to HEC idHelper
const Tile_Base_ID * tile_idHelper() const
access to Tile idHelper
const LArEM_Base_ID * em_idHelper() const
access to EM idHelper
Data object for each calorimeter readout cell.
This is a base class for LAr and Tile Descriptors The primary goal is to speed up loops over all the ...
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
This class factors out code common between LArEM_ID and LArEM_SuperCell_ID.
bool is_em_endcap_outer(const Identifier id) const
test if the id belongs to the EM Endcap outer wheel
bool is_em_barrel(const Identifier id) const
test if the id belongs to the EM barrel
bool is_em_endcap_inner(const Identifier id) const
test if the id belongs to the EM Endcap inner wheel
int sampling(const Identifier id) const
return sampling according to :
This class factors out code common between LArEM_ID and LArEM_SuperCell_ID.
int sampling(const Identifier id) const
return sampling [0,3] (only 0 for supercells)
This class factors out code common between TileID and Tile_SuperCell_ID.
int sample(const Identifier &id) const
bool is_tile_barrel(const Identifier &id) const
Test of an Identifier to see if it belongs to a particular part of the calorimeter.
bool is_tile_extbarrel(const Identifier &id) const
bool is_tile_gap(const Identifier &id) const
bool is_tile_gapscin(const Identifier &id) const
Block filler tool for noisy FEB information.