|
ATLAS Offline Software
|
Go to the documentation of this file.
14 return StatusCode::SUCCESS;
19 auto jet_seed = tau.
jet();
20 if (jet_seed ==
nullptr) {
22 return StatusCode::FAILURE;
27 if (!removedClustersHandle.
isValid() || !removedTracksHandle.
isValid()) {
29 "Could not retrieve HiveDataObj with key " <<
30 (!removedClustersHandle.
isValid() ? removedClustersHandle.
key() :
"") <<
31 (!removedTracksHandle.
isValid() ? removedTracksHandle.
key() :
"")
33 return StatusCode::FAILURE;
39 for (
auto removal_direction : *removed_tracks_cont) {
40 if (removal_direction->p4().DeltaR(jet_seed->p4()) <
m_checkingCone) {
41 return StatusCode::SUCCESS;
44 for (
auto removal_direction : *removed_clusters_cont) {
45 if (removal_direction->p4().DeltaR(jet_seed->p4()) <
m_checkingCone) {
46 return StatusCode::SUCCESS;
49 ATH_MSG_DEBUG(
"TauJet do not overlap with removal direction, skipping...");
50 return StatusCode::FAILURE;
const_pointer_type cptr()
Dereference the pointer.
virtual StatusCode execute(xAOD::TauJet &tau) const override
Execution of this tool.
Gaudi::Property< double > m_checkingCone
::StatusCode StatusCode
StatusCode definition for legacy code.
Class describing a tau jet.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual StatusCode initialize() override
Initialization of the tool.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_removedTracksContainer
virtual const std::string & key() const override final
Return the StoreGate ID for the referenced object.
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_removedClustersContainer
TauEleOverlapChecker(const std::string &name)
Constructor.