ATLAS Offline Software
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 
33 
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
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
54  bool m_copyCells;
56  float m_etCut;
58 
59 };
60 
61 #endif
62 
63 
64 
65 
66 
67 
68 
69 
70 
CaloClusterCopier::execute
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *) const override
Execute on an entire collection of clusters.
Definition: CaloClusterCopier.cxx:66
xAOD::CaloCluster_v1::ClusterSize
ClusterSize
Enumeration to identify different cluster sizes.
Definition: CaloCluster_v1.h:86
CaloClusterCopier::~CaloClusterCopier
virtual ~CaloClusterCopier() override
CaloClusterCopier::CaloClusterCopier
CaloClusterCopier(const std::string &type, const std::string &name, const IInterface *parent)
Definition: CaloClusterCopier.cxx:28
CaloClusterCollectionProcessor::execute
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *collection) const =0
Execute on an entire collection of clusters.
CaloClusterCopier::m_clustersKey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clustersKey
Definition: CaloClusterCopier.h:71
CaloClusterCollectionProcessor
Definition: CaloClusterCollectionProcessor.h:32
SG::ReadHandleKey< xAOD::CaloClusterContainer >
CaloClusterCopier::m_etCut
float m_etCut
Definition: CaloClusterCopier.h:74
CaloClusterCopier
Definition: CaloClusterCopier.h:34
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
CaloClusterCopier::initialize
virtual StatusCode initialize() override
Definition: CaloClusterCopier.cxx:48
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CaloClusterCopier::m_clusterSize
xAOD::CaloCluster::ClusterSize m_clusterSize
Definition: CaloClusterCopier.h:75
CaloClusterCopier::m_copyCells
bool m_copyCells
Definition: CaloClusterCopier.h:72
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
CaloClusterCopier::m_useClusterPosition
bool m_useClusterPosition
Definition: CaloClusterCopier.h:73
CaloClusterCopier::getClusterSize
void getClusterSize()
Definition: CaloClusterCopier.cxx:114
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
CaloClusterCollectionProcessor.h
Base class for cluster processing tools called from CaloClusterMaker.
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
AthAlgTool
Definition: AthAlgTool.h:26