ATLAS Offline Software
Loading...
Searching...
No Matches
CaloClusterStoreRawProperties Class Reference

Stores the current (calibrated) cluster energies and coordinates as raw properties. More...

#include <CaloClusterStoreRawProperties.h>

Inheritance diagram for CaloClusterStoreRawProperties:
Collaboration diagram for CaloClusterStoreRawProperties:

Public Member Functions

virtual StatusCode execute (const EventContext &ctx, xAOD::CaloClusterContainer *cluster_collection) const override
virtual ~CaloClusterStoreRawProperties ()=default
virtual StatusCode execute (xAOD::CaloClusterContainer *collection) final
 Execute on an entire collection of clusters.

Detailed Description

Stores the current (calibrated) cluster energies and coordinates as raw properties.

Author
Nuno Fernandes nuno..nosp@m.dos..nosp@m.santo.nosp@m.s.fe.nosp@m.rnand.nosp@m.es@c.nosp@m.ern.c.nosp@m.h
Date
29 February 2024
Remarks
The standard CPU code does this in the cluster making algorithm, our GPU code optionally does this in the cluster importing tool, but instantiating the CPU code in a HybridClusterProcessor requires doing this if we want to run later stages of the reconstruction...

Definition at line 26 of file CaloClusterStoreRawProperties.h.

Constructor & Destructor Documentation

◆ ~CaloClusterStoreRawProperties()

virtual CaloClusterStoreRawProperties::~CaloClusterStoreRawProperties ( )
virtualdefault

Member Function Documentation

◆ execute() [1/2]

StatusCode CaloClusterStoreRawProperties::execute ( const EventContext & ctx,
xAOD::CaloClusterContainer * cluster_collection ) const
overridevirtual

Definition at line 10 of file CaloClusterStoreRawProperties.cxx.

11{
12 for (xAOD::CaloCluster* cluster : *cluster_collection)
13 {
14 cluster->setRawE(cluster->calE());
15 cluster->setRawEta(cluster->calEta());
16 cluster->setRawPhi(cluster->calPhi());
17 cluster->setRawM(cluster->calM());
18 }
19
20 return StatusCode::SUCCESS;
21
22}
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.

◆ execute() [2/2]

virtual StatusCode CaloClusterCollectionProcessor::execute ( xAOD::CaloClusterContainer * collection)
inlinefinal

Execute on an entire collection of clusters.

Parameters
collectionThe container of clusters. (deprecated)

Definition at line 50 of file CaloClusterCollectionProcessor.h.

51 {
52 return execute (Gaudi::Hive::currentContext(), collection);
53 }
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *cluster_collection) const override

The documentation for this class was generated from the following files: