ATLAS Offline Software
Loading...
Searching...
No Matches
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
23#include <vector>
24
25
34{
35public:
36 using AthReentrantAlgorithm::AthReentrantAlgorithm;
37
38
42 virtual StatusCode initialize() override;
43
44
49 virtual StatusCode execute(const EventContext& ctx) const override;
50
51
52private:
56 StatusCode decodeSamplings();
57
58
60 StringProperty m_streamName
61 { this, "StreamName", "", "Name of the stream being thinned" };
62
65 { this, "Cells", "AllCalo", "Cell container to thin." };
66
69 { this, "Clusters", "", "Container of clusters for which cells should be saved." };
70
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
Definition of CaloDetDescrManager.
Property holding a SG store/key/clid from which a ReadHandle is made.
HandleKey object for adding thinning to an object.
An algorithm that can be simultaneously executed in multiple threads.
Thin calorimeter cells not associated with clusters.
std::vector< int > m_validSamplings
Decoded list of samplings.
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusters
Clusters to read.
SG::ThinningHandleKey< CaloClusterCellLinkContainer > m_clusterCellLinks
Calo Cell links for the clusters we keep cells for.
SG::ThinningHandleKey< CaloCellContainer > m_cells
Cell container to thin.
StringProperty m_streamName
Name of the stream being thinned.
virtual StatusCode initialize() override
Gaudi initialize method.
StatusCode decodeSamplings()
Decode the provided list of calorimeter samplings.
virtual StatusCode execute(const EventContext &ctx) const override
Execute the algorithm.
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Property holding a SG store/key/clid from which a ReadHandle is made.
HandleKey object for adding thinning to an object.