ATLAS Offline Software
Loading...
Searching...
No Matches
ClusterAtEMScaleTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include <vector>
7
8using namespace std;
9
10
14
17 ATH_MSG_ERROR("As the name suggests, ClusterAtEMScaleTool cannot operate on objects of type "
18 << m_inputType);
19 return StatusCode::FAILURE;
20 }
21 return StatusCode::SUCCESS;
22}
23
25 for(xAOD::CaloCluster* cl : cont ) {
26 cl->setCalE( cl->rawE() );
27 cl->setCalM( cl->rawM() );
28 cl->setCalPhi( cl->rawPhi() );
29 cl->setCalEta( cl->rawEta() );
30 }
31
32 return StatusCode::SUCCESS;
33}
34
36 xAOD::CaloClusterContainer* clust = dynamic_cast<xAOD::CaloClusterContainer*> (cont); // Get CaloCluster container
37 if(clust) return setClustersToEMScale(*clust);
38 return StatusCode::FAILURE;
39}
40
41
#define ATH_MSG_ERROR(x)
StatusCode process_impl(xAOD::IParticleContainer *cont) const
StatusCode initialize()
Dummy implementation of the initialisation function.
ClusterAtEMScaleTool(const std::string &name)
StatusCode setClustersToEMScale(xAOD::CaloClusterContainer &cont) const
JetConstituentModifierBase(const std::string &name)
STL namespace.
@ CaloCluster
The object is a calorimeter cluster.
Definition ObjectType.h:39
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.