|
ATLAS Offline Software
|
#include <CBNT_UpstreamMat.h>
|
| CBNT_UpstreamMat (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~CBNT_UpstreamMat () |
|
virtual StatusCode | CBNT_initialize () override |
|
virtual StatusCode | CBNT_execute () override |
|
virtual StatusCode | CBNT_finalize () override |
|
virtual StatusCode | CBNT_clear () override |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute () override |
|
virtual StatusCode | finalize () override |
|
virtual StatusCode | pre_execute () |
|
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 12 of file CBNT_UpstreamMat.h.
◆ StoreGateSvc_t
◆ anonymous enum
◆ CBNT_UpstreamMat()
CBNT_UpstreamMat::CBNT_UpstreamMat |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~CBNT_UpstreamMat()
CBNT_UpstreamMat::~CBNT_UpstreamMat |
( |
| ) |
|
|
virtual |
◆ addBranch() [1/3]
template<class T >
void CBNT_TBRecBase::addBranch |
( |
const std::string & |
branchname, |
|
|
T & |
obj, |
|
|
const std::string & |
leaflist |
|
) |
| |
|
inlineprotectedinherited |
◆ addBranch() [2/3]
template<class T >
void CBNT_TBRecBase::addBranch |
( |
const std::string & |
branchname, |
|
|
T *& |
obj |
|
) |
| |
|
inlineprotectedinherited |
◆ addBranch() [3/3]
template<class T >
void CBNT_TBRecBase::addBranch |
( |
const std::string & |
branchname, |
|
|
T *& |
obj, |
|
|
int |
bufferSize, |
|
|
int |
splitLevel |
|
) |
| |
|
inlineprotectedinherited |
◆ CBNT_clear()
StatusCode CBNT_UpstreamMat::CBNT_clear |
( |
| ) |
|
|
overridevirtual |
◆ CBNT_execute()
StatusCode CBNT_UpstreamMat::CBNT_execute |
( |
| ) |
|
|
overridevirtual |
Reimplemented from CBNT_TBRecBase.
Definition at line 49 of file CBNT_UpstreamMat.cxx.
57 log << MSG::WARNING <<
"TrackRecordCollection with key " <<
m_key <<
" not found" <<
endmsg;
60 return StatusCode::SUCCESS;
65 for (
const TrackRecord& trackRecord : *trackRecordCollection) {
66 const int pdgCode=trackRecord.GetPDGCode();
67 Hep3Vector
p=trackRecord.GetMomentum();
68 double pr=sqrt(
p.y()*
p.y()+
p.z()*
p.z());
71 m_PhotEne->push_back(trackRecord.GetEnergy());
75 else if (pdgCode==11 || pdgCode==-11) {
76 m_ElecEne->push_back(trackRecord.GetEnergy());
81 log << MSG::INFO <<
"Found particle code " << pdgCode <<
endmsg;
84 return StatusCode::SUCCESS;
◆ CBNT_finalize()
StatusCode CBNT_UpstreamMat::CBNT_finalize |
( |
| ) |
|
|
overridevirtual |
◆ CBNT_initialize()
StatusCode CBNT_UpstreamMat::CBNT_initialize |
( |
| ) |
|
|
overridevirtual |
◆ 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 |
( |
| ) |
|
|
overridevirtualinherited |
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 |
( |
| ) |
|
|
overridevirtualinherited |
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 |
( |
| ) |
|
|
overridevirtualinherited |
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 |
( |
| ) |
|
|
virtualinherited |
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()
◆ CBNT_UpstreamMat
CBNT_UpstreamMat.CBNT_UpstreamMat |
◆ CollectionName
CBNT_UpstreamMat.CollectionName |
◆ m_detStore
◆ m_ElecAng
std::vector<float>* CBNT_UpstreamMat::m_ElecAng |
|
private |
◆ m_ElecEne
std::vector<float>* CBNT_UpstreamMat::m_ElecEne |
|
private |
◆ m_emId
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_fcalId
◆ m_hecId
◆ m_initialized
bool CBNT_TBRecBase::m_initialized |
|
privateinherited |
◆ m_key
std::string CBNT_UpstreamMat::m_key |
|
private |
◆ m_log
MsgStream* CBNT_TBRecBase::m_log |
|
protectedinherited |
◆ m_nElec
long CBNT_UpstreamMat::m_nElec |
|
private |
◆ m_notFound
bool CBNT_UpstreamMat::m_notFound |
|
private |
◆ m_nPhot
long CBNT_UpstreamMat::m_nPhot |
|
private |
◆ m_nt
TTree* CBNT_TBRecBase::m_nt |
|
protectedinherited |
◆ m_ntpath
std::string CBNT_TBRecBase::m_ntpath |
|
protectedinherited |
◆ m_ntTitle
std::string CBNT_TBRecBase::m_ntTitle |
|
protectedinherited |
◆ m_onlineId
◆ m_PhotAng
std::vector<float>* CBNT_UpstreamMat::m_PhotAng |
|
private |
◆ m_PhotEne
std::vector<float>* CBNT_UpstreamMat::m_PhotEne |
|
private |
◆ 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
std::vector< float > * m_ElecEne
std::vector< float > * m_PhotAng
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
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
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.
void addBranch(const std::string &branchname, T &obj, const std::string &leaflist)
std::vector< float > * m_PhotEne
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()
std::vector< float > * m_ElecAng
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