16#include "CaloDetDescr/CaloDetDescrElement.h"
33 ATH_CHECK( detStore()->retrieve (calocell_id,
"CaloCell_ID") );
44 return StatusCode::SUCCESS;
51 const Step step)
const
61 const Step step)
const
88 const Step step)
const
100 ATH_MSG_WARNING(
"CaloEstimatedGainTool::estimatedGain NOT IMPLEMENTED FOR TILE "
101 <<
"with these arguments! "
119 const Step step)
const
146 if (step == Step::CELLS ||
147 step == Step::RAWCHANNELS)
151 adc = energy / fac + 1000;
184 tileHWID->
get_id (caloDDE.
onl1(), hwid1, &chContext );
187 unsigned int drawerIdx1(0), channel1(0), adc1(0);
191 double amplitude1 = tileCell.
ene1();
200 if (amplitude1 + pedestal1 <
threshold ) {
210 tileHWID->
get_id( caloDDE.
onl2(), hwid2, &chContext );
213 unsigned int drawerIdx2(0), channel2(0), adc2(0);
217 double amplitude2 = tileCell.
ene2();
224 if (amplitude2 + pedestal2 <
threshold) {
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Helper class for offline cell identifiers.
CaloCell_Base_ID::SUBCALO SUBCALO
const LArEM_ID * em_idHelper() const
access to EM idHelper
Data object for each calorimeter readout cell.
double energy() const
get energy (data member)
const CaloDetDescrElement * caloDDE() const
get pointer to CaloDetDescrElement (data member)
This class groups all DetDescr information related to a CaloCell.
CaloCell_ID::SUBCALO getSubCalo() const
cell subcalo
Identifier identify() const override final
cell identifier
IdentifierHash onl2() const
cell online identifier 2
IdentifierHash onl1() const
cell online identifier 1
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
const TileHWID * getTileHWID() const
static const TileCablingService * getInstance()
get pointer to service instance
float ene1(void) const
get energy of first PMT
float ene2(void) const
get energy of second PMT
Helper class for TileCal online (hardware) identifiers.
virtual int get_id(const IdentifierHash &hash_id, HWIdentifier &id, const IdContext *context=0) const
create compact HW ID from hash id (return == 0 for OK)
IdContext channel_context() const
idContext for channels
HWIdentifier adc_id(int ros, int drawer, int channel, int adc) const
adc HWIdentifer