|
ATLAS Offline Software
|
Go to the documentation of this file.
15 declareInterface<DerivationFramework::IAugmentationTool>(
this);
26 if(
m_Tool.retrieve().isFailure()){
28 return StatusCode::FAILURE;
31 return StatusCode::SUCCESS;
35 return StatusCode::SUCCESS;
42 return StatusCode::FAILURE;
45 std::map<const xAOD::TruthParticle*, DerivationFramework::HadronOriginClassifier::HF_id> hadronMap=
m_Tool->GetOriginMap();
49 if(hadronMap.find((*PItr))!=hadronMap.end()){
50 flavortype=
static_cast<int>(hadronMap[(*PItr)]);
53 decoration(**PItr) = flavortype;
56 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
Const iterator class for DataVector/DataList.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::string m_TruthEventName
ToolHandle< DerivationFramework::HadronOriginClassifier > m_Tool
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
HadronOriginDecorator(const std::string &t, const std::string &n, const IInterface *p)
Helper class to provide type-safe access to aux data.
::StatusCode StatusCode
StatusCode definition for legacy code.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
virtual StatusCode addBranches() const
Pass the thinning service
#define ATH_MSG_WARNING(x)
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.