ATLAS Offline Software
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 
8 using namespace std;
9 
10 
12 {
13 }
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->setCalPhi( cl->rawPhi() );
28  cl->setCalEta( cl->rawEta() );
29  }
30 
31  return StatusCode::SUCCESS;
32 }
33 
35  xAOD::CaloClusterContainer* clust = dynamic_cast<xAOD::CaloClusterContainer*> (cont); // Get CaloCluster container
36  if(clust) return setClustersToEMScale(*clust);
37  return StatusCode::FAILURE;
38 }
39 
40 
ClusterAtEMScaleTool::~ClusterAtEMScaleTool
~ClusterAtEMScaleTool()
xAOD::CaloCluster
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition: Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h:19
ClusterAtEMScaleTool::initialize
StatusCode initialize()
Dummy implementation of the initialisation function.
Definition: ClusterAtEMScaleTool.cxx:15
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ClusterAtEMScaleTool::process_impl
StatusCode process_impl(xAOD::IParticleContainer *cont) const
Definition: ClusterAtEMScaleTool.cxx:34
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
ClusterAtEMScaleTool::ClusterAtEMScaleTool
ClusterAtEMScaleTool(const std::string &name)
Definition: ClusterAtEMScaleTool.cxx:11
ClusterAtEMScaleTool.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
JetConstituentModifierBase
Definition: JetConstituentModifierBase.h:22
ClusterAtEMScaleTool::setClustersToEMScale
StatusCode setClustersToEMScale(xAOD::CaloClusterContainer &cont) const
Definition: ClusterAtEMScaleTool.cxx:24
JetConstituentModifierBase::m_inputType
unsigned int m_inputType
Definition: JetConstituentModifierBase.h:60
dq_make_web_display.cl
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Definition: dq_make_web_display.py:26