ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloRec
src
CaloClusterCopier.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
//Dear emacs, this is -*-c++-*-
6
#ifndef CALOREC_CALOCLUSTERCOPIER_H
7
#define CALOREC_CALOCLUSTERCOPIER_H
8
9
/********************************************************************
10
11
NAME: CaloClusterCopier.h
12
PACKAGE: offline/Calorimeter/CaloRec
13
14
AUTHORS: D. Rousseau, copied from LArClusterCopier from Hong
15
CREATED: September 1005
16
17
PURPOSE: Copy a CaloClusterContainer, and its Clusters, into another
18
CaloClusterContainer
19
20
Input: Input ClusterContainer
21
Output: new Cluster container
22
Parameters:
23
24
Updated: May 5, 2004 (Sven Menke)
25
base class changed from algo to tool
26
27
********************************************************************/
28
29
// cluster builder with simple Algorithm (fixed cone around seed)
30
31
#include "
CaloUtils/CaloClusterCollectionProcessor.h
"
32
#include "
AthenaBaseComps/AthAlgTool.h
"
33
34
class
CaloClusterCopier
:
public
AthAlgTool
,
virtual
public
CaloClusterCollectionProcessor
{
35
public
:
36
37
// constructor
38
CaloClusterCopier
(
const
std::string&
type
,
const
std::string& name,
39
const
IInterface* parent);
40
// destructor
41
virtual
~CaloClusterCopier
()
override
;
42
43
// Algorithm virtual methods
44
using
CaloClusterCollectionProcessor::execute
;
45
virtual
StatusCode
initialize
()
override
;
46
virtual
StatusCode
execute
(
const
EventContext& ctx,
47
xAOD::CaloClusterContainer
* )
const override
;
48
49
void
getClusterSize
();
50
51
private
:
52
// properties
53
SG::ReadHandleKey<xAOD::CaloClusterContainer>
m_clustersKey
;
54
bool
m_copyCells
;
55
bool
m_useClusterPosition
;
56
float
m_etCut
;
57
xAOD::CaloCluster::ClusterSize
m_clusterSize
;
58
59
};
60
61
#endif
62
63
64
65
66
67
68
69
70
AthAlgTool.h
CaloClusterCollectionProcessor.h
Base class for cluster processing tools called from CaloClusterMaker.
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
CaloClusterCollectionProcessor
Definition
CaloClusterCollectionProcessor.h:29
CaloClusterCollectionProcessor::execute
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *collection) const =0
Execute on an entire collection of clusters.
CaloClusterCopier::execute
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *) const override
Execute on an entire collection of clusters.
Definition
CaloClusterCopier.cxx:66
CaloClusterCopier::m_copyCells
bool m_copyCells
Definition
CaloClusterCopier.h:54
CaloClusterCopier::m_etCut
float m_etCut
Definition
CaloClusterCopier.h:56
CaloClusterCopier::m_useClusterPosition
bool m_useClusterPosition
Definition
CaloClusterCopier.h:55
CaloClusterCopier::getClusterSize
void getClusterSize()
Definition
CaloClusterCopier.cxx:114
CaloClusterCopier::CaloClusterCopier
CaloClusterCopier(const std::string &type, const std::string &name, const IInterface *parent)
Definition
CaloClusterCopier.cxx:28
CaloClusterCopier::m_clustersKey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clustersKey
Definition
CaloClusterCopier.h:53
CaloClusterCopier::initialize
virtual StatusCode initialize() override
Definition
CaloClusterCopier.cxx:48
CaloClusterCopier::m_clusterSize
xAOD::CaloCluster::ClusterSize m_clusterSize
Definition
CaloClusterCopier.h:57
CaloClusterCopier::~CaloClusterCopier
virtual ~CaloClusterCopier() override
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
xAOD::CaloCluster_v1::ClusterSize
ClusterSize
Enumeration to identify different cluster sizes.
Definition
CaloCluster_v1.h:89
xAOD::CaloClusterContainer
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloClusterContainer.h:17
type
Generated on
for ATLAS Offline Software by
1.17.0