#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) |
| virtual bool | isReEntrant () const override final |
| | Legacy algorithms are not thread-safe.
|
| 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 :
14{}
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
◆ ~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 |
Definition at line 44 of file CBNT_TBRecBase.h.
44 {
45 m_nt->Branch(branchname.c_str(), &obj, leaflist.c_str());
46 }
◆ 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 |
Definition at line 51 of file CBNT_TBRecBase.h.
51 {
53 m_nt->Branch(branchname.c_str(), &obj, bufferSize, splitLevel);
54 }
◆ 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 |
( |
const EventContext & | ctx | ) |
|
|
overridevirtual |
Execute method.
Implements AthAlgorithm.
Definition at line 152 of file CBNT_TBRecBase.cxx.
152 {
153
155
156
157 try {
159 }
160
161 catch( const std::exception& Exception ) {
162 *
m_log << MSG::ERROR <<
" Standard exception "
163 << Exception.what()
164 <<
" caught from sub-algorithm::CBNT_pre_execute (). Disable !" <<
endmsg ;
166 return StatusCode::FAILURE;
167
168 }
169 catch (...) {
170 *
m_log << MSG::ERROR <<
" Unknown exception "
171 <<
" caught from sub-algorithm::CBNT_pre_execute (). Disable !" <<
endmsg ;
173 return StatusCode::FAILURE;
174 }
175
176 if (
sc.isFailure()) {
177 *
m_log << MSG::ERROR <<
"CBNT_pre_execute() failed. Disable !" <<
endmsg;
180 }
181
182
183 try {
185 }
186
187 catch( const std::exception& Exception ) {
188 *
m_log << MSG::ERROR <<
" Standard exception "
189 << Exception.what()
190 <<
" caught from sub-algorithm::CBNT_execute () :" <<
endmsg ;
191 return StatusCode::FAILURE;
192 }
193 catch (...) {
194 *
m_log << MSG::ERROR <<
" Unknown exception "
195 <<
" caught from sub-algorithm::CBNT_execute () :" <<
endmsg ;
196 return StatusCode::FAILURE;
197 }
198
200}
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()
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 89 of file AthCommonAlgorithm.cxx.
54{
55
56
59 }
61}
Common base class for algorithms.
DataObjIDColl m_extendedExtraObjects
◆ filterPassed()
Get filter decision:
Definition at line 93 of file AthCommonAlgorithm.h.
93 {
95 }
virtual bool filterPassed(const EventContext &ctx) const
Get filter decision:
◆ finalize()
| StatusCode CBNT_TBRecBase::finalize |
( |
| ) |
|
|
overridevirtual |
Definition at line 203 of file CBNT_TBRecBase.cxx.
203 {
204
206
207
208 try {
210 }
211 catch( const std::exception& Exception ) {
212 *
m_log << MSG::ERROR <<
" Standard exception "
213 << Exception.what()
214 <<
" caught from sub-algorithm::CBNT_finalize () :" <<
endmsg ;
215 }
216 catch (...) {
217 *
m_log << MSG::ERROR <<
" Unknown exception "
218 <<
" caught from sub-algorithm::CBNT_finalize () :" <<
endmsg ;
219 }
220
222}
virtual StatusCode CBNT_finalize()
◆ initialize()
| StatusCode CBNT_TBRecBase::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 20 of file CBNT_TBRecBase.cxx.
20 {
22
23 *
m_log << MSG::DEBUG <<
"Initializing CBNT_TBRecBase base class" <<
endmsg;
24
25 const CaloCell_ID* idHelper = nullptr;
30
31
33 (*m_log) << MSG::ERROR <<
"Could not access lar EM ID helper" <<
endmsg;
34 return StatusCode::FAILURE;
35 }
37 (*m_log) << MSG::ERROR <<
"Could not access lar FCAL ID helper" <<
endmsg;
38 return StatusCode::FAILURE;
39 }
41 (*m_log) << MSG::ERROR <<
"Could not access lar HEC ID helper" <<
endmsg;
42 return StatusCode::FAILURE;
43 }
44
47 (*m_log) << MSG::ERROR <<
"Could not get LArOnlineID helper !" <<
endmsg;
48 return StatusCode::FAILURE;
49 }
50 else {
51 (*m_log) << MSG::DEBUG <<
" Found the LArOnlineID helper. " <<
endmsg;
52 }
53
54
56 return StatusCode::SUCCESS;
57}
#define ATH_CHECK
Evaluate an expression and check for errors.
const ServiceHandle< StoreGateSvc > & detStore() const
const LArOnlineID * m_onlineId
const LArFCAL_ID * m_fcalId
const LArHEC_ID * m_hecId
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.
◆ isClonable()
|
|
inlineoverridevirtualinherited |
Specify if the algorithm is clonable.
Only relevant for non-reentrant algorithms. Actual number of clones needs to be set via the "Cardinality" property.
Reimplemented in AFP_DigiTop, AlgB, AlgT, BCM_Digitization, CscDigitBuilder, CscDigitToCscRDO, G4AtlasAlg, G4RunAlg, HGTD_Digitization, HiveAlgBase, InDet::GNNSeedingTrackMaker, InDet::SCT_Clusterization, InDet::SiSPGNNTrackMaker, InDet::SiSPSeededTrackFinder, InDet::SiTrackerSpacePointFinder, ISF::SimKernelMT, ITk::StripDigitization, ITkPixelCablingAlg, ITkStripCablingAlg, LArHitEMapMaker, LArTTL1Maker, LUCID_DigiTop, LVL1::L1TopoSimulation, MergeCalibHits, MergeGenericMuonSimHitColl, MergeHijingPars, MergeMcEventCollection, MergeTrackRecordCollection, MergeTruthJets, MergeTruthParticles, MuonDigitizer, PileUpMTAlg, PixelDigitization, RoIBResultToxAOD, SCT_ByteStreamErrorsTestAlg, SCT_CablingCondAlgFromCoraCool, SCT_CablingCondAlgFromText, SCT_ConditionsParameterTestAlg, SCT_ConditionsSummaryTestAlg, SCT_ConfigurationConditionsTestAlg, SCT_Digitization, SCT_FlaggedConditionTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_PrepDataToxAOD, SCT_RawDataToxAOD, SCT_ReadCalibChipDataTestAlg, SCT_ReadCalibDataTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_SiliconConditionsTestAlg, SCT_StripVetoTestAlg, SCT_TdaqEnabledTestAlg, SCT_TestCablingAlg, SCTEventFlagWriter, SCTRawDataProvider, SCTSiLorentzAngleTestAlg, SCTSiPropertiesTestAlg, SGInputLoader, Simulation::BeamEffectsAlg, TileHitVecToCnt, TileMuonFitter, TilePulseForTileMuonReceiver, TileRawChannelMaker, TRTDigitization, and ZDC_DigiTop.
Definition at line 68 of file AthCommonAlgorithm.h.
68 {
69 return true;
70 }
◆ isReEntrant()
| virtual bool AthAlgorithm::isReEntrant |
( |
| ) |
const |
|
inlinefinaloverrideprotectedvirtualinherited |
Legacy algorithms are not thread-safe.
Definition at line 47 of file AthAlgorithm.h.
◆ msg()
◆ msgLvl()
◆ 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 59 of file CBNT_TBRecBase.cxx.
59 {
60
62
64
66 *
m_log << MSG::ERROR <<
"Need to set variable 'm_ntpath' and 'm_ntTitle' in constructor of deriving class!" <<
endmsg;
67 return StatusCode::FAILURE;
68 }
69
71 if (i==std::string::npos) {
73 return StatusCode::FAILURE;
74 }
76
77
78
79 ServiceHandle<ITHistSvc> tHistSvc(
"THistSvc",
name());
81
82
87 }
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107 try {
109 }
110 catch( const std::exception& Exception ) {
111 *
m_log << MSG::ERROR <<
" Standard exception "
112 << Exception.what()
113 <<
" caught from sub-algorithm::CBNT_initialize () :" <<
endmsg ;
114 }
115 catch (...) {
116 *
m_log << MSG::ERROR <<
" Unknown exception "
117 <<
" caught from sub-algorithm::CBNT_initialize () :" <<
endmsg ;
118 }
119
121 {
122 *
m_log << MSG::ERROR <<
"CBNT_initialize() failed" <<
endmsg;
124 }
125
127 }
128
129
130 try {
132 }
133 catch( const std::exception& Exception ) {
134 *
m_log << MSG::ERROR <<
" Standard exception "
135 << Exception.what()
136 <<
" caught from sub-algorithm::CBNT_clear () :" <<
endmsg ;
137 }
138 catch (...) {
139 *
m_log << MSG::ERROR <<
" Unknown exception "
140 <<
" caught from sub-algorithm::CBNT_clear () :" <<
endmsg ;
141 }
142
143 if (
sc.isFailure()) {
144 *
m_log << MSG::ERROR <<
"CBNT_clear() failed" <<
endmsg;
146 }
147
148 return StatusCode::SUCCESS ;
149}
virtual StatusCode CBNT_clear()
virtual StatusCode CBNT_initialize()
◆ renounce()
Definition at line 368 of file AthCommonDataStore.h.
369 {
372 }
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()
◆ setFilterPassed()
| virtual void AthCommonAlgorithm< Gaudi::Algorithm >::setFilterPassed |
( |
bool | state, |
|
|
const EventContext & | ctx ) const |
|
inlinevirtualinherited |
Set filter decision:
Definition at line 99 of file AthCommonAlgorithm.h.
99 {
101 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const
Set filter decision:
◆ sysExecute()
Execute an algorithm.
We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.
Reimplemented in AthAnalysisAlgorithm.
Definition at line 80 of file AthCommonAlgorithm.cxx.
◆ sysInitialize()
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< Gaudi::Algorithm > >.
Reimplemented in AthAnalysisAlgorithm, AthHistogramAlgorithm, HypoBase, InputMakerBase, and PyAthena::Alg.
Definition at line 60 of file AthCommonAlgorithm.cxx.
71 {
73
76 }
77
81
82 if (
cs.retrieve().isFailure() ) {
85 }
86 if (
cs->regHandle(
this,*
h).isFailure()) {
88 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
89 << " with CondSvc");
90 }
91 }
92 }
94}
#define ATH_MSG_ERROR(x,...)
#define ATH_MSG_WARNING(x,...)
virtual StatusCode sysInitialize() override
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 298 of file AthCommonDataStore.h.
298 {
301 for (
auto k :
keys) {
303 }
304 }
305 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ m_detStore
◆ m_emId
◆ m_evtStore
◆ m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 108 of file AthCommonAlgorithm.h.
◆ m_fcalId
◆ m_hecId
◆ m_initialized
| bool CBNT_TBRecBase::m_initialized {false} |
|
private |
◆ m_log
| MsgStream* CBNT_TBRecBase::m_log {nullptr} |
|
protected |
◆ m_nt
| TTree* CBNT_TBRecBase::m_nt {nullptr} |
|
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: