ATLAS Offline Software
FastHitConvertTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef FASTCALOSIMHIT_FASTHITCONVERTTOOL_H
6 #define FASTCALOSIMHIT_FASTHITCONVERTTOOL_H
7 
9 
18 
19 #include "GaudiKernel/ServiceHandle.h"
20 
21 class LArHitFloat;
23 class LArHit;
24 class LArHitContainer;
25 class TileInfo;
26 class LArEM_ID;
27 class LArFCAL_ID;
28 class LArHEC_ID;
29 class TileID;
30 class TileHWID;
31 
43 class FastHitConvertTool : public extends<AthAlgTool, ICaloCellMakerTool>
44 {
45 public:
46  FastHitConvertTool(const std::string& type,const std::string& name,const IInterface* parent);
47 
49  virtual ~FastHitConvertTool(){};
50 
52  virtual StatusCode initialize() override final;
54  virtual StatusCode process (CaloCellContainer* theCellContainer,
55  const EventContext& ctx) const override;
56 
57 private:
58 
59  //for writing out of Hit, naming as G4 for default
60  SG::WriteHandleKey<LArHitContainer> m_embHitContainerKey{this,"embHitContainername","LArHitEMB","Name of output FastSim LAr EM Barrel Hit Container"};
61  SG::WriteHandleKey<LArHitContainer> m_emecHitContainerKey{this,"emecHitContainername","LArHitEMEC","Name of output FastSim LAr EM Endcap Hit Container"};
62  SG::WriteHandleKey<LArHitContainer> m_fcalHitContainerKey{this,"fcalHitContainername","LArHitFCAL","Name of output FastSim LAr FCAL Hit Container"};
63  SG::WriteHandleKey<LArHitContainer> m_hecHitContainerKey{this,"hecHitContainername","LArHitHEC","Name of output FastSim LAr HEC Hit Container"};
64  SG::WriteHandleKey<TileHitVector> m_tileHitVectorKey{this,"tileHitContainername","TileHitVec","Name of output FastSim Tile Hit Container"};
65 
66  SG::ReadCondHandleKey<ILArfSampl> m_fSamplKey{this,"fSamplKey","LArfSamplSym","SG Key of LArfSampl object"};
67 
72  "TileSamplingFraction", "TileSamplingFraction", "Input Tile sampling fraction"};
73 
78  "TileCablingSvc", "TileCablingSvc", "Tile cabling service"};
79 
80  const LArEM_ID *m_larEmID{nullptr};
81  const LArFCAL_ID *m_larFcalID{nullptr};
82  const LArHEC_ID *m_larHecID{nullptr};
83  const TileID* m_tileID{nullptr};
84  const TileHWID* m_tileHWID{nullptr};
86 };
87 #endif //FASTCALOSIMHIT_FASTHITCONVERTTOOL_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TileCablingSvc.h
FastHitConvertTool::~FastHitConvertTool
virtual ~FastHitConvertTool()
default destructor
Definition: FastHitConvertTool.h:49
FastHitConvertTool
Definition: FastHitConvertTool.h:44
FastHitConvertTool::process
virtual StatusCode process(CaloCellContainer *theCellContainer, const EventContext &ctx) const override
standard Athena-Algorithm method
Definition: FastHitConvertTool.cxx:81
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
FastHitConvertTool::m_larEmID
const LArEM_ID * m_larEmID
Definition: FastHitConvertTool.h:80
LArHitFloatContainer
Container for LArHitFloat.
Definition: LArHitFloatContainer.h:18
FastHitConvertTool::initialize
virtual StatusCode initialize() override final
standard Athena-Algorithm method
Definition: FastHitConvertTool.cxx:44
LArHitFloat
Class to store hit energy and time in LAr cell from G4 simulation.
Definition: LArHitFloat.h:18
FastHitConvertTool::m_embHitContainerKey
SG::WriteHandleKey< LArHitContainer > m_embHitContainerKey
Definition: FastHitConvertTool.h:60
FastHitConvertTool::m_fcalHitContainerKey
SG::WriteHandleKey< LArHitContainer > m_fcalHitContainerKey
Definition: FastHitConvertTool.h:62
LArHEC_ID
Helper class for LArHEC offline identifiers.
Definition: LArHEC_ID.h:85
LArHitContainer
Hit collection.
Definition: LArHitContainer.h:26
FastHitConvertTool::m_hecHitContainerKey
SG::WriteHandleKey< LArHitContainer > m_hecHitContainerKey
Definition: FastHitConvertTool.h:63
TileInfo
Definition: TileInfo.h:49
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
FastHitConvertTool::m_tileSamplingFractionKey
SG::ReadCondHandleKey< TileSamplingFraction > m_tileSamplingFractionKey
Name of TileSamplingFraction in condition store.
Definition: FastHitConvertTool.h:71
FastHitConvertTool::FastHitConvertTool
FastHitConvertTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: FastHitConvertTool.cxx:28
FastHitConvertTool::m_tileHitVectorKey
SG::WriteHandleKey< TileHitVector > m_tileHitVectorKey
Definition: FastHitConvertTool.h:64
TileHWID
Helper class for TileCal online (hardware) identifiers.
Definition: TileHWID.h:49
SG::WriteHandleKey< LArHitContainer >
TileSamplingFraction.h
TileID
Helper class for TileCal offline identifiers.
Definition: TileID.h:68
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
FastHitConvertTool::m_tileHWID
const TileHWID * m_tileHWID
Definition: FastHitConvertTool.h:84
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
TileCablingService
Definition: TileCablingService.h:23
FastHitConvertTool::m_tileCabling
const TileCablingService * m_tileCabling
Definition: FastHitConvertTool.h:85
FastHitConvertTool::m_larFcalID
const LArFCAL_ID * m_larFcalID
Definition: FastHitConvertTool.h:81
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
TileHitVector.h
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
LArHit
Class to store hit energy and time in LAr cell from G4 simulation.
Definition: LArHit.h:25
CaloCellContainer
Container class for CaloCell.
Definition: CaloCellContainer.h:55
ICaloCellMakerTool.h
SG::ReadCondHandleKey< ILArfSampl >
FastHitConvertTool::m_tileID
const TileID * m_tileID
Definition: FastHitConvertTool.h:83
FastHitConvertTool::m_emecHitContainerKey
SG::WriteHandleKey< LArHitContainer > m_emecHitContainerKey
Definition: FastHitConvertTool.h:61
LArHitContainer.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
FastHitConvertTool::m_tileCablingSvc
ServiceHandle< TileCablingSvc > m_tileCablingSvc
Name of Tile cabling service.
Definition: FastHitConvertTool.h:77
LArEM_ID
Helper class for LArEM offline identifiers.
Definition: LArEM_ID.h:118
FastHitConvertTool::m_larHecID
const LArHEC_ID * m_larHecID
Definition: FastHitConvertTool.h:82
LArFCAL_ID
Helper class for LArFCAL offline identifiers.
Definition: LArFCAL_ID.h:60
FastHitConvertTool::m_fSamplKey
SG::ReadCondHandleKey< ILArfSampl > m_fSamplKey
Definition: FastHitConvertTool.h:66
ILArfSampl.h
ServiceHandle< TileCablingSvc >