65 ATH_MSG_INFO(
"Sampling fraction is taken into account for TileHit energy" );
67 ATH_MSG_INFO(
"TileHit will contain CELL energy (not divided by sampling fraction)" );
81 ATH_MSG_INFO(
"TileRawChannelToHit initialization completed" );
83 return StatusCode::SUCCESS;
103 samplingFraction = samplingFractionHandle.
cptr();
116 if (!rawChannelContainer.isValid()) {
133 bool is_calibration = (rawChannelCollection->size() == 96);
150 float amp = rawChannel->amplitude();
151 float time = rawChannel->time();
167 TileHit hit(pmt_id, ener, time);
172 <<
" pmt_id=" <<
m_tileID->to_string(pmt_id, -1)
173 <<
" adc_id=" <<
m_tileHWID->to_string(adc_id)
177 <<
" time=" << time );
184 <<
" channel with adc_id=" <<
m_tileHWID->to_string(adc_id)
185 <<
" is not connected" );
197 <<
" RawChSum=" << eCh
199 <<
" eneTot=" << eHitTot );
202 ATH_MSG_VERBOSE(
"TileHitVector container registered to the TES with name"
205 return StatusCode::SUCCESS;
219 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
Helpers for checking error return status codes and reporting errors.
std::vector< FPGATrackSimHit > hitVector
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const ServiceHandle< StoreGateSvc > & detStore() const
bool is_valid() const
Check if id is in a valid state.
const_pointer_type cptr()
static unsigned int getDrawerIdx(unsigned int ros, unsigned int drawer)
Returns a drawer hash.
SG::WriteHandleKey< TileHitVector > m_hitVectorKey
virtual ~TileRawChannelToHit()
const TileHWID * m_tileHWID
SG::ReadHandleKey< TileRawChannelContainer > m_rawChannelContainerKey
SG::ReadCondHandleKey< TileSamplingFraction > m_samplingFractionKey
Name of TileSamplingFraction in condition store.
ToolHandle< TileCondToolEmscale > m_tileToolEmscale
main Tile Calibration tool
TileRawChannelToHit(const std::string &name, ISvcLocator *pSvcLocator)
Condition object to keep and provide Tile Calorimeter sampling fraction and number of photoelectrons.
float getSamplingFraction(unsigned int drawerIdx, unsigned int channel) const
Return Tile Calorimeter sampling fraction.