Loading [MathJax]/jax/input/TeX/config.js
 |
ATLAS Offline Software
|
Algorithm which creates new brem-refitted tracks.
More...
#include <EMBremCollectionBuilder.h>
|
| EMBremCollectionBuilder (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual StatusCode | initialize () override final |
|
virtual StatusCode | finalize () override final |
|
virtual StatusCode | execute (const EventContext &ctx) const override final |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual bool | isClonable () const override |
| Specify if the algorithm is clonable. More...
|
|
virtual unsigned int | cardinality () const override |
| Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
|
|
virtual StatusCode | sysExecute (const EventContext &ctx) override |
| Execute an algorithm. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
virtual bool | filterPassed (const EventContext &ctx) const |
|
virtual void | setFilterPassed (bool state, const EventContext &ctx) const |
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
StatusCode | refitTracks (const EventContext &ctx, const std::vector< const xAOD::TrackParticle * > &input, std::vector< TrackWithIndex > &refitted, std::vector< TrackWithIndex > &failedfit) const |
|
StatusCode | createCollections (const EventContext &ctx, std::vector< TrackWithIndex > &refitted, std::vector< TrackWithIndex > &failedfit, std::vector< TrackWithIndex > &trtAlone, TrackCollection *finalTracks, xAOD::TrackParticleContainer *finalTrkPartContainer, const xAOD::TrackParticleContainer *inputTrkPartContainer) const |
|
StatusCode | createNew (const EventContext &ctx, TrackWithIndex &Info, TrackCollection *finalTracks, xAOD::TrackParticleContainer *finalTrkPartContainer, const xAOD::TrackParticleContainer *inputTrkPartContainer, bool isRefitted) const |
|
void | copyOverInfo (xAOD::TrackParticle &created, const xAOD::TrackParticle &original, bool isRefitted) const |
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
|
Gaudi::Property< bool > | m_doTruth { this, "DoTruth", false, "do truth" } |
| Option to do truth. More...
|
|
Gaudi::Property< bool > | m_doSCT { this, "useSCT", true, "do SCT" } |
| Option to copy SCT holes estimation. More...
|
|
Gaudi::Property< bool > | m_doPix { this, "usePixel", true, "do Pix" } |
| Option to copy pixel holes estimation. More...
|
|
Gaudi::Property< bool > | m_doTRT { this, "useTRT", true, "do TRT" } |
| Option to copy TRT holes estimation. More...
|
|
Gaudi::Property< bool > | m_doSlimTrkTracks |
| Option to slim the Trk::Tracks. More...
|
|
Gaudi::Property< bool > | m_doHGTD { this, "useHGTD", false, "do HGTD" } |
| Option to copy HGTD time to new gsf tracks. More...
|
|
Gaudi::Property< int > | m_MinNoSiHits |
| @Cut on minimum silicon hits More...
|
|
ToolHandle< IegammaTrkRefitterTool > | m_trkRefitTool |
| The track refitter. More...
|
|
ToolHandle< Trk::ITrackParticleCreatorTool > | m_particleCreatorTool |
| Tool to create track particle. More...
|
|
ToolHandle< Trk::ITrackSlimmingTool > | m_slimTool |
| Tool to slim tracks
More...
|
|
SG::ReadHandleKey< xAOD::TrackParticleContainer > | m_trackParticleContainerKey |
|
SG::ReadHandleKey< xAOD::TrackParticleContainer > | m_selectedTrackParticleContainerKey |
| Names of input output collections. More...
|
|
SG::WriteHandleKey< xAOD::TrackParticleContainer > | m_OutputTrkPartContainerKey |
|
SG::WriteHandleKey< TrackCollection > | m_OutputTrackContainerKey |
|
std::atomic_uint | m_FailedFitTracks { 0 } |
|
std::atomic_uint | m_RefittedTracks { 0 } |
|
std::atomic_uint | m_FailedSiliconRequirFit { 0 } |
|
DataObjIDColl | m_extendedExtraObjects |
| Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
|
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
Algorithm which creates new brem-refitted tracks.
- Author
- Christos Anastopoulos
-
Anthony Morley
Input containers:
- TrackParticleContainerName (default=InDetTrackParticles): all the track particles
- SelectedTrackParticleContainerName (default=egammaSelectedTrackParticles): selected track particle to be refitted
Output continers:
- OutputTrkPartContainerName (default=GSFTrackParticles): refitted track particle
- OutputTrackContainerName (default=GSFTracks): refitted slimmed tracks
Only tracks with a minimum number of Si-hits (minNoSiHits) are refitted. The refitted Trk::Tracks, and "copies" of the selected but not refitted Trk:;Tracks (i.e TRT alone), are saved in the output containers.
The GSF refitting can be done only when the full xAOD::Track is available (e.g. not in standard AOD). The refitting is delegated to a tool implementing the IegammaTrkRefitterTool interface, configured with the TrackRefitTool property (by default ElectronRefitterTool).
The final track particles are created from the Trk::Tracks (refitted or copied) with a tool implementing the Trk::ITrackParticleCreatorTool interface configured with the property TrackParticleCreatorTool (by default TrackParticleCreatorTool). During the above summary creation we prefer to avoid the so called hole-search so we copy over this information for Pixel, SCT, TRT according to the property usePixel, useSCT, useTRT.
Truth information is copied from the original xAOD::TrackParticle. The Trk::Tracks (refitted or copied) are saved after slimming with a tool implementing the Trk::ITrackSlimmingTool interface, configurable with the TrackSlimmingTool property (by default TrkTrackSlimmingTool).
Definition at line 70 of file EMBremCollectionBuilder.h.
◆ StoreGateSvc_t
◆ EMBremCollectionBuilder()
EMBremCollectionBuilder::EMBremCollectionBuilder |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ cardinality()
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
Override this to return 0 for reentrant algorithms.
Override this to return 0 for reentrant algorithms.
Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.
◆ copyOverInfo()
◆ createCollections()
Definition at line 183 of file EMBremCollectionBuilder.cxx.
194 for (
auto& trk : refitted) {
198 finalTrkPartContainer,
199 inputTrkPartContainer,
203 for (
auto& trk : failedfit) {
207 finalTrkPartContainer,
208 inputTrkPartContainer,
212 for (
auto& trk : trtAlone) {
216 finalTrkPartContainer,
217 inputTrkPartContainer,
220 return StatusCode::SUCCESS;
◆ createNew()
Definition at line 224 of file EMBremCollectionBuilder.cxx.
235 ctx, *(trk_info.track), finalTrkPartContainer,
nullptr,
xAOD::electron);
239 "Could not create TrackParticle!!! for Track: " << *(trk_info.track));
240 return StatusCode::SUCCESS;
242 size_t origIndex = trk_info.origIndex;
248 tP(
"originalTrackParticle");
250 *inputTrkPartContainer, origIndex, ctx);
251 tP(*aParticle) = linkToOriginal;
254 auto rtsos = trk_info.track->trackStateOnSurfaces()->rbegin();
255 for (; rtsos != trk_info.track->trackStateOnSurfaces()->rend(); ++rtsos) {
257 (*rtsos)->trackParameters() !=
nullptr &&
258 (*rtsos)->measurementOnTrack() !=
nullptr &&
259 !(*rtsos)->measurementOnTrack()->type(
261 QoverPLast = (*rtsos)->trackParameters()->parameters()[
Trk::qOverP];
266 QoverPLM(*aParticle) = QoverPLast;
280 finalTracks->
push_back(std::move(trk_info.track));
282 *finalTracks, finalTracks->
size() - 1, ctx);
284 return StatusCode::SUCCESS;
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode EMBremCollectionBuilder::execute |
( |
const EventContext & |
ctx | ) |
const |
|
finaloverridevirtual |
Definition at line 68 of file EMBremCollectionBuilder.cxx.
80 ATH_CHECK(selectedTrackParticles.isValid());
87 std::make_unique<xAOD::TrackParticleContainer>(),
88 std::make_unique<xAOD::TrackParticleAuxContainer>()));
93 ATH_CHECK(finalTracks.record(std::make_unique<TrackCollection>()));
100 std::vector<const xAOD::TrackParticle*> siliconTrkTracks;
101 siliconTrkTracks.reserve(16);
102 std::vector<TrackWithIndex> trtAloneTrkTracks;
103 trtAloneTrkTracks.reserve(8);
106 ATH_CHECK(trackParticle->trackLink().isValid());
107 const Trk::Track* trktrack = trackParticle->track();
113 siliconTrkTracks.push_back(trackParticle);
116 trtAloneTrkTracks.emplace_back(std::make_unique<Trk::Track>(*trktrack),
117 trackParticle->index());
122 std::vector<TrackWithIndex> refitted;
123 refitted.reserve(siliconTrkTracks.size());
124 std::vector<TrackWithIndex> failedfit;
136 const size_t refittedCount = refitted.size();
137 const size_t failedCount = failedfit.size();
138 const size_t trtCount = trtAloneTrkTracks.size();
139 const size_t totalCount = refittedCount + failedCount + trtCount;
142 cPtrTracks->
reserve(totalCount);
143 cPtrTrkPart->
reserve(totalCount);
157 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.
◆ filterPassed()
◆ finalize()
virtual StatusCode EMBremCollectionBuilder::finalize |
( |
| ) |
|
|
finaloverridevirtual |
◆ initialize()
StatusCode EMBremCollectionBuilder::initialize |
( |
| ) |
|
|
finaloverridevirtual |
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ isClonable()
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ refitTracks()
Definition at line 161 of file EMBremCollectionBuilder.cxx.
171 if (
status == StatusCode::SUCCESS) {
173 refitted.emplace_back(std::move(cache.refittedTrack), in->index());
176 failedfit.emplace_back(std::make_unique<Trk::Track>(*
track), in->index());
179 return StatusCode::SUCCESS;
◆ renounce()
◆ renounceArray()
◆ setFilterPassed()
◆ sysExecute()
Execute an algorithm.
We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.
Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.
◆ sysInitialize()
Override sysInitialize.
Override sysInitialize from the base class.
Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc
Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc
Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.
Reimplemented in InputMakerBase, and HypoBase.
Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.
110 if (
sc.isFailure()) {
118 if ( cs.retrieve().isFailure() ) {
120 return StatusCode::SUCCESS;
122 if (cs->regHandle(
this,*
h).isFailure()) {
123 sc = StatusCode::FAILURE;
124 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_detStore
◆ m_doHGTD
Gaudi::Property<bool> EMBremCollectionBuilder::m_doHGTD { this, "useHGTD", false, "do HGTD" } |
|
private |
◆ m_doPix
Gaudi::Property<bool> EMBremCollectionBuilder::m_doPix { this, "usePixel", true, "do Pix" } |
|
private |
◆ m_doSCT
Gaudi::Property<bool> EMBremCollectionBuilder::m_doSCT { this, "useSCT", true, "do SCT" } |
|
private |
◆ m_doSlimTrkTracks
Gaudi::Property<bool> EMBremCollectionBuilder::m_doSlimTrkTracks |
|
private |
Initial value:{ this,
"slimTrkTracks",
true,
"Slim the GSF Trk::Tracks" }
Option to slim the Trk::Tracks.
Definition at line 142 of file EMBremCollectionBuilder.h.
◆ m_doTRT
Gaudi::Property<bool> EMBremCollectionBuilder::m_doTRT { this, "useTRT", true, "do TRT" } |
|
private |
◆ m_doTruth
Gaudi::Property<bool> EMBremCollectionBuilder::m_doTruth { this, "DoTruth", false, "do truth" } |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 114 of file AthCommonReentrantAlgorithm.h.
◆ m_FailedFitTracks
std::atomic_uint EMBremCollectionBuilder::m_FailedFitTracks { 0 } |
|
mutableprivate |
◆ m_FailedSiliconRequirFit
std::atomic_uint EMBremCollectionBuilder::m_FailedSiliconRequirFit { 0 } |
|
mutableprivate |
◆ m_MinNoSiHits
Gaudi::Property<int> EMBremCollectionBuilder::m_MinNoSiHits |
|
private |
Initial value:{ this,
"minNoSiHits",
4,
"Minimum number of silicon hits on track "
"before it is allowed to be refitted" }
@Cut on minimum silicon hits
Definition at line 151 of file EMBremCollectionBuilder.h.
◆ m_OutputTrackContainerKey
Initial value:{
this,
"OutputTrackContainerName",
"GSFTracks",
"Output GSF Trk::Tracks"
}
Definition at line 198 of file EMBremCollectionBuilder.h.
◆ m_OutputTrkPartContainerKey
Initial value:{
this,
"OutputTrkPartContainerName",
"GSFTrackParticles",
"Output GSF TrackParticles"
}
Definition at line 191 of file EMBremCollectionBuilder.h.
◆ m_particleCreatorTool
Initial value:{
this,
"TrackParticleCreatorTool",
"TrackParticleCreatorTool",
"TrackParticle creator tool"
}
Tool to create track particle.
Definition at line 164 of file EMBremCollectionBuilder.h.
◆ m_RefittedTracks
std::atomic_uint EMBremCollectionBuilder::m_RefittedTracks { 0 } |
|
mutableprivate |
◆ m_selectedTrackParticleContainerKey
Initial value:{ this,
"SelectedTrackParticleContainerName",
"egammaSelectedTrackParticles",
"Input of Selected TrackParticles" }
Names of input output collections.
Definition at line 186 of file EMBremCollectionBuilder.h.
◆ m_slimTool
Initial value:{ this,
"TrackSlimmingTool",
"TrkTrackSlimmingTool",
"Track slimming tool" }
Tool to slim tracks
Definition at line 172 of file EMBremCollectionBuilder.h.
◆ m_trackParticleContainerKey
Initial value:{
this,
"TrackParticleContainerName",
"InDetTrackParticles",
"Input InDet TrackParticles"
}
Definition at line 177 of file EMBremCollectionBuilder.h.
◆ m_trkRefitTool
Initial value:{ this,
"TrackRefitTool",
"ElectronRefitterTool",
"Track refitter tool" }
The track refitter.
Definition at line 158 of file EMBremCollectionBuilder.h.
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
StatusCode createCollections(const EventContext &ctx, std::vector< TrackWithIndex > &refitted, std::vector< TrackWithIndex > &failedfit, std::vector< TrackWithIndex > &trtAlone, TrackCollection *finalTracks, xAOD::TrackParticleContainer *finalTrkPartContainer, const xAOD::TrackParticleContainer *inputTrkPartContainer) const
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackParticleContainerKey
Gaudi::Property< bool > m_doSlimTrkTracks
Option to slim the Trk::Tracks.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_selectedTrackParticleContainerKey
Names of input output collections.
Helper class to provide type-safe access to aux data.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
void setTrackLink(const ElementLink< TrackCollection > &track)
Set the link to the original track.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
ToolHandle< IegammaTrkRefitterTool > m_trkRefitTool
The track refitter.
std::vector< SG::VarHandleKeyArray * > m_vhka
Gaudi::Property< int > m_MinNoSiHits
@Cut on minimum silicon hits
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
virtual void setOwner(IDataHandleHolder *o)=0
An algorithm that can be simultaneously executed in multiple threads.
StatusCode createNew(const EventContext &ctx, TrackWithIndex &Info, TrackCollection *finalTracks, xAOD::TrackParticleContainer *finalTrkPartContainer, const xAOD::TrackParticleContainer *inputTrkPartContainer, bool isRefitted) const
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_OutputTrkPartContainerKey
Gaudi::Property< bool > m_doHGTD
Option to copy HGTD time to new gsf tracks.
Gaudi::Property< bool > m_doSCT
Option to copy SCT holes estimation.
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
ToolHandle< Trk::ITrackSlimmingTool > m_slimTool
Tool to slim tracks
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
std::atomic_uint m_FailedSiliconRequirFit
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
SG::WriteHandleKey< TrackCollection > m_OutputTrackContainerKey
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
int summaryValueInt(const xAOD::TrackParticle &tp, const xAOD::SummaryType &info, int deflt=-999)
return the summary value for a TrackParticle or default value (-999) (to be used mostly in python whe...
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Gaudi::Property< bool > m_doTRT
Option to copy TRT holes estimation.
std::atomic_uint m_RefittedTracks
value_type push_back(value_type pElem)
Add an element to the end of the collection.
Gaudi::Property< bool > m_doTruth
Option to do truth.
void copy(xAOD::TrackParticle &created, const xAOD::TrackParticle &original, const egammaCopyTrackParticleInfo::ToCopy &toCopy)
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
virtual StatusCode sysInitialize() override
Override sysInitialize.
@ numberOfSCTHits
number of hits in SCT [unit8_t].
@ PseudoMeasurementOnTrack
std::atomic_uint m_FailedFitTracks
Class describing a TrackParticle.
const T * at(size_type n) const
Access an element, as an rvalue.
StatusCode refitTracks(const EventContext &ctx, const std::vector< const xAOD::TrackParticle * > &input, std::vector< TrackWithIndex > &refitted, std::vector< TrackWithIndex > &failedfit) const
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
ToolHandle< Trk::ITrackParticleCreatorTool > m_particleCreatorTool
Tool to create track particle.
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
@ Measurement
This is a measurement, and will at least contain a Trk::MeasurementBase.
Gaudi::Property< bool > m_doPix
Option to copy pixel holes estimation.