ATLAS Offline Software
CaloClusterStoreRawProperties.cxx
Go to the documentation of this file.
1 //
2 // Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 //
4 // Dear emacs, this is -*- c++ -*-
5 //
6 
8 
9 CaloClusterStoreRawProperties::CaloClusterStoreRawProperties(const std::string & type, const std::string & name, const IInterface * parent):
11 {
12  declareInterface<CaloClusterCollectionProcessor> (this);
13 }
14 
15 StatusCode CaloClusterStoreRawProperties::execute (const EventContext &, xAOD::CaloClusterContainer * cluster_collection) const
16 {
17  for (xAOD::CaloCluster* cluster : *cluster_collection)
18  {
19  cluster->setRawE(cluster->calE());
20  cluster->setRawEta(cluster->calEta());
21  cluster->setRawPhi(cluster->calPhi());
22  cluster->setRawM(cluster->calM());
23  }
24 
25  return StatusCode::SUCCESS;
26 
27 }
28 
CaloClusterStoreRawProperties.h
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
CaloClusterStoreRawProperties::CaloClusterStoreRawProperties
CaloClusterStoreRawProperties(const std::string &type, const std::string &name, const IInterface *parent)
Definition: CaloClusterStoreRawProperties.cxx:9
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
AthAlgTool
Definition: AthAlgTool.h:26
CaloClusterStoreRawProperties::execute
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *cluster_collection) const override
Execute on an entire collection of clusters.
Definition: CaloClusterStoreRawProperties.cxx:15