#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 113 of file TBBeamQualityEMFractionTool.cxx.
114{
115
117
119 << "TBBeamQualityEMFractionTool: Started Accept"
121
123
127
128
129
130
131
132
133
134 float numenergy=0;
135 float denenergy=0;
137
138
139 const CaloCellContainer* cellContainer = nullptr;
140
142 if (
sc.isFailure()) {
143 log << MSG::ERROR <<
"couldn't get the calo cells from storegate" <<
endmsg;
144 log << MSG::ERROR <<
"here is what is in storegate: " <<
evtStore()->dump() <<
endmsg;
145 return StatusCode::FAILURE;
146 }
147
148 for (const CaloCell* cell_ptr : *cellContainer) {
149
150
151 const CaloDetDescrElement* caloDDE_ptr = cell_ptr->caloDDE();
152
153
154
155
156
158
159
160
161
162 if (sampling >= 0 && sampling <
m_Mlayer.size())
163 m_Mlayer[sampling]+=cell_ptr->energy();
164
165 }
166
167
168
172 }
173
177 }
178
179 if (denenergy!=0) {
181
183 return StatusCode::SUCCESS;
184 }
185 else {
186 return StatusCode::FAILURE;
187 }
188 }
189 else {
190 return StatusCode::FAILURE;
191 }
192}
ServiceHandle< StoreGateSvc > & evtStore()
CaloSampling::CaloSample CaloSample
CaloCell_ID::CaloSample getSampling() const
cell sampling
::StatusCode StatusCode
StatusCode definition for legacy code.
◆ 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 const CaloCell_ID* idHelper = nullptr;
58
59
62 log << MSG::ERROR <<
"unable to obtain hec id " <<
endmsg;
63 return StatusCode::FAILURE;
64 }
67 log << MSG::ERROR <<
"unable to obtain emec id " <<
endmsg;
68 return StatusCode::FAILURE;
69 }
70
73 log << MSG::ERROR <<
"unable to obtain fcal id " <<
endmsg;
74 return StatusCode::FAILURE;
75 }
76
77
78
79 log<<MSG::DEBUG<<
"Got to before p_toolSvc"<<
endmsg;
80
85 }
90 }
94 }
98 }
103 }
108 }
109
110 return StatusCode::SUCCESS;
111}
#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: