ATLAS Offline Software
Loading...
Searching...
No Matches
egammaSelectedTrackCopy.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_EGAMMASELECTEDTRACKCOPY_H
6#define EGAMMAALGS_EGAMMASELECTEDTRACKCOPY_H
7
9
11#include "GaudiKernel/EventContext.h"
12#include "GaudiKernel/ToolHandle.h"
17
19
25
27#include <Gaudi/Accumulators.h>
28
30
54{
55public:
57 egammaSelectedTrackCopy(const std::string& name, ISvcLocator* pSvcLocator);
58
59 virtual StatusCode initialize() override final;
60 virtual StatusCode finalize() override final;
61 virtual StatusCode execute(const EventContext& ctx) const override final;
62
65 bool selectTrack(const EventContext& ctx,
66 const xAOD::CaloCluster* cluster,
67 const xAOD::TrackParticle* track,
68 bool trkTRT,
70
73 this,
74 "ExtrapolationTool",
75 "EMExtrapolationTools",
76 "Extrapolation tool"
77 };
78
80 ToolHandle<IegammaCaloClusterSelector> m_egammaCaloClusterSelector {
81 this,
82 "egammaCaloClusterSelector",
83 "egammaCaloClusterSelector",
84 "Tool that makes the cluster selection"
85 };
86
89 this,
90 "ClusterContainerName",
91 "egammaTopoCluster",
92 "Input calo cluster for seeding"
93 };
94
97 this,
98 "FwdClusterContainerName",
99 "",
100 "Input calo cluster for seeding"
101 };
102
104 this,
105 "TrackParticleContainerName",
106 "InDetTrackParticles",
107 "Input TrackParticles to select from"
108 };
109
111 this,
112 "TrackParticleTimeDecoration",
113 "",
114 "Time assigned to this track"};
115
117 this,
118 "CaloDetDescrManager",
119 "CaloDetDescrManager",
120 "SG Key for CaloDetDescrManager in the Condition Store"
121 };
122
124 this,
125 "OutputTrkPartContainerName",
126 "egammaSelectedTrackParticles",
127 "Output selected TrackParticles"
128 };
129
131 Gaudi::Property<double> m_broadDeltaEta {
132 this,
133 "broadDeltaEta",
134 0.2,
135 "Value of broad cut for delta eta"
136 };
137
138 Gaudi::Property<double> m_broadDeltaPhi {
139 this,
140 "broadDeltaPhi",
141 0.3,
142 "Value of broad cut for delta phi"
143 };
144
146 Gaudi::Property<double> m_narrowDeltaEta{
147 this,
148 "narrowDeltaEta",
149 0.05,
150 "Value of narrow cut for delta eta"
151 };
152
153 Gaudi::Property<double> m_narrowDeltaPhi{
154 this,
155 "narrowDeltaPhi",
156 0.05,
157 "Value of narrow cut for delta phi"
158 };
159
160 Gaudi::Property<double> m_narrowDeltaPhiBrem{
161 this,
162 "narrowDeltaPhiBrem",
163 0.2,
164 "Value of the narrow cut for delta phi in the brem direction"
165 };
166
167 Gaudi::Property<double> m_narrowRescale{
168 this,
169 "narrowDeltaPhiRescale",
170 0.05,
171 "Value of the narrow cut for delta phi Rescale"
172 };
173
174 Gaudi::Property<double> m_narrowRescaleBrem{
175 this,
176 "narrowDeltaPhiRescaleBrem",
177 0.1,
178 "Value of the narrow cut for delta phi Rescale Brem"
179 };
180
182 Gaudi::Property<bool> m_doForwardTracks {
183 this,
184 "doFwdTracks",
185 false,
186 "Boolean to select tracks in the forward region"
187 };
188
189 mutable Gaudi::Accumulators::Counter<> m_AllClusters {};
190 mutable Gaudi::Accumulators::Counter<> m_AllFwdClusters {};
191 mutable Gaudi::Accumulators::Counter<> m_SelectedClusters {};
192 mutable Gaudi::Accumulators::Counter<> m_AllTracks {};
193 mutable Gaudi::Accumulators::Counter<> m_SelectedTracks {};
194 mutable Gaudi::Accumulators::Counter<> m_SelectedFwdTracks {};
195 mutable Gaudi::Accumulators::Counter<> m_AllSiTracks {};
196 mutable Gaudi::Accumulators::Counter<> m_SelectedSiTracks {};
197 mutable Gaudi::Accumulators::Counter<> m_AllTRTTracks {};
198 mutable Gaudi::Accumulators::Counter<> m_SelectedTRTTracks {};
199};
200#endif
201
Definition of CaloDetDescrManager.
DataVector adapter that acts like it holds const pointers.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
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.
Principal data class for CaloCell clusters.
This class provides the client interface for accessing the detector description information common to...
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
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_SelectedSiTracks
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloDetDescrMgrKey
Gaudi::Accumulators::Counter m_SelectedClusters
ToolHandle< IegammaCaloClusterSelector > m_egammaCaloClusterSelector
Tool to filter the calo clusters.
Gaudi::Accumulators::Counter m_AllFwdClusters
Gaudi::Property< double > m_narrowDeltaPhiBrem
Gaudi::Property< double > m_narrowDeltaPhi
virtual StatusCode initialize() override final
Gaudi::Accumulators::Counter m_SelectedFwdTracks
Gaudi::Accumulators::Counter m_AllSiTracks
Gaudi::Accumulators::Counter m_AllTracks
Gaudi::Accumulators::Counter m_AllClusters
Gaudi::Property< double > m_broadDeltaEta
Broad windows.
Gaudi::Property< double > m_narrowRescale
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_trackParticleTimeDecorKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackParticleContainerKey
Gaudi::Accumulators::Counter m_SelectedTRTTracks
Gaudi::Property< double > m_broadDeltaPhi
virtual StatusCode finalize() override final
virtual StatusCode execute(const EventContext &ctx) const override final
Gaudi::Property< bool > m_doForwardTracks
Private member flag to select forward tracks.
Gaudi::Accumulators::Counter m_SelectedTracks
ToolHandle< IEMExtrapolationTools > m_extrapolationTool
Tool for extrapolation.
SG::WriteHandleKey< ConstDataVector< xAOD::TrackParticleContainer > > m_OutputTrkPartContainerKey
Gaudi::Property< double > m_narrowRescaleBrem
bool selectTrack(const EventContext &ctx, const xAOD::CaloCluster *cluster, const xAOD::TrackParticle *track, bool trkTRT, const CaloDetDescrManager &caloDD) const
Broad track selection.
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_fwdClusterContainerKey
Names of forward input output collections.
Gaudi::Property< double > m_narrowDeltaEta
Narrow windows.
Gaudi::Accumulators::Counter m_AllTRTTracks
egammaSelectedTrackCopy(const std::string &name, ISvcLocator *pSvcLocator)
Default constructor.
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusterContainerKey
Names of input output collections.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
#define private