ATLAS Offline Software
Loading...
Searching...
No Matches
ExpertTrackTimeFromSummaryTool.h
Go to the documentation of this file.
1
19
20#ifndef HGTD_EXPERTTRACKTIMEFROMSUMMARYTOOL_H
21#define HGTD_EXPERTTRACKTIMEFROMSUMMARYTOOL_H
22
25
27
28#include <cstdint>
29#include <string>
30#include <vector>
31
32namespace HGTD {
33
35 : public extends<AthAlgTool, IHGTD_ExpertTrackTimeAccessor> {
36
37public:
38 ExpertTrackTimeFromSummaryTool(const std::string&, const std::string&,
39 const IInterface*);
40
42
44 // for AthAlgTool interface
45 virtual StatusCode initialize() override final;
46
47 // for IHGTD_ExpertTrackTimeAccessor interface
48
49 virtual bool
50 expertHasTime(const xAOD::TrackParticle& track_particle) const override final;
51
52 virtual float
53 expertTime(const xAOD::TrackParticle& track_particle) const override final;
54
55 virtual float
56 expertTimeRes(const xAOD::TrackParticle& track_particle) const override final;
57
58 virtual float
59 fracPrimaryHits(const xAOD::TrackParticle& track_particle) const override final;
60
62 const xAOD::TrackParticle& track_particle) const override final;
63
65
73 int nHits(const xAOD::TrackParticle& track_particle) const;
74
79 int nPrimaryHits(const xAOD::TrackParticle& track_particle) const;
80
81 Gaudi::Property<bool> m_do_last_hit{this, "UseLastHitCut", true,
82 "Default value"};
83 Gaudi::Property<bool> m_do_min_nhits{this, "UseMinNHits", true,
84 "Default value"};
85 Gaudi::Property<float> m_min_eta{this, "MinEta", 3.5, "Default value"};
86 Gaudi::Property<float> m_max_eta{this, "MaxEta", 3.9, "Default value"};
87
93
94 // different shift distances for bitfield definition
95 const short m_comp_ptrn_sft = 8;
96 const short m_primes_ptrn_sft = 16;
97 const short m_holes_ptrn_sft = 12;
98};
99
100} // namespace HGTD
101
102#endif // HGTD_EXPERTTRACKTIMEFROMSUMMARYTOOL_H
Helper class to provide constant type-safe access to aux data.
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration.
virtual float fracPrimaryHits(const xAOD::TrackParticle &track_particle) const override final
virtual float expertTime(const xAOD::TrackParticle &track_particle) const override final
virtual StatusCode initialize() override final
int nHits(const xAOD::TrackParticle &track_particle) const
Number of HGTD hits that survived the time consistency check, decoded from the HGTD_summaryinfo bitfi...
virtual ~ExpertTrackTimeFromSummaryTool()=default
SG::ConstAccessor< std::vector< bool > > m_acc_perLayer_expectCluster
virtual bool expertHasTime(const xAOD::TrackParticle &track_particle) const override final
int nPrimaryHits(const xAOD::TrackParticle &track_particle) const
Number of HGTD hits associated to a primary particle, decoded from the HGTD_summaryinfo bitfield.
virtual float expertTimeRes(const xAOD::TrackParticle &track_particle) const override final
virtual int numberPotentialPrimaryHits(const xAOD::TrackParticle &track_particle) const override final
ExpertTrackTimeFromSummaryTool(const std::string &, const std::string &, const IInterface *)
Support class for PropertyMgr.
Definition Property.h:23
Helper class to provide constant type-safe access to aux data.
=============================================================================
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
#define private
Definition testRead.cxx:27