ATLAS Offline Software
LArHitFillerTool.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 
8 #ifndef CALOSYSD3PDMAKER_LARHITFILLERTOOL_H
9 #define CALOSYSD3PDMAKER_LARHITFILLERTOOL_H
10 
16 
17 class Identifier;
18 class LArEM_ID;
19 class LArHEC_ID;
20 class LArFCAL_ID;
21 class TileID;
22 class LArOnlineID;
23 
24 #include "LArSimEvent/LArHit.h"
25 
26 
27 namespace D3PD {
28 
33  : public D3PD::SGCollectionGetterTool<LArHitContainer>
34 {
35 public:
36  LArHitContainerGetterTool (const std::string& type,
37  const std::string& name,
38  const IInterface* parent)
40  (type, name, parent) {}
41 };
42 
43 
44 
45 
46 
51  : public BlockFillerTool<LArHit>
52 {
53 public:
60  LArHitFillerTool (const std::string& type,
61  const std::string& name,
62  const IInterface* parent);
63 
64 
66  virtual StatusCode initialize() override;
67 
68 
70  virtual StatusCode book() override;
71 
80  virtual StatusCode fill (const LArHit& p) override;
81 
82 private:
83 
85  float* m_eta;
86  float* m_phi;
87  float* m_e;
88  float* m_time;
89  unsigned int* m_id ;
90 
91  // idHelper
92  const LArEM_ID* m_emid;
95  const TileID* m_tileid;
97  unsigned int CaloCell_GetDetectorInfo(Identifier &cellID);
99  , "CaloDetDescrManager"
100  , "CaloDetDescrManager"
101  , "SG Key for CaloDetDescrManager in the Condition Store" };
102 
103 };
104 
105 
106 } // namespace D3PD
107 
108 
109 #endif // not CALOSYSD3PDMAKER_LARHITFILLERTOOL_H
D3PD::LArHitFillerTool::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: LArHitFillerTool.h:98
D3PD::LArHitFillerTool::m_emid
const LArEM_ID * m_emid
Definition: LArHitFillerTool.h:92
D3PD::LArHitFillerTool::m_hecid
const LArHEC_ID * m_hecid
Definition: LArHitFillerTool.h:94
D3PD::LArHitFillerTool::m_id
unsigned int * m_id
Definition: LArHitFillerTool.h:89
LArHEC_ID
Helper class for LArHEC offline identifiers.
Definition: LArHEC_ID.h:85
LArHitContainer
Hit collection.
Definition: LArHitContainer.h:26
D3PD::LArHitFillerTool::initialize
virtual StatusCode initialize() override
Standard Gaudi initialize method.
Definition: LArHitFillerTool.cxx:56
D3PD::SGCollectionGetterTool
Collection getter tool retrieving a container from StoreGate.
Definition: SGCollectionGetterTool.h:41
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
D3PD::LArHitFillerTool::CaloCell_GetDetectorInfo
unsigned int CaloCell_GetDetectorInfo(Identifier &cellID)
Definition: LArHitFillerTool.cxx:115
BlockFillerTool.h
Type-safe wrapper for block filler tools.
D3PD::LArHitFillerTool::m_time
float * m_time
Definition: LArHitFillerTool.h:88
D3PD::LArHitFillerTool::book
virtual StatusCode book() override
Book variables for this block.
Definition: LArHitFillerTool.cxx:75
D3PD
Block filler tool for noisy FEB information.
Definition: CaloCellDetailsFillerTool.cxx:29
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
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
D3PD::LArHitFillerTool
Block filler tool for EM samplings from a CaloCluster.
Definition: LArHitFillerTool.h:52
test_pyathena.parent
parent
Definition: test_pyathena.py:15
D3PD::BlockFillerTool
Type-safe wrapper for block filler tools.
Definition: BlockFillerTool.h:68
D3PD::LArHitFillerTool::m_phi
float * m_phi
Definition: LArHitFillerTool.h:86
ReadCondHandleKey.h
SGCollectionGetterTool.h
Collection getter tool retrieving a container from StoreGate.
D3PD::LArHitFillerTool::m_e
float * m_e
Definition: LArHitFillerTool.h:87
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
D3PD::LArHitFillerTool::fill
virtual StatusCode fill(const LArHit &p) override
Fill one block — type-safe version.
Definition: LArHitFillerTool.cxx:94
LArOnlineID
Definition: LArOnlineID.h:20
D3PD::LArHitContainerGetterTool::LArHitContainerGetterTool
LArHitContainerGetterTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: LArHitFillerTool.h:36
LArHit
Class to store hit energy and time in LAr cell from G4 simulation.
Definition: LArHit.h:25
D3PD::LArHitContainerGetterTool
define a special getter
Definition: LArHitFillerTool.h:34
SG::ReadCondHandleKey< CaloDetDescrManager >
LArHit.h
D3PD::LArHitFillerTool::m_eta
float * m_eta
Variable: time, quality and id.
Definition: LArHitFillerTool.h:85
LArHitContainer.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
D3PD::LArHitFillerTool::m_fcalid
const LArFCAL_ID * m_fcalid
Definition: LArHitFillerTool.h:93
D3PD::LArHitFillerTool::m_onlineid
const LArOnlineID * m_onlineid
Definition: LArHitFillerTool.h:96
LArEM_ID
Helper class for LArEM offline identifiers.
Definition: LArEM_ID.h:118
LArFCAL_ID
Helper class for LArFCAL offline identifiers.
Definition: LArFCAL_ID.h:60
D3PD::LArHitFillerTool::m_tileid
const TileID * m_tileid
Definition: LArHitFillerTool.h:95
D3PD::LArHitFillerTool::LArHitFillerTool
LArHitFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: LArHitFillerTool.cxx:38
Identifier
Definition: IdentifierFieldParser.cxx:14