|
ATLAS Offline Software
|
#include <CBNT_TBRecBase.h>
Inherits AthAlgorithm.
Inherited by CBNT_BeamInstrumentation, CBNT_CaloH6, CBNT_Timing, CBNT_UpstreamMat, CBNTAA_BeamInstrumentation, CBNTAA_TBADCRaw, CBNTAA_TBInfo, CBNTAA_TBScint, CBNTAA_TBTDCRaw, CBNTAA_TBTPValidation, and CBNTAA_TBTrack.
|
| CBNT_TBRecBase (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~CBNT_TBRecBase () |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute () override |
|
virtual StatusCode | finalize () override |
|
virtual StatusCode | pre_execute () |
|
virtual StatusCode | CBNT_initialize () |
|
virtual StatusCode | CBNT_execute () |
|
virtual StatusCode | CBNT_finalize () |
|
virtual StatusCode | CBNT_clear () |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
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 |
|
) |
| |
◆ ~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_CaloH6, CBNT_Timing, CBNTAA_TBADCRaw, CBNTAA_TBTDCRaw, CBNTAA_TBScint, CBNTAA_BeamInstrumentation, CBNTAA_TBTrack, CBNTAA_TBInfo, CBNT_BeamInstrumentation, CBNT_UpstreamMat, and CBNTAA_TBTPValidation.
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_CaloH6, CBNT_Timing, CBNTAA_TBADCRaw, CBNTAA_TBTDCRaw, CBNTAA_TBScint, CBNTAA_BeamInstrumentation, CBNTAA_TBTrack, CBNTAA_TBInfo, CBNT_BeamInstrumentation, CBNT_UpstreamMat, and CBNTAA_TBTPValidation.
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_CaloH6, CBNT_Timing, CBNTAA_TBADCRaw, CBNTAA_TBTDCRaw, CBNTAA_TBScint, CBNTAA_BeamInstrumentation, CBNTAA_TBTrack, CBNTAA_TBInfo, CBNT_BeamInstrumentation, CBNT_UpstreamMat, and CBNTAA_TBTPValidation.
Definition at line 34 of file CBNT_TBRecBase.h.
34 {
return StatusCode::SUCCESS;}
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode CBNT_TBRecBase::execute |
( |
| ) |
|
|
overridevirtual |
Definition at line 154 of file CBNT_TBRecBase.cxx.
164 *
m_log << MSG::ERROR <<
" Standard exception "
166 <<
" caught from sub-algorithm::CBNT_pre_execute (). Disable !" <<
endmsg ;
167 sc = this->setProperty(BooleanProperty(
"Enable",
false ) );
168 return StatusCode::FAILURE;
172 *
m_log << MSG::ERROR <<
" Unknown exception "
173 <<
" caught from sub-algorithm::CBNT_pre_execute (). Disable !" <<
endmsg ;
174 sc = this->setProperty(BooleanProperty(
"Enable",
false ) );
175 return StatusCode::FAILURE;
178 if (
sc.isFailure()) {
179 *
m_log << MSG::ERROR <<
"CBNT_pre_execute() failed. Disable !" <<
endmsg;
180 sc = this->setProperty(BooleanProperty(
"Enable",
false ) );
190 *
m_log << MSG::ERROR <<
" Standard exception "
192 <<
" caught from sub-algorithm::CBNT_execute () :" <<
endmsg ;
193 return StatusCode::FAILURE;
196 *
m_log << MSG::ERROR <<
" Unknown exception "
197 <<
" caught from sub-algorithm::CBNT_execute () :" <<
endmsg ;
198 return StatusCode::FAILURE;
◆ 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.
57 return Algorithm::extraOutputDeps();
◆ finalize()
StatusCode CBNT_TBRecBase::finalize |
( |
| ) |
|
|
overridevirtual |
Definition at line 205 of file CBNT_TBRecBase.cxx.
214 *
m_log << MSG::ERROR <<
" Standard exception "
216 <<
" caught from sub-algorithm::CBNT_finalize () :" <<
endmsg ;
219 *
m_log << MSG::ERROR <<
" Unknown exception "
220 <<
" caught from sub-algorithm::CBNT_finalize () :" <<
endmsg ;
◆ initialize()
StatusCode CBNT_TBRecBase::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 22 of file CBNT_TBRecBase.cxx.
35 (*m_log) << MSG::ERROR <<
"Could not access lar EM ID helper" <<
endmsg;
36 return StatusCode::FAILURE;
39 (*m_log) << MSG::ERROR <<
"Could not access lar FCAL ID helper" <<
endmsg;
40 return StatusCode::FAILURE;
43 (*m_log) << MSG::ERROR <<
"Could not access lar HEC ID helper" <<
endmsg;
44 return StatusCode::FAILURE;
49 (*m_log) << MSG::ERROR <<
"Could not get LArOnlineID helper !" <<
endmsg;
50 return StatusCode::FAILURE;
58 return StatusCode::SUCCESS;
◆ 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() [1/2]
◆ msg() [2/2]
◆ 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 61 of file CBNT_TBRecBase.cxx.
68 *
m_log << MSG::ERROR <<
"Need to set variable 'm_ntpath' and 'm_ntTitle' in constructor of deriving class!" <<
endmsg;
69 return StatusCode::FAILURE;
73 if (
i==std::string::npos) {
75 return StatusCode::FAILURE;
113 *
m_log << MSG::ERROR <<
" Standard exception "
115 <<
" caught from sub-algorithm::CBNT_initialize () :" <<
endmsg ;
118 *
m_log << MSG::ERROR <<
" Unknown exception "
119 <<
" caught from sub-algorithm::CBNT_initialize () :" <<
endmsg ;
124 *
m_log << MSG::ERROR <<
"CBNT_initialize() failed" <<
endmsg;
136 *
m_log << MSG::ERROR <<
" Standard exception "
138 <<
" caught from sub-algorithm::CBNT_clear () :" <<
endmsg ;
141 *
m_log << MSG::ERROR <<
" Unknown exception "
142 <<
" caught from sub-algorithm::CBNT_clear () :" <<
endmsg ;
145 if (
sc.isFailure()) {
146 *
m_log << MSG::ERROR <<
"CBNT_clear() failed" <<
endmsg;
150 return StatusCode::SUCCESS ;
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ 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()
◆ 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:
def retrieve(aClass, aKey=None)
virtual StatusCode CBNT_finalize()
const LArEM_ID * em_idHelper() const
access to EM idHelper
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
const LArOnlineID * m_onlineId
virtual StatusCode CBNT_clear()
virtual StatusCode CBNT_initialize()
virtual StatusCode CBNT_execute()
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
const LArHEC_ID * hec_idHelper() const
access to HEC idHelper
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
virtual StatusCode sysInitialize() override
Override sysInitialize.
const LArFCAL_ID * m_fcalId
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
msgSvc
Provide convenience handles for various services.
::StatusCode StatusCode
StatusCode definition for legacy code.
Helper class for offline cell identifiers.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
const LArHEC_ID * m_hecId
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
DataObjIDColl m_extendedExtraObjects
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
virtual StatusCode pre_execute()
AthAlgorithm()
Default constructor:
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
const LArFCAL_ID * fcal_idHelper() const
access to FCAL idHelper