ATLAS Offline Software
Public Member Functions | List of all members
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 (const EventContext &ctx, xAOD::CaloClusterContainer *collection) const=0
 Execute on an entire collection of clusters. More...
 
virtual StatusCode execute (xAOD::CaloClusterContainer *collection) final
 Execute on an entire collection of clusters. More...
 

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/3]

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 }

◆ execute() [2/3]

virtual StatusCode CaloClusterCollectionProcessor::execute

Execute on an entire collection of clusters.

Parameters
collectionThe container of clusters. param ctx The event context.

◆ execute() [3/3]

virtual StatusCode CaloClusterCollectionProcessor::execute
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  }

The documentation for this class was generated from the following files:
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:62
CaloClusterStoreRawProperties::execute
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *cluster_collection) const override
Definition: CaloClusterStoreRawProperties.cxx:10