27#ifndef TILESIMALGS_TILEHITTORAWCHANNEL_H
28#define TILESIMALGS_TILEHITTORAWCHANNEL_H
47#include "GaudiKernel/ToolHandle.h"
48#include "GaudiKernel/ServiceHandle.h"
50#include "CLHEP/Random/RandomEngine.h"
55#include "Gaudi/Property.h"
86 virtual StatusCode
execute(
const EventContext& ctx)
override;
87 virtual StatusCode
finalize()
override;
92 "input Tile hit container key"};
96 "Output Tile raw channel container key"};
101 "TileSamplingFraction",
"TileSamplingFraction",
"Input Tile sampling fraction"};
104 Gaudi::Property<std::string>
m_infoName{
this,
"TileInfoName",
"TileInfo"};
105 Gaudi::Property<double>
m_deltaT{
this,
"DeltaT", -1.0};
128 "TileCablingSvc",
"TileCablingSvc",
"The Tile cabling service"};
138 "TileEMScale",
"TileEMScale",
"Input Tile EMS calibration constants"};
141 "TileCondToolNoiseSample",
"TileCondToolNoiseSample",
"Tile sample noise tool"};
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
manage multiple RandomEngines in thread-safe way.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
Helper class for TileCal online (hardware) identifiers.
bool m_tileThresh
If true => apply threshold on the conversion to raw channels.
ServiceHandle< IAthRNGSvc > m_atRndmGenSvc
Random number generator engine to use.
double m_ampMaxHi
Value of the maximum amplitude to be stored as a high gain channel.
double m_threshHi
Value of the mimimal amplitude required to do the conversion to raw channel in high gain (not used fo...
SG::ReadCondHandleKey< TileSamplingFraction > m_samplingFractionKey
Name of TileSamplingFraction in condition store.
SG::WriteHandleKey< TileRawChannelContainer > m_rawChannelContainerKey
TileFragHash::TYPE m_rChType
Type of TileRawChannels (Digitizar, OF1, OF2, Fit, etc.)(see TileFragHash.h).
std::vector< HWIdentifier * > m_all_ids
Vector to store all the drawer ids.
virtual StatusCode execute(const EventContext &ctx) override
execute method
SG::ReadHandleKey< TileHitContainer > m_hitContainerKey
Gaudi::Property< std::string > m_infoName
name of the TileInfo object
SG::ReadCondHandleKey< TileEMScale > m_emScaleKey
Name of TileEMScale in condition store.
const TileCablingService * m_cabling
Pointer to the TileCablingService instance.
virtual ~TileHitToRawChannel()
Destructor.
ServiceHandle< TileCablingSvc > m_cablingSvc
Name of Tile cabling service.
virtual StatusCode finalize() override
finalize method
TileHitToRawChannel(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
const TileInfo * m_tileInfo
Pointer to TileInfo.
Gaudi::Property< std::string > m_randomStreamName
Random Stream Name.
Gaudi::Property< bool > m_calibrateEnergy
if true, amplitude is converted to pCb
const TileID * m_tileID
Pointer to TileID helper.
virtual StatusCode initialize() override
initialize method
const TileTBID * m_tileTBID
Pointer to TileID helper.
ToolHandle< TileCondToolNoiseSample > m_tileToolNoiseSample
bool m_tileNoise
If true => generate noise for the TileRawChannel creation.
const TileHWID * m_tileHWID
Pointer to TileHWID helper.
TileRawChannelUnit::UNIT m_rChUnit
Units used for the TileRawChannels (ADC, pCb, etc.)(see TileInfo.h).
Gaudi::Property< double > m_deltaT
if true, keep only hits in deltaT range
Helper class for TileCal offline identifiers.
Helper class for TileCal offline identifiers of ancillary testbeam detectors and MBTS.