#include <CBNT_TBRecBase.h>
Inherits AthAlgorithm.
Inherited by CBNTAA_BeamInstrumentation, CBNTAA_TBADCRaw, CBNTAA_TBInfo, CBNTAA_TBScint, CBNTAA_TBTDCRaw, CBNTAA_TBTPValidation, CBNTAA_TBTrack, CBNT_BeamInstrumentation, CBNT_CaloH6, CBNT_Timing, and CBNT_UpstreamMat.
|
| template<class T> |
| void | addBranch (const std::string &branchname, T &obj, const std::string &leaflist) |
| template<class T> |
| void | addBranch (const std::string &branchname, T *&obj) |
| template<class T> |
| void | addBranch (const std::string &branchname, T *&obj, int bufferSize, int splitLevel) |
| void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| | remove all handles from I/O resolution
|
| 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) |
| void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
| | Add StoreName to extra input/output deps as needed.
|
Definition at line 21 of file CBNT_TBRecBase.h.
◆ StoreGateSvc_t
◆ anonymous enum
◆ CBNT_TBRecBase()
| CBNT_TBRecBase::CBNT_TBRecBase |
( |
const std::string & | name, |
|
|
ISvcLocator * | pSvcLocator ) |
Definition at line 12 of file CBNT_TBRecBase.cxx.
12 :
15{
16}
AthAlgorithm()
Default constructor:
const LArOnlineID * m_onlineId
const LArFCAL_ID * m_fcalId
const LArHEC_ID * m_hecId
◆ ~CBNT_TBRecBase()
| CBNT_TBRecBase::~CBNT_TBRecBase |
( |
| ) |
|
|
virtual |
◆ addBranch() [1/3]
template<class T>
| void CBNT_TBRecBase::addBranch |
( |
const std::string & | branchname, |
|
|
T & | obj, |
|
|
const std::string & | leaflist ) |
|
inlineprotected |
◆ addBranch() [2/3]
template<class T>
| void CBNT_TBRecBase::addBranch |
( |
const std::string & | branchname, |
|
|
T *& | obj ) |
|
inlineprotected |
◆ addBranch() [3/3]
template<class T>
| void CBNT_TBRecBase::addBranch |
( |
const std::string & | branchname, |
|
|
T *& | obj, |
|
|
int | bufferSize, |
|
|
int | splitLevel ) |
|
inlineprotected |
◆ CBNT_clear()
| virtual StatusCode CBNT_TBRecBase::CBNT_clear |
( |
| ) |
|
|
inlinevirtual |
◆ CBNT_execute()
| virtual StatusCode CBNT_TBRecBase::CBNT_execute |
( |
| ) |
|
|
inlinevirtual |
Reimplemented in CBNT_BeamInstrumentation, CBNT_CaloH6, CBNT_Timing, CBNT_UpstreamMat, CBNTAA_BeamInstrumentation, CBNTAA_TBADCRaw, CBNTAA_TBInfo, CBNTAA_TBScint, CBNTAA_TBTDCRaw, CBNTAA_TBTPValidation, and CBNTAA_TBTrack.
Definition at line 35 of file CBNT_TBRecBase.h.
35{return StatusCode::SUCCESS;}
◆ CBNT_finalize()
| virtual StatusCode CBNT_TBRecBase::CBNT_finalize |
( |
| ) |
|
|
inlinevirtual |
Reimplemented in CBNT_BeamInstrumentation, CBNT_CaloH6, CBNT_Timing, CBNT_UpstreamMat, CBNTAA_BeamInstrumentation, CBNTAA_TBADCRaw, CBNTAA_TBInfo, CBNTAA_TBScint, CBNTAA_TBTDCRaw, CBNTAA_TBTPValidation, and CBNTAA_TBTrack.
Definition at line 36 of file CBNT_TBRecBase.h.
36{return StatusCode::SUCCESS;}
◆ CBNT_initialize()
| virtual StatusCode CBNT_TBRecBase::CBNT_initialize |
( |
| ) |
|
|
inlinevirtual |
Reimplemented in CBNT_BeamInstrumentation, CBNT_CaloH6, CBNT_Timing, CBNT_UpstreamMat, CBNTAA_BeamInstrumentation, CBNTAA_TBADCRaw, CBNTAA_TBInfo, CBNTAA_TBScint, CBNTAA_TBTDCRaw, CBNTAA_TBTPValidation, and CBNTAA_TBTrack.
Definition at line 34 of file CBNT_TBRecBase.h.
34{return StatusCode::SUCCESS;}
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
◆ 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()
◆ execute()
| StatusCode CBNT_TBRecBase::execute |
( |
| ) |
|
|
overridevirtual |
Definition at line 154 of file CBNT_TBRecBase.cxx.
154 {
155
157
158
159 try {
161 }
162
163 catch( const std::exception& Exception ) {
164 *
m_log << MSG::ERROR <<
" Standard exception "
165 << Exception.what()
166 <<
" caught from sub-algorithm::CBNT_pre_execute (). Disable !" <<
endmsg ;
168 return StatusCode::FAILURE;
169
170 }
171 catch (...) {
172 *
m_log << MSG::ERROR <<
" Unknown exception "
173 <<
" caught from sub-algorithm::CBNT_pre_execute (). Disable !" <<
endmsg ;
175 return StatusCode::FAILURE;
176 }
177
178 if (
sc.isFailure()) {
179 *
m_log << MSG::ERROR <<
"CBNT_pre_execute() failed. Disable !" <<
endmsg;
182 }
183
184
185 try {
187 }
188
189 catch( const std::exception& Exception ) {
190 *
m_log << MSG::ERROR <<
" Standard exception "
191 << Exception.what()
192 <<
" caught from sub-algorithm::CBNT_execute () :" <<
endmsg ;
193 return StatusCode::FAILURE;
194 }
195 catch (...) {
196 *
m_log << MSG::ERROR <<
" Unknown exception "
197 <<
" caught from sub-algorithm::CBNT_execute () :" <<
endmsg ;
198 return StatusCode::FAILURE;
199 }
200
202}
void setProperty(columnar::PythonToolHandle &self, const std::string &key, nb::object value)
virtual StatusCode CBNT_execute()
virtual StatusCode pre_execute()
::StatusCode StatusCode
StatusCode definition for legacy code.
◆ 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
◆ extraOutputDeps()
| const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
51{
52
53
56 }
57 return Algorithm::extraOutputDeps();
58}
DataObjIDColl m_extendedExtraObjects
◆ finalize()
| StatusCode CBNT_TBRecBase::finalize |
( |
| ) |
|
|
overridevirtual |
Definition at line 205 of file CBNT_TBRecBase.cxx.
205 {
206
208
209
210 try {
212 }
213 catch( const std::exception& Exception ) {
214 *
m_log << MSG::ERROR <<
" Standard exception "
215 << Exception.what()
216 <<
" caught from sub-algorithm::CBNT_finalize () :" <<
endmsg ;
217 }
218 catch (...) {
219 *
m_log << MSG::ERROR <<
" Unknown exception "
220 <<
" caught from sub-algorithm::CBNT_finalize () :" <<
endmsg ;
221 }
222
224}
virtual StatusCode CBNT_finalize()
◆ initialize()
| StatusCode CBNT_TBRecBase::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 22 of file CBNT_TBRecBase.cxx.
22 {
24
25 *
m_log << MSG::DEBUG <<
"Initializing CBNT_TBRecBase base class" <<
endmsg;
26
27 const CaloCell_ID* idHelper = nullptr;
32
33
35 (*m_log) << MSG::ERROR <<
"Could not access lar EM ID helper" <<
endmsg;
36 return StatusCode::FAILURE;
37 }
39 (*m_log) << MSG::ERROR <<
"Could not access lar FCAL ID helper" <<
endmsg;
40 return StatusCode::FAILURE;
41 }
43 (*m_log) << MSG::ERROR <<
"Could not access lar HEC ID helper" <<
endmsg;
44 return StatusCode::FAILURE;
45 }
46
49 (*m_log) << MSG::ERROR <<
"Could not get LArOnlineID helper !" <<
endmsg;
50 return StatusCode::FAILURE;
51 }
52 else {
53 (*m_log) << MSG::DEBUG <<
" Found the LArOnlineID helper. " <<
endmsg;
54 }
55
56
58 return StatusCode::SUCCESS;
59}
#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
msgSvc
Provide convenience handles for various services.
◆ 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.
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< Algorithm >::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.
◆ pre_execute()
| StatusCode CBNT_TBRecBase::pre_execute |
( |
| ) |
|
|
virtual |
Definition at line 61 of file CBNT_TBRecBase.cxx.
61 {
62
64
66
68 *
m_log << MSG::ERROR <<
"Need to set variable 'm_ntpath' and 'm_ntTitle' in constructor of deriving class!" <<
endmsg;
69 return StatusCode::FAILURE;
70 }
71
73 if (i==std::string::npos) {
75 return StatusCode::FAILURE;
76 }
78
79
80
81 ServiceHandle<ITHistSvc> tHistSvc(
"THistSvc",
name());
83
84
89 }
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109 try {
111 }
112 catch( const std::exception& Exception ) {
113 *
m_log << MSG::ERROR <<
" Standard exception "
114 << Exception.what()
115 <<
" caught from sub-algorithm::CBNT_initialize () :" <<
endmsg ;
116 }
117 catch (...) {
118 *
m_log << MSG::ERROR <<
" Unknown exception "
119 <<
" caught from sub-algorithm::CBNT_initialize () :" <<
endmsg ;
120 }
121
123 {
124 *
m_log << MSG::ERROR <<
"CBNT_initialize() failed" <<
endmsg;
126 }
127
129 }
130
131
132 try {
134 }
135 catch( const std::exception& Exception ) {
136 *
m_log << MSG::ERROR <<
" Standard exception "
137 << Exception.what()
138 <<
" caught from sub-algorithm::CBNT_clear () :" <<
endmsg ;
139 }
140 catch (...) {
141 *
m_log << MSG::ERROR <<
" Unknown exception "
142 <<
" caught from sub-algorithm::CBNT_clear () :" <<
endmsg ;
143 }
144
145 if (
sc.isFailure()) {
146 *
m_log << MSG::ERROR <<
"CBNT_clear() failed" <<
endmsg;
148 }
149
150 return StatusCode::SUCCESS ;
151}
virtual StatusCode CBNT_clear()
virtual StatusCode CBNT_initialize()
◆ 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()
| StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
Override sysInitialize.
Override sysInitialize from the base class.
Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc
Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc
Reimplemented from AthCommonDataStore< AthCommonMsg< Algorithm > >.
Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, AthHistogramAlgorithm, and PyAthena::Alg.
Definition at line 66 of file AthAlgorithm.cxx.
66 {
68
71 }
72 ServiceHandle<ICondSvc> cs(
"CondSvc",
name());
74 if (
h->isCondition() &&
h->mode() == Gaudi::DataHandle::Writer) {
75
76 if ( cs.retrieve().isFailure() ) {
78 return StatusCode::SUCCESS;
79 }
80 if (cs->regHandle(this,*h).isFailure()) {
81 sc = StatusCode::FAILURE;
82 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
83 << " with CondSvc");
84 }
85 }
86 }
88}
#define ATH_MSG_WARNING(x)
virtual StatusCode sysInitialize() override
Override sysInitialize.
AthCommonDataStore(const std::string &name, T... args)
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
◆ 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_emId
◆ m_evtStore
◆ m_extendedExtraObjects
| DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_fcalId
◆ m_hecId
◆ m_initialized
| bool CBNT_TBRecBase::m_initialized |
|
private |
◆ m_log
| MsgStream* CBNT_TBRecBase::m_log |
|
protected |
◆ m_nt
| TTree* CBNT_TBRecBase::m_nt |
|
protected |
◆ m_ntpath
| std::string CBNT_TBRecBase::m_ntpath |
|
protected |
◆ m_ntTitle
| std::string CBNT_TBRecBase::m_ntTitle |
|
protected |
◆ m_onlineId
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: