![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
48 return StatusCode::SUCCESS;
63 if (truthParticle ==
nullptr)
continue;
66 if (truthParticle ==
nullptr or !
acc->isAvailable(*truthParticle)) {
67 writeHandle->set(*tau, -999.,
sys);
69 writeHandle->set(*tau,
acc->operator()(*truthParticle),
sys);
74 if (truthParticle ==
nullptr or !
acc->isAvailable(*truthParticle)) {
75 writeHandle->set(*tau, -999.,
sys);
77 writeHandle->set(*tau,
acc->operator()(*truthParticle),
sys);
82 if (truthParticle ==
nullptr or !
acc->isAvailable(*truthParticle)) {
83 writeHandle->set(*tau, -999,
sys);
85 writeHandle->set(*tau,
acc->operator()(*truthParticle),
sys);
90 if (truthParticle ==
nullptr or !
acc->isAvailable(*truthParticle)) {
91 writeHandle->set(*tau, 0,
sys);
93 writeHandle->set(*tau,
acc->operator()(*truthParticle),
sys);
100 return StatusCode::SUCCESS;
void set(const SG::AuxElement &object, const T &value, const CP::SystematicSet &sys) const
set the object decoration for the given systematic
Gaudi::Property< std::vector< std::string > > m_doubleDecorations
the decoration for the tau scale factor
Gaudi::Property< std::string > m_prefix
StatusCode initialize() override
SysReadHandle< xAOD::TauJetContainer > m_tauHandle
the tau collection we run on
::StatusCode retrieve(const T *&object, const CP::SystematicSet &sys) const
retrieve the object for the given name
Helper class to provide constant type-safe access to aux data.
const std::vector< CP::SystematicSet > & systematicsVector() const
the list of systematics to loop over
Gaudi::Property< std::vector< std::string > > m_floatDecorations
Select isolated Photons, Electrons and Muons.
std::vector< std::pair< std::unique_ptr< SG::AuxElement::ConstAccessor< char > >, std::unique_ptr< SysWriteDecorHandle< char > > > > m_charWriteHandles
StatusCode initialize(SysListHandle &sysListHandle)
initialize this handle
::StatusCode initialize()
intialize this property
const xAOD::TruthParticle * getTruthParticle(const xAOD::IParticle *, bool debug=false)
return the truthParticle associated to the given IParticle (if any)
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(SysListHandle &sysListHandle, const ISysHandleBase &objectHandle)
initialize this handle
Class describing a truth particle in the MC record.
Class describing a tau jet.
StatusCode execute() override
Gaudi::Property< std::vector< std::string > > m_intDecorations
std::vector< std::pair< std::unique_ptr< SG::AuxElement::ConstAccessor< int > >, std::unique_ptr< SysWriteDecorHandle< int > > > > m_intWriteHandles
SysWriteDecorHandle< int > m_truthDecayModeDecoration
StatusCode initialize(SysListHandle &sysListHandle, const ISysHandleBase &objectHandle)
initialize the accessor
SysReadSelectionHandle m_preselection
the preselection we apply to our input
std::vector< std::pair< std::unique_ptr< SG::AuxElement::ConstAccessor< float > >, std::unique_ptr< SysWriteDecorHandle< float > > > > m_floatWriteHandles
SysListHandle m_systematicsList
the systematics list we run
std::vector< std::pair< std::unique_ptr< SG::AuxElement::ConstAccessor< double > >, std::unique_ptr< SysWriteDecorHandle< float > > > > m_doubleWriteHandles
Gaudi::Property< std::vector< std::string > > m_charDecorations
Base class for elements of a container that can have aux data.