ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloRec
src
CaloThinCellsByClusterAlg.h
Go to the documentation of this file.
1
// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
/*
3
* Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration.
4
*/
11
12
13
#ifndef CALOREC_CALOTHINCELLSBYCLUSTER_H
14
#define CALOREC_CALOTHINCELLSBYCLUSTER_H
15
16
17
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
18
#include "
CaloEvent/CaloCellContainer.h
"
19
#include "
xAODCaloEvent/CaloClusterContainer.h
"
20
#include "
StoreGate/ReadHandleKey.h
"
21
#include "
StoreGate/ThinningHandleKey.h
"
22
#include "
CaloDetDescr/CaloDetDescrManager.h
"
23
#include <vector>
24
25
33
class
CaloThinCellsByClusterAlg
:
public
AthReentrantAlgorithm
34
{
35
public
:
36
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
37
38
42
virtual
StatusCode
initialize
()
override
;
43
44
49
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
50
51
52
private
:
56
StatusCode
decodeSamplings
();
57
58
60
StringProperty
m_streamName
61
{
this
,
"StreamName"
,
""
,
"Name of the stream being thinned"
};
62
64
SG::ThinningHandleKey<CaloCellContainer>
m_cells
65
{
this
,
"Cells"
,
"AllCalo"
,
"Cell container to thin."
};
66
68
SG::ReadHandleKey<xAOD::CaloClusterContainer>
m_clusters
69
{
this
,
"Clusters"
,
""
,
"Container of clusters for which cells should be saved."
};
70
72
SG::ThinningHandleKey<CaloClusterCellLinkContainer>
m_clusterCellLinks
{
73
this
,
"CaloClusterCellLinks"
,
""
,
74
"Container of CaloClusterCellLinks corresponding to the clusters for which we save cells."
};
75
76
StringArrayProperty
m_samplingNames
77
{
this
,
"SamplingCellsName"
, {},
78
"List of names of samplings for which all cluster cells in a rectangular window should be saved"
};
79
80
SG::ReadCondHandleKey<CaloDetDescrManager>
m_caloMgrKey
{
this
,
"CaloDetDescrManager"
,
"CaloDetDescrManager"
};
81
83
std::vector<int>
m_validSamplings
;
84
};
85
86
87
#endif
// not CALOREC_CALOTHINCELLSBYCLUSTER_H
AthReentrantAlgorithm.h
CaloCellContainer.h
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CaloClusterContainer.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ThinningHandleKey.h
HandleKey object for adding thinning to an object.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
CaloThinCellsByClusterAlg
Thin calorimeter cells not associated with clusters.
Definition
CaloThinCellsByClusterAlg.h:34
CaloThinCellsByClusterAlg::m_validSamplings
std::vector< int > m_validSamplings
Decoded list of samplings.
Definition
CaloThinCellsByClusterAlg.h:83
CaloThinCellsByClusterAlg::m_clusters
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusters
Clusters to read.
Definition
CaloThinCellsByClusterAlg.h:69
CaloThinCellsByClusterAlg::m_clusterCellLinks
SG::ThinningHandleKey< CaloClusterCellLinkContainer > m_clusterCellLinks
Calo Cell links for the clusters we keep cells for.
Definition
CaloThinCellsByClusterAlg.h:72
CaloThinCellsByClusterAlg::m_cells
SG::ThinningHandleKey< CaloCellContainer > m_cells
Cell container to thin.
Definition
CaloThinCellsByClusterAlg.h:65
CaloThinCellsByClusterAlg::m_streamName
StringProperty m_streamName
Name of the stream being thinned.
Definition
CaloThinCellsByClusterAlg.h:61
CaloThinCellsByClusterAlg::initialize
virtual StatusCode initialize() override
Gaudi initialize method.
Definition
CaloThinCellsByClusterAlg.cxx:21
CaloThinCellsByClusterAlg::decodeSamplings
StatusCode decodeSamplings()
Decode the provided list of calorimeter samplings.
Definition
CaloThinCellsByClusterAlg.cxx:129
CaloThinCellsByClusterAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Execute the algorithm.
Definition
CaloThinCellsByClusterAlg.cxx:41
CaloThinCellsByClusterAlg::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition
CaloThinCellsByClusterAlg.h:80
CaloThinCellsByClusterAlg::m_samplingNames
StringArrayProperty m_samplingNames
Definition
CaloThinCellsByClusterAlg.h:77
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::ThinningHandleKey
HandleKey object for adding thinning to an object.
Definition
ThinningHandleKey.h:39
Generated on
for ATLAS Offline Software by
1.17.0