ATLAS Offline Software
Loading...
Searching...
No Matches
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
17class Identifier;
18class LArEM_ID;
19class LArHEC_ID;
20class LArFCAL_ID;
21class TileID;
22class LArOnlineID;
23
24#include "LArSimEvent/LArHit.h"
25
26
27namespace D3PD {
28
31
33 : public D3PD::SGCollectionGetterTool<LArHitContainer>
34{
35public:
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{
53public:
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
82private:
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
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
Type-safe wrapper for block filler tools.
Definition of CaloDetDescrManager.
Collection getter tool retrieving a container from StoreGate.
Type-safe wrapper for block filler tools.
LArHitContainerGetterTool(const std::string &type, const std::string &name, const IInterface *parent)
const LArHEC_ID * m_hecid
const LArEM_ID * m_emid
virtual StatusCode fill(const LArHit &p) override
Fill one block — type-safe version.
LArHitFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
unsigned int CaloCell_GetDetectorInfo(Identifier &cellID)
const LArFCAL_ID * m_fcalid
const LArOnlineID * m_onlineid
virtual StatusCode initialize() override
Standard Gaudi initialize method.
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
float * m_eta
Variable: time, quality and id.
virtual StatusCode book() override
Book variables for this block.
Collection getter tool retrieving a container from StoreGate.
SGCollectionGetterTool(const std::string &type, const std::string &name, const IInterface *parent)
Helper class for LArEM offline identifiers.
Definition LArEM_ID.h:111
Helper class for LArFCAL offline identifiers.
Definition LArFCAL_ID.h:49
Helper class for LArHEC offline identifiers.
Definition LArHEC_ID.h:76
Hit collection.
Class to store hit energy and time in LAr cell from G4 simulation.
Definition LArHit.h:25
Helper class for TileCal offline identifiers.
Definition TileID.h:67
Block filler tool for noisy FEB information.