ATLAS Offline Software
LArDigitFillerTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CALOSYSD3PDMAKER_LARDIGITFILLERTOOL_H
6 #define CALOSYSD3PDMAKER_LARDIGITFILLERTOOL_H
7 
18 
19 class LArEM_ID;
20 class LArFCAL_ID;
21 class LArHEC_ID;
22 class LArOnlineID;
23 
24 
25 namespace D3PD {
26 
27 
32  : public BlockFillerTool<LArDigit>
33 {
34 public:
41  LArDigitFillerTool (const std::string& type,
42  const std::string& name,
43  const IInterface* parent);
44 
45 
47  virtual StatusCode book();
48 
49 
58  virtual StatusCode fill (const LArDigit& p);
59 
60 private:
61 
62  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"};
63 
64  // flags
65  bool m_savesca;
67  //int m_maxChannels;
68  std::string m_CaloType; // EM, HEC, FCAL
69  bool m_storeId;
70 
71  bool m_em;
72  bool m_hec;
73  bool m_fcal;
74 
75  //unsigned short m_dump_cut;
76  std::string m_dump_gain;
78  bool m_dumpIter;
79  //bool m_dumpDisc;
80 
81 
82  // id helper
84  const LArEM_ID* m_emId;
87 
88  // variables in ntuple
90  //long m_evt;
91 
92  int* m_layer;
93  int* m_eta;
94  int* m_phi;
95  int* m_gain;
96  int* m_calo;
98  int* m_pos_neg;
99  int* m_FT;
100  int* m_slot;
101  int* m_channel;
102  // std::vector< short >* m_samples;
103  // std::vector< unsigned short >* m_sca;
104 
105  std::vector< int >* m_samples;
106  std::vector< unsigned int >* m_sca;
107 
108  unsigned int* m_offId;
109  //For OF Iter results:
110  bool* m_Itervalid; //actually bool
111  bool* m_Iterconverged; //actually bool
112  short* m_IterNIter;
113  float* m_IterAmpl;
114  float* m_IterTau;
116  float* m_IterDelay;
117  float* m_IterQual;
118  short* m_IterIdx;
119 
120 };
121 
122 }
123 
124 #endif
D3PD::LArDigitFillerTool::fill
virtual StatusCode fill(const LArDigit &p)
Fill one block — type-safe version.
Definition: LArDigitFillerTool.cxx:192
D3PD::LArDigitFillerTool::m_hecId
const LArHEC_ID * m_hecId
Definition: LArDigitFillerTool.h:85
D3PD::LArDigitFillerTool::m_IterIdx
short * m_IterIdx
Definition: LArDigitFillerTool.h:118
D3PD::LArDigitFillerTool::m_onlineHelper
const LArOnlineID * m_onlineHelper
Definition: LArDigitFillerTool.h:83
D3PD::LArDigitFillerTool::book
virtual StatusCode book()
Book variables for this block.
Definition: LArDigitFillerTool.cxx:114
D3PD::LArDigitFillerTool::m_Itervalid
bool * m_Itervalid
Definition: LArDigitFillerTool.h:110
D3PD::LArDigitFillerTool::m_sca
std::vector< unsigned int > * m_sca
Definition: LArDigitFillerTool.h:106
D3PD::LArDigitFillerTool::m_IterQual
float * m_IterQual
Definition: LArDigitFillerTool.h:117
D3PD::LArDigitFillerTool::m_emId
const LArEM_ID * m_emId
Definition: LArDigitFillerTool.h:84
D3PD::LArDigitFillerTool::m_storeId
bool m_storeId
Definition: LArDigitFillerTool.h:69
LArHEC_ID
Helper class for LArHEC offline identifiers.
Definition: LArHEC_ID.h:85
D3PD::LArDigitFillerTool::m_IterDelay
float * m_IterDelay
Definition: LArDigitFillerTool.h:116
CaloGain::LARNGAIN
@ LARNGAIN
Definition: CaloGain.h:19
D3PD::LArDigitFillerTool::m_phi
int * m_phi
Definition: LArDigitFillerTool.h:94
D3PD::LArDigitFillerTool::m_barrel_ec
int * m_barrel_ec
Definition: LArDigitFillerTool.h:97
D3PD::LArDigitFillerTool::m_IterPeakSample
short * m_IterPeakSample
Definition: LArDigitFillerTool.h:115
BlockFillerTool.h
Type-safe wrapper for block filler tools.
D3PD::LArDigitFillerTool::m_IterNIter
short * m_IterNIter
Definition: LArDigitFillerTool.h:112
D3PD::LArDigitFillerTool::m_eta
int * m_eta
Definition: LArDigitFillerTool.h:93
D3PD::LArDigitFillerTool::m_hec
bool m_hec
Definition: LArDigitFillerTool.h:72
D3PD::LArDigitFillerTool::m_fcalId
const LArFCAL_ID * m_fcalId
Definition: LArDigitFillerTool.h:86
D3PD
Block filler tool for noisy FEB information.
Definition: CaloCellDetailsFillerTool.cxx:29
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
LArOnOffIdMapping.h
D3PD::LArDigitFillerTool::m_FT
int * m_FT
Definition: LArDigitFillerTool.h:99
D3PD::LArDigitFillerTool::m_em
bool m_em
Definition: LArDigitFillerTool.h:71
D3PD::LArDigitFillerTool
Block filler tool for EM samplings from a CaloCluster.
Definition: LArDigitFillerTool.h:33
LArDigit
Liquid Argon digit base class.
Definition: LArDigit.h:25
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
D3PD::LArDigitFillerTool::m_dumpIter
bool m_dumpIter
Definition: LArDigitFillerTool.h:78
D3PD::LArDigitFillerTool::m_samples
std::vector< int > * m_samples
Definition: LArDigitFillerTool.h:105
D3PD::LArDigitFillerTool::m_calo
int * m_calo
Definition: LArDigitFillerTool.h:96
D3PD::LArDigitFillerTool::m_slot
int * m_slot
Definition: LArDigitFillerTool.h:100
D3PD::LArDigitFillerTool::m_pos_neg
int * m_pos_neg
Definition: LArDigitFillerTool.h:98
D3PD::LArDigitFillerTool::m_savesca
bool m_savesca
Definition: LArDigitFillerTool.h:65
test_pyathena.parent
parent
Definition: test_pyathena.py:15
D3PD::BlockFillerTool
Type-safe wrapper for block filler tools.
Definition: BlockFillerTool.h:68
D3PD::LArDigitFillerTool::m_IterTau
float * m_IterTau
Definition: LArDigitFillerTool.h:114
D3PD::LArDigitFillerTool::m_CaloType
std::string m_CaloType
Definition: LArDigitFillerTool.h:68
D3PD::LArDigitFillerTool::m_fcal
bool m_fcal
Definition: LArDigitFillerTool.h:73
D3PD::LArDigitFillerTool::m_cellIndex
long m_cellIndex
Definition: LArDigitFillerTool.h:89
D3PD::LArDigitFillerTool::m_offId
unsigned int * m_offId
Definition: LArDigitFillerTool.h:108
ReadCondHandleKey.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
D3PD::LArDigitFillerTool::m_channel
int * m_channel
Definition: LArDigitFillerTool.h:101
LArOnlineID
Definition: LArOnlineID.h:20
D3PD::LArDigitFillerTool::m_gain
int * m_gain
Definition: LArDigitFillerTool.h:95
D3PD::LArDigitFillerTool::m_gains
bool m_gains[CaloGain::LARNGAIN]
Definition: LArDigitFillerTool.h:77
LArDigitContainer.h
SG::ReadCondHandleKey< LArOnOffIdMapping >
D3PD::LArDigitFillerTool::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArDigitFillerTool.h:62
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
LArEM_ID
Helper class for LArEM offline identifiers.
Definition: LArEM_ID.h:118
D3PD::LArDigitFillerTool::m_layer
int * m_layer
Definition: LArDigitFillerTool.h:92
D3PD::LArDigitFillerTool::m_Iterconverged
bool * m_Iterconverged
Definition: LArDigitFillerTool.h:111
LArFCAL_ID
Helper class for LArFCAL offline identifiers.
Definition: LArFCAL_ID.h:60
D3PD::LArDigitFillerTool::m_IterAmpl
float * m_IterAmpl
Definition: LArDigitFillerTool.h:113
D3PD::LArDigitFillerTool::m_dump_gain
std::string m_dump_gain
Definition: LArDigitFillerTool.h:76
D3PD::LArDigitFillerTool::m_savedigit
bool m_savedigit
Definition: LArDigitFillerTool.h:66
D3PD::LArDigitFillerTool::LArDigitFillerTool
LArDigitFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: LArDigitFillerTool.cxx:50