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-2022 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
StatusCode
finalizeClusters
(
SG::WriteHandle<CaloClusterCellLinkContainer>
&
h
,
86
xAOD::CaloClusterContainer
* pClusterColl);
87
88
static
void
finalizeClusters
(
89
const
EventContext& ctx,
90
SG::WriteHandle<xAOD::CaloClusterContainer>
& outClusterContainer,
91
SG::WriteHandle<CaloClusterCellLinkContainer>
& outClusterContainerCellLink);
92
98
//Moved to here from CaloRunClusterCorrection
99
static
void
copyContainer
(
const
xAOD::CaloClusterContainer
* oldColl,
xAOD::CaloClusterContainer
* newColl);
100
};
101
102
#endif
CaloClusterCellLinkContainer.h
CaloClusterContainer.h
WriteHandle.h
Handle class for recording to StoreGate.
h
Header file for AthHistogramAlgorithm.
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:13
CaloClusterStoreHelper::copyContainer
static void copyContainer(const xAOD::CaloClusterContainer *oldColl, xAOD::CaloClusterContainer *newColl)
Deep copy of a cluster container.
Definition
CaloClusterStoreHelper.cxx:91
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:53
CaloClusterStoreHelper::finalizeClusters
static StatusCode finalizeClusters(SG::WriteHandle< CaloClusterCellLinkContainer > &h, xAOD::CaloClusterContainer *pClusterColl)
Finalize clusters (move CaloClusterCellLink to a separate container).
Definition
CaloClusterStoreHelper.cxx:64
DataLink
Object reference supporting deferred reading from StoreGate.
Definition
AthLinks/DataLink.h:93
SG::WriteHandle
Definition
StoreGate/StoreGate/WriteHandle.h:73
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