ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloUtils
CaloUtils
CaloClusterStoreHelper.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
//Dear emacs, this is -*-c++-*-
6
#ifndef CALOUTILS_CALOCLUSTERSTOREHELPER_H
7
#define CALOUTILS_CALOCLUSTERSTOREHELPER_H
8
9
#include "GaudiKernel/MsgStream.h"
10
#include "GaudiKernel/StatusCode.h"
11
#include "
xAODCaloEvent/CaloClusterContainer.h
"
12
#include "
CaloEvent/CaloClusterCellLinkContainer.h
"
13
#include "
StoreGate/WriteHandle.h
"
14
#include "AthLinks/DataLink.h"
15
#include <memory>
16
17
class
CaloCellContainer
;
18
class
StoreGateSvc
;
19
20
class
CaloClusterStoreHelper
{
21
public
:
22
24
// Make Cluster //
26
32
static
std::unique_ptr<xAOD::CaloCluster>
makeCluster
(
const
CaloCellContainer
* cellCont);
33
39
static
std::unique_ptr<xAOD::CaloCluster>
makeCluster
(
const
DataLink<CaloCellContainer>
& cellCont);
40
50
static
std::unique_ptr<xAOD::CaloCluster>
makeCluster
(
const
CaloCellContainer
* cellCont,
51
const
double
eta0,
const
double
phi0,
52
const
xAOD::CaloCluster_v1::ClusterSize
clusterSize);
53
54
61
62
static
xAOD::CaloCluster
*
makeCluster
(
xAOD::CaloClusterContainer
* cont,
63
const
CaloCellContainer
* cellCont);
64
65
72
73
static
xAOD::CaloCluster
*
makeCluster
(
xAOD::CaloClusterContainer
* cont,
74
const
DataLink<CaloCellContainer>
& cellCont);
75
76
82
static
StatusCode
AddContainerWriteHandle
(
SG::WriteHandle<xAOD::CaloClusterContainer>
&clusColl);
83
85
static
void
finalizeClusters
(
86
const
EventContext& ctx,
87
SG::WriteHandle<xAOD::CaloClusterContainer>
& outClusterContainer,
88
SG::WriteHandle<CaloClusterCellLinkContainer>
& outClusterContainerCellLink);
89
95
//Moved to here from CaloRunClusterCorrection
96
static
void
copyContainer
(
const
xAOD::CaloClusterContainer
* oldColl,
xAOD::CaloClusterContainer
* newColl);
97
};
98
99
#endif
CaloClusterCellLinkContainer.h
CaloClusterContainer.h
WriteHandle.h
Handle class for recording to StoreGate.
CaloCellContainer
Container class for CaloCell.
Definition
CaloCellContainer.h:55
CaloClusterStoreHelper
Definition
CaloClusterStoreHelper.h:20
CaloClusterStoreHelper::makeCluster
static std::unique_ptr< xAOD::CaloCluster > makeCluster(const CaloCellContainer *cellCont)
Creates a valid CaloCluster with a private Aux-Store and CellLink container.
Definition
CaloClusterStoreHelper.cxx:12
CaloClusterStoreHelper::finalizeClusters
static void finalizeClusters(const EventContext &ctx, SG::WriteHandle< xAOD::CaloClusterContainer > &outClusterContainer, SG::WriteHandle< CaloClusterCellLinkContainer > &outClusterContainerCellLink)
Finalize clusters (move CaloClusterCellLink to a separate container).
Definition
CaloClusterStoreHelper.cxx:63
CaloClusterStoreHelper::copyContainer
static void copyContainer(const xAOD::CaloClusterContainer *oldColl, xAOD::CaloClusterContainer *newColl)
Deep copy of a cluster container.
Definition
CaloClusterStoreHelper.cxx:74
CaloClusterStoreHelper::AddContainerWriteHandle
static StatusCode AddContainerWriteHandle(SG::WriteHandle< xAOD::CaloClusterContainer > &clusColl)
Creates a new xAOD::CaloClusterContainer in the given WriteHandle + CaloClusterAuxContainer and recor...
Definition
CaloClusterStoreHelper.cxx:52
DataLink
Object reference supporting deferred reading from StoreGate.
Definition
AthLinks/DataLink.h:96
SG::WriteHandle
Definition
StoreGate/StoreGate/WriteHandle.h:71
StoreGateSvc
The Athena Transient Store API.
Definition
StoreGateSvc.h:120
xAOD::CaloCluster_v1::ClusterSize
ClusterSize
Enumeration to identify different cluster sizes.
Definition
CaloCluster_v1.h:89
xAOD::CaloCluster
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h:19
xAOD::CaloClusterContainer
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloClusterContainer.h:17
Generated on
for ATLAS Offline Software by
1.17.0