66 ATH_MSG_INFO(
"TileTBHitToBeamElem initialization completed" );
68 return StatusCode::SUCCESS;
79 auto beamElemContainer = std::make_unique<TileMutableBeamElemContainer>(
true);
100 double hit_calib =
m_tileInfo->BeamElemHitCalib(pmt_id);
101 double e_hit = tile_hit.energy();
102 double e_ch = e_hit * hit_calib;
106 double calib =
m_tileInfo->BeamElemChannelCalib(adc_id);
108 int amp_ch = (int) (e_ch / calib);
112 <<
" amp=" << amp_ch);
114 std::unique_ptr<TileBeamElem> beamElem = std::make_unique<TileBeamElem>(adc_id, amp_ch);
115 ATH_CHECK( beamElemContainer->push_back(std::move(beamElem)) );
124 return StatusCode::SUCCESS;
131 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
std::vector< FPGATrackSimHit > hitVector
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
Helper for holding non-const raw data prior to recording in SG.
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
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
SG::ReadHandleKey< TileHitVector > m_hitVectorKey
std::string m_infoName
name of the TileInfo object in TES
const TileTBID * m_tileTBID
Pointer to TileID helper.
virtual ~TileTBHitToBeamElem()
Destructor.
TileTBHitToBeamElem(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
const TileInfo * m_tileInfo
Pointer to TileInfo.
virtual StatusCode initialize() override
initialize method
virtual StatusCode execute() override
execute method
const TileHWID * m_tileHWID
Pointer to TileHWID helper.
virtual StatusCode finalize() override
finalize method
SG::WriteHandleKey< TileBeamElemContainer > m_beamElemContainerKey