ATLAS Offline Software
LArSCHitFillerTool.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 
14 #ifndef CALOSYSD3PDMAKER_LARSCHITFILLERTOOL_H
15 #define CALOSYSD3PDMAKER_LARSCHITFILLERTOOL_H
16 
17 // Gaudi/Athena include(s):
18 #include "GaudiKernel/ToolHandle.h"
26 #include <vector>
27 #include <list>
28 #include <map>
29 
30 // Forward declaration(s):
31 class LArEM_ID;
32 class LArFCAL_ID;
33 class LArHEC_ID;
34 class TileID;
35 class LArOnlineID;
36 class Identifier;
37 
39 
40 #include "LArSimEvent/LArHit.h"
41 
42 namespace D3PD {
43 
44 
49  : public BlockFillerTool<LArHitContainer>
50 {
51 public:
58  LArSCHitFillerTool (const std::string& type,
59  const std::string& name,
60  const IInterface* parent);
61 
62 
64  virtual StatusCode initialize();
65  virtual StatusCode book();
66  // virtual StatusCode handle(const Incident&);
67  virtual StatusCode fill (const LArHitContainer& p);
68 
69 private:
70 
71  const LArEM_ID *m_emid;
74  const TileID *m_tileid;
77 
79  int *m_nSC;
80  std::vector<double> *m_E;
81  std::vector<double> *m_eta;
82  std::vector<double> *m_phi;
83  std::vector<double> *m_Eoff;
84  std::vector<double> *m_Et;
85  std::vector<double> *m_fsampl;
86 
87  std::vector<int> *m_calo;
88  std::vector<int> *m_region;
89  std::vector<int> *m_sampling;
90  std::vector<int> *m_ieta;
91  std::vector<int> *m_jphi;
92  std::vector<unsigned int> *m_offlId;
93 
94  std::vector<float> m_etaCut;
95  std::vector<float> m_phiCut;
96  std::vector< unsigned int > m_caloNums;
97  std::vector< unsigned int > m_caloLayers;
98 
103 
104 
106  ToolHandle<ICaloSuperCellIDTool> m_scidtool;
107 
109  this,"CaloSuperCellDetDescrManager","CaloSuperCellDetDescrManager","SG key of the resulting CaloSuperCellDetDescrManager" };
110 
113 
114 };
115 
116 
117 } // namespace D3PD
118 
119 
120 #endif // not CALOSYSD3PDMAKER_LARSCHITFILLERTOOL_H
D3PD::LArSCHitFillerTool::book
virtual StatusCode book()
Book variables for this block.
Definition: LArSCHitFillerTool.cxx:152
D3PD::LArSCHitFillerTool::fill
virtual StatusCode fill(const LArHitContainer &p)
Fill one block — type-safe version.
Definition: LArSCHitFillerTool.cxx:181
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
D3PD::LArSCHitFillerTool::m_jphi
std::vector< int > * m_jphi
Definition: LArSCHitFillerTool.h:91
D3PD::LArSCHitFillerTool::m_scidtool
ToolHandle< ICaloSuperCellIDTool > m_scidtool
Property: Offline / supercell mapping tool.
Definition: LArSCHitFillerTool.h:106
D3PD::LArSCHitFillerTool::m_eta
std::vector< double > * m_eta
Definition: LArSCHitFillerTool.h:81
D3PD::LArSCHitFillerTool::m_E
std::vector< double > * m_E
Definition: LArSCHitFillerTool.h:80
D3PD::LArSCHitFillerTool::m_onlineHelper
const LArOnlineID * m_onlineHelper
Definition: LArSCHitFillerTool.h:75
LArHEC_ID
Helper class for LArHEC offline identifiers.
Definition: LArHEC_ID.h:85
LArHitContainer
Hit collection.
Definition: LArHitContainer.h:26
D3PD::LArSCHitFillerTool::m_dd_fSampl
const ILArfSampl * m_dd_fSampl
Definition: LArSCHitFillerTool.h:76
D3PD::LArSCHitFillerTool::m_region
std::vector< int > * m_region
Definition: LArSCHitFillerTool.h:88
D3PD::LArSCHitFillerTool::initialize
virtual StatusCode initialize()
Book variables for this block.
Definition: LArSCHitFillerTool.cxx:61
D3PD::LArSCHitFillerTool::m_nSC
int * m_nSC
parameters
Definition: LArSCHitFillerTool.h:79
D3PD::LArSCHitFillerTool::m_fsampl
std::vector< double > * m_fsampl
Definition: LArSCHitFillerTool.h:85
ICaloSuperCellIDTool.h
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
D3PD::LArSCHitFillerTool::m_caloSelection
bool m_caloSelection
Definition: LArSCHitFillerTool.h:102
BlockFillerTool.h
Type-safe wrapper for block filler tools.
D3PD::LArSCHitFillerTool::m_emid
const LArEM_ID * m_emid
Definition: LArSCHitFillerTool.h:71
D3PD::LArSCHitFillerTool::m_phiCut
std::vector< float > m_phiCut
Definition: LArSCHitFillerTool.h:95
D3PD
Block filler tool for noisy FEB information.
Definition: InnerDetector/InDetMonitoring/InDetGlobalMonitoring/macros/EnhancedPrimaryVertexMonitoring/TrigD3PD/ChainGroup.h:21
CaloCell_SuperCell_ID
Helper class for offline supercell identifiers.
Definition: CaloCell_SuperCell_ID.h:48
D3PD::LArSCHitFillerTool::m_Et
std::vector< double > * m_Et
Definition: LArSCHitFillerTool.h:84
D3PD::LArSCHitFillerTool::m_calo
std::vector< int > * m_calo
Definition: LArSCHitFillerTool.h:87
TileID
Helper class for TileCal offline identifiers.
Definition: TileID.h:68
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
D3PD::LArSCHitFillerTool::m_ieta
std::vector< int > * m_ieta
Definition: LArSCHitFillerTool.h:90
D3PD::BlockFillerTool
Type-safe wrapper for block filler tools.
Definition: BlockFillerTool.h:68
D3PD::LArSCHitFillerTool::m_caloLayers
std::vector< unsigned int > m_caloLayers
Definition: LArSCHitFillerTool.h:97
D3PD::LArSCHitFillerTool::m_caloPhiSelection
bool m_caloPhiSelection
Definition: LArSCHitFillerTool.h:100
D3PD::LArSCHitFillerTool::m_caloNums
std::vector< unsigned int > m_caloNums
Definition: LArSCHitFillerTool.h:96
ReadCondHandleKey.h
SGCollectionGetterTool.h
Collection getter tool retrieving a container from StoreGate.
D3PD::LArSCHitFillerTool::LArSCHitFillerTool
LArSCHitFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: LArSCHitFillerTool.cxx:36
D3PD::LArSCHitFillerTool::m_sc_idHelper
const CaloCell_SuperCell_ID * m_sc_idHelper
idHlper
Definition: LArSCHitFillerTool.h:112
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
LArOnlineID
Definition: LArOnlineID.h:20
D3PD::LArSCHitFillerTool::m_caloEtaSelection
bool m_caloEtaSelection
Definition: LArSCHitFillerTool.h:99
D3PD::LArSCHitFillerTool::m_fcalid
const LArFCAL_ID * m_fcalid
Definition: LArSCHitFillerTool.h:72
D3PD::LArSCHitFillerTool::m_caloSuperCellMgrKey
SG::ReadCondHandleKey< CaloSuperCellDetDescrManager > m_caloSuperCellMgrKey
Definition: LArSCHitFillerTool.h:108
D3PD::LArSCHitFillerTool::m_etaCut
std::vector< float > m_etaCut
Definition: LArSCHitFillerTool.h:94
SG::ReadCondHandleKey< CaloSuperCellDetDescrManager >
LArHit.h
D3PD::LArSCHitFillerTool::m_phi
std::vector< double > * m_phi
Definition: LArSCHitFillerTool.h:82
LArHitContainer.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
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::LArSCHitFillerTool::m_Eoff
std::vector< double > * m_Eoff
Definition: LArSCHitFillerTool.h:83
D3PD::LArSCHitFillerTool::m_hecid
const LArHEC_ID * m_hecid
Definition: LArSCHitFillerTool.h:73
D3PD::LArSCHitFillerTool
Block filler tool for EM samplings from a CaloCluster.
Definition: LArSCHitFillerTool.h:50
ILArfSampl.h
D3PD::LArSCHitFillerTool::m_tileid
const TileID * m_tileid
Definition: LArSCHitFillerTool.h:74
D3PD::LArSCHitFillerTool::m_caloLayerSelection
bool m_caloLayerSelection
Definition: LArSCHitFillerTool.h:101
D3PD::LArSCHitFillerTool::m_sampling
std::vector< int > * m_sampling
Definition: LArSCHitFillerTool.h:89
D3PD::LArSCHitFillerTool::m_offlId
std::vector< unsigned int > * m_offlId
Definition: LArSCHitFillerTool.h:92
ILArfSampl
Definition: ILArfSampl.h:14