#include <TBBeamQualityEMFractionTool.h>
◆ StoreGateSvc_t
◆ TBBeamQualityEMFractionTool()
| TBBeamQualityEMFractionTool::TBBeamQualityEMFractionTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
Definition at line 22 of file TBBeamQualityEMFractionTool.cxx.
30{
31 declareInterface<TBBeamQualityTool>(this);
37}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
◆ ~TBBeamQualityEMFractionTool()
| TBBeamQualityEMFractionTool::~TBBeamQualityEMFractionTool |
( |
| ) |
|
|
virtual |
◆ accept()
| StatusCode TBBeamQualityEMFractionTool::accept |
( |
const std::vector< std::string > & | particles | ) |
|
|
overridevirtual |
Implements TBBeamQualityTool.
Definition at line 142 of file TBBeamQualityEMFractionTool.cxx.
143{
144
146
148 << "TBBeamQualityEMFractionTool: Started Accept"
150
152
156
157
158
159
160
161
162
163 float numenergy=0;
164 float denenergy=0;
166
167
168 const CaloCellContainer* cellContainer = nullptr;
169
171 if (
sc.isFailure()) {
172 log << MSG::ERROR <<
"couldn't get the calo cells from storegate" <<
endmsg;
173 log << MSG::ERROR <<
"here is what is in storegate: " <<
evtStore()->dump() <<
endmsg;
174 return StatusCode::FAILURE;
175 }
176
177 for (const CaloCell* cell_ptr : *cellContainer) {
178
179
180 const CaloDetDescrElement* caloDDE_ptr = cell_ptr->caloDDE();
181
182
183
184
185
187
188
189
190
191 if (sampling >= 0 && sampling <
m_Mlayer.size())
192 m_Mlayer[sampling]+=cell_ptr->energy();
193
194 }
195
196
197
201 }
202
206 }
207
208 if (denenergy!=0) {
210
212 return StatusCode::SUCCESS;
213 }
214 else {
215 return StatusCode::FAILURE;
216 }
217 }
218 else {
219 return StatusCode::FAILURE;
220 }
221}
ServiceHandle< StoreGateSvc > & evtStore()
CaloSampling::CaloSample CaloSample
CaloCell_ID::CaloSample getSampling() const
cell sampling
::StatusCode StatusCode
StatusCode definition for legacy code.
msgSvc
Provide convenience handles for various services.
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ evtStore()
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ initialize()
| StatusCode TBBeamQualityTool::initialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ initializeTool()
| StatusCode TBBeamQualityEMFractionTool::initializeTool |
( |
| ) |
|
|
overridevirtual |
Reimplemented from TBBeamQualityTool.
Definition at line 42 of file TBBeamQualityEMFractionTool.cxx.
43{
46 << "initialize"
48
50
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85 const CaloCell_ID* idHelper = nullptr;
87
88
91 log << MSG::ERROR <<
"unable to obtain hec id " <<
endmsg;
92 return StatusCode::FAILURE;
93 }
96 log << MSG::ERROR <<
"unable to obtain emec id " <<
endmsg;
97 return StatusCode::FAILURE;
98 }
99
102 log << MSG::ERROR <<
"unable to obtain fcal id " <<
endmsg;
103 return StatusCode::FAILURE;
104 }
105
106
107
108 log<<MSG::DEBUG<<
"Got to before p_toolSvc"<<
endmsg;
109
114 }
119 }
123 }
127 }
132 }
137 }
138
139 return StatusCode::SUCCESS;
140}
#define ATH_CHECK
Evaluate an expression and check for errors.
const ServiceHandle< StoreGateSvc > & detStore() const
const LArFCAL_ID * fcal_idHelper() const
access to FCAL idHelper
const LArEM_ID * em_idHelper() const
access to EM idHelper
const LArHEC_ID * hec_idHelper() const
access to HEC idHelper
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ interfaceID()
| const InterfaceID & TBBeamQualityTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ reject()
| StatusCode TBBeamQualityTool::reject |
( |
const std::vector< std::string > & | particles | ) |
|
|
virtualinherited |
Definition at line 41 of file TBBeamQualityTool.cxx.
42{
43 return this->
accept(particles).isFailure()
44 ? StatusCode::SUCCESS
45 : StatusCode::FAILURE;
46}
◆ renounce()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ m_detStore
◆ m_em_frac
| float TBBeamQualityEMFractionTool::m_em_frac |
|
protected |
◆ m_em_fraccut
| float TBBeamQualityEMFractionTool::m_em_fraccut |
|
protected |
◆ m_em_fracdendet
| std::string TBBeamQualityEMFractionTool::m_em_fracdendet |
|
protected |
◆ m_em_fracdensamp
| std::vector<double> TBBeamQualityEMFractionTool::m_em_fracdensamp |
|
protected |
◆ m_em_fracnumdet
| std::string TBBeamQualityEMFractionTool::m_em_fracnumdet |
|
protected |
◆ m_em_fracnumsamp
| std::vector<double> TBBeamQualityEMFractionTool::m_em_fracnumsamp |
|
protected |
◆ m_emecID_help
| const LArEM_ID* TBBeamQualityEMFractionTool::m_emecID_help |
|
protected |
◆ m_evtStore
◆ m_fcalID_help
| const LArFCAL_ID* TBBeamQualityEMFractionTool::m_fcalID_help |
|
protected |
◆ m_hecID_help
| const LArHEC_ID* TBBeamQualityEMFractionTool::m_hecID_help |
|
protected |
◆ m_Mlayer
| std::vector<float> TBBeamQualityEMFractionTool::m_Mlayer |
|
protected |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: