|
ATLAS Offline Software
|
Go to the documentation of this file.
49 return StatusCode::SUCCESS;
64 if (truthParticle ==
nullptr)
continue;
67 if (truthParticle ==
nullptr or !
acc->isAvailable(*truthParticle)) {
68 writeHandle->set(*tau, -999.,
sys);
70 writeHandle->set(*tau,
acc->operator()(*truthParticle),
sys);
75 if (truthParticle ==
nullptr or !
acc->isAvailable(*truthParticle)) {
76 writeHandle->set(*tau, -999.,
sys);
78 writeHandle->set(*tau,
acc->operator()(*truthParticle),
sys);
83 if (truthParticle ==
nullptr or !
acc->isAvailable(*truthParticle)) {
84 writeHandle->set(*tau, -999,
sys);
86 writeHandle->set(*tau,
acc->operator()(*truthParticle),
sys);
91 if (truthParticle ==
nullptr or !
acc->isAvailable(*truthParticle)) {
92 writeHandle->set(*tau, 0,
sys);
94 writeHandle->set(*tau,
acc->operator()(*truthParticle),
sys);
102 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
SysWriteDecorHandle< int > m_truthParticleTypeDecoration
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.