|
ATLAS Offline Software
|
Go to the documentation of this file.
24 if (tau.
jet() ==
nullptr) {
26 return StatusCode::FAILURE;
32 std::vector<const xAOD::CaloCluster*> clusterList =
getClusterList(*jetSeed);
35 if (cluster ==
nullptr) {
36 ATH_MSG_WARNING(
"Find cluster with nullptr, please check the configuration !");
41 auto original_cluster_link = acc_originalObject(*cluster);
42 if (!original_cluster_link.isValid()){
45 cluster = *original_cluster_link;
59 return StatusCode::SUCCESS;
65 std::vector<const xAOD::CaloCluster*> clusterList;
70 ATH_MSG_DEBUG(
"eta: " << constituent->eta() <<
" phi: " << constituent->phi() <<
" e: " << constituent->e());
75 ATH_MSG_DEBUG(
"eta: " << cluster->
eta() <<
" phi: " << cluster->
phi() <<
" e: " << cluster->
e());
85 clusterList.push_back(cluster);
115 if (
std::find(clusterList.begin(), clusterList.end(), cluster) == clusterList.end() ) {
116 clusterList.push_back(cluster);
virtual double phi() const
The azimuthal angle ( ) of the particle.
bool toContainedElement(BaseConstReference data, ElementType element, IProxyDict *sg=0)
Set from element pointer and a reference to the container (storable)
std::string find(const std::string &s)
return a remapped string
std::size_t nOtherObjects() const
Gaudi::Property< bool > m_skipNegativeEnergy
void clearClusterLinks()
Remove all clusters from the tau.
Helper class to provide constant type-safe access to aux data.
TauClusterFinder(const std::string &name)
Constructor.
Class providing the definition of the 4-vector interface.
std::vector< const xAOD::CaloCluster * > getClusterList(const xAOD::Jet &jet) const
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Gaudi::Property< bool > m_useOrigCluster
Description of a calorimeter cluster.
virtual double eta() const
The pseudorapidity ( ) of the particle.
::StatusCode StatusCode
StatusCode definition for legacy code.
FlowElement_v1 FlowElement
Definition of the current "pfo version".
Class describing a tau jet.
void addClusterLink(const ElementLink< IParticleContainer > &tr)
add a cluster link to the tau
std::string to_string(const DetectorType &type)
virtual StatusCode execute(xAOD::TauJet &tau) const override
Execution of this tool.
#define ATH_MSG_WARNING(x)
const xAOD::IParticle * otherObject(std::size_t i) const
4-vector of jet constituent at the scale used during jet finding.
A vector of jet constituents at the scale used during jet finding.
const IParticle * getOriginalObject(const IParticle ©)
This function can be used to conveniently get a pointer back to the original object from which a copy...
virtual double e() const
The total energy of the particle.
A detector object made of other lower level object(s)