ATLAS Offline Software
Loading...
Searching...
No Matches
egammaTopoClusterCopier.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef EGAMMAALGS_EGAMMATOPOCLUSTERCOPIER_H
6#define EGAMMAALGS_EGAMMATOPOCLUSTERCOPIER_H
7
9
14
15#include "GaudiKernel/SystemOfUnits.h"
16
17#include <Gaudi/Accumulators.h>
18
43
44public:
45
46 egammaTopoClusterCopier(const std::string& name, ISvcLocator* pSvcLocator);
47
48 virtual StatusCode initialize() override final;
49 virtual StatusCode execute(const EventContext& ctx) const override final;
50 virtual StatusCode finalize() override final;
51
52private:
53
55 this,
56 "InputTopoCollection",
57 "CaloTopoClusters",
58 "input topocluster collection"
59 };
60
62 this,
63 "TopoShallow_doNotConfig",
64 "",
65 "Shallow copy of input collection that allows properties to be modified"
66 };
67
69 this,
70 "OutputTopoCollection",
71 "egammaTopoCluster",
72 "View container of selected topoclusters"
73 };
74
76 this,
77 "OutputFwdTopoCollection",
78 "",
79 "View container of selected fwd topoclusters"
80 };
81
82 Gaudi::Property<float> m_etaCut {
83 this,
84 "EtaCut",
85 2.6,
86 "maximum |eta| of selected clusters"
87 };
88
89 Gaudi::Property<double> m_fwdEtaCut {
90 this,
91 "fwdEtaCut",
92 2.5,
93 "minimum |eta| of selected fwd clusters"
94 };
95
96 Gaudi::Property<float> m_ECut {
97 this,
98 "ECut",
99 700,
100 "minimum EM energy of selected clusters"
101 };
102
103 Gaudi::Property<double> m_fwdETCut {
104 this,
105 "fwdETCut",
106 5. * Gaudi::Units::GeV,
107 "Fwd ET cut"
108 };
109
110 Gaudi::Property<float> m_EMFracCut {
111 this,
112 "EMFracCut",
113 0.5,
114 "mimimum EM fraction of selected clusters"
115 };
116
118 Gaudi::Property<bool> m_hasITk {
119 this,
120 "hasITk",
121 false,
122 "Boolean to do track matching"
123 };
124
127
128 mutable Gaudi::Accumulators::Counter<> m_AllClusters {};
129 mutable Gaudi::Accumulators::Counter<> m_CentralPassPreSelection {};
130 mutable Gaudi::Accumulators::Counter<> m_CentralPassSelection {};
131 mutable Gaudi::Accumulators::Counter<> m_FwdPassPreSelection {};
132 mutable Gaudi::Accumulators::Counter<> m_FwdPassSelection {};
133 mutable Gaudi::Accumulators::Counter<> m_SharedPassPreSelection {};
134 mutable Gaudi::Accumulators::Counter<> m_SharedPassSelection {};
135};
136
137#endif // EGAMMATOOLS_EMCLUSTERTOOL_H
138
DataVector adapter that acts like it holds const pointers.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
Gaudi::Accumulators::Counter m_FwdPassPreSelection
SG::WriteHandleKey< ConstDataVector< xAOD::CaloClusterContainer > > m_outputFwdTopoCollection
Gaudi::Accumulators::Counter m_AllClusters
Gaudi::Property< float > m_etaCut
Gaudi::Accumulators::Counter m_SharedPassSelection
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_inputTopoCollection
bool m_doForwardClusters
Private member flag to copy forward clusters.
Gaudi::Property< double > m_fwdETCut
Gaudi::Accumulators::Counter m_SharedPassPreSelection
virtual StatusCode initialize() override final
Gaudi::Property< bool > m_hasITk
Private member flag to do the track matching.
SG::WriteHandleKey< xAOD::CaloClusterContainer > m_outputTopoCollectionShallow
Gaudi::Accumulators::Counter m_CentralPassPreSelection
Gaudi::Accumulators::Counter m_FwdPassSelection
SG::WriteHandleKey< ConstDataVector< xAOD::CaloClusterContainer > > m_outputTopoCollection
Gaudi::Property< double > m_fwdEtaCut
virtual StatusCode finalize() override final
Gaudi::Accumulators::Counter m_CentralPassSelection
Gaudi::Property< float > m_ECut
virtual StatusCode execute(const EventContext &ctx) const override final
Gaudi::Property< float > m_EMFracCut
egammaTopoClusterCopier(const std::string &name, ISvcLocator *pSvcLocator)