![]() |
ATLAS Offline Software
|
#include <ExpertTrackTimeFromClustersTool.h>
Classes | |
| struct | Hit |
Public Member Functions | |
| ExpertTrackTimeFromClustersTool (const std::string &, const std::string &, const IInterface *) | |
| virtual | ~ExpertTrackTimeFromClustersTool ()=default |
| virtual StatusCode | initialize () override final |
| virtual bool | expertHasTime (const xAOD::TrackParticle &track_particle) const override final |
| virtual float | expertTime (const xAOD::TrackParticle &track_particle) const override final |
| virtual float | expertTimeRes (const xAOD::TrackParticle &track_particle) const override final |
| virtual float | fracPrimaryHits (const xAOD::TrackParticle &track_particle) const override final |
| virtual int | numberPotentialPrimaryHits (const xAOD::TrackParticle &track_particle) const override final |
Private Types | |
| using | HitVec_t = std::vector<Hit> |
| using | FloatVec_t = std::vector<float> |
Private Member Functions | |
| int | nHits (const xAOD::TrackParticle &track_particle) const |
| Number of hits that were used to build the track time. | |
| int | nPrimaryHits (const xAOD::TrackParticle &track_particle) const |
| Number of hits used for the track time that were left by a primary particle. | |
| HitVec_t | getValidHits (const xAOD::TrackParticle &track_particle) const |
| Retrieve the hit information from the decorators and build a vector of hits. | |
| HitVec_t | getTimeCompatibleHits (const xAOD::TrackParticle &track_particle) const |
| Retrieve the hit information from the decorators and build a vector of hits for those hits that survive the time compatibility checks. | |
| TVector3 | getLastMeasurement (const xAOD::TrackParticle &track) const |
| In the samples used for HGTD studies the last hit on track in ITk is written to file and can be used for the cleaning procedure. | |
| bool | lastHitIsOnLastSurface (const xAOD::TrackParticle &track) const |
| Check wheather the last hit on track is on a surface close to HGTD. | |
| float | calculateMean (const HitVec_t &hits) const |
| Returns the arithmetic average mean of the hit times. | |
| bool | passesDeltaT (const HitVec_t &hits) const |
| Tests if a given set of exactly 2 Hit objects passes the set time difference cut, which is defined in units of the combined resolution. | |
| float | calculateChi2 (const HitVec_t &vals) const |
| float | calculateTrackResolution (const HitVec_t &vals) const |
| int | numberOfPrimaryHits (const HitVec_t &vals) const |
Private Attributes | |
| Gaudi::Property< bool > | m_do_last_hit |
| Gaudi::Property< bool > | m_do_time_cons |
| Gaudi::Property< float > | m_deltat_cut {this, "DeltaTCut", 2.0, "Default value"} |
| Gaudi::Property< float > | m_chi2_threshold |
| Gaudi::Property< bool > | m_do_min_nhits |
| Gaudi::Property< float > | m_min_eta {this, "MinEta", 3.5, "Default value"} |
| Gaudi::Property< float > | m_max_eta {this, "MaxEta", 3.9, "Default value"} |
| Gaudi::Property< bool > | m_do_smearing |
| std::string | m_dec_prefix |
| Prefix of the decorations this tool writes. | |
| std::unique_ptr< SG::AuxElement::Decorator< bool > > | m_dec_isset |
| std::unique_ptr< SG::AuxElement::Decorator< bool > > | m_dec_hastime |
| std::unique_ptr< SG::AuxElement::Decorator< float > > | m_dec_time |
| std::unique_ptr< SG::AuxElement::Decorator< int > > | m_dec_nhits |
| std::unique_ptr< SG::AuxElement::Decorator< int > > | m_dec_nprimehits |
| std::unique_ptr< SG::AuxElement::Decorator< float > > | m_dec_resolution |
| std::unique_ptr< SG::ConstAccessor< bool > > | m_acc_isset |
| std::unique_ptr< SG::ConstAccessor< bool > > | m_acc_hastime |
| std::unique_ptr< SG::ConstAccessor< float > > | m_acc_time |
| std::unique_ptr< SG::ConstAccessor< int > > | m_acc_nhits |
| std::unique_ptr< SG::ConstAccessor< int > > | m_acc_nprimehits |
| std::unique_ptr< SG::ConstAccessor< float > > | m_acc_resolution |
| SG::ConstAccessor< std::vector< bool > > | m_acc_perLayer_hasCluster |
| Input decorations produced by the HGTD track extension, read with fixed names. | |
| SG::ConstAccessor< std::vector< float > > | m_acc_perLayer_clusterTime |
| SG::ConstAccessor< std::vector< int > > | m_acc_perLayer_clusterTruthClass |
| SG::ConstAccessor< std::vector< bool > > | m_acc_perLayer_expectCluster |
Definition at line 40 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 51 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 50 of file ExpertTrackTimeFromClustersTool.h.
| ExpertTrackTimeFromClustersTool::ExpertTrackTimeFromClustersTool | ( | const std::string & | t, |
| const std::string & | n, | ||
| const IInterface * | p ) |
Definition at line 16 of file ExpertTrackTimeFromClustersTool.cxx.
|
virtualdefault |
Definition at line 242 of file ExpertTrackTimeFromClustersTool.cxx.
Returns the arithmetic average mean of the hit times.
Definition at line 256 of file ExpertTrackTimeFromClustersTool.cxx.
|
finaloverridevirtual |
Definition at line 56 of file ExpertTrackTimeFromClustersTool.cxx.
|
finaloverridevirtual |
Definition at line 110 of file ExpertTrackTimeFromClustersTool.cxx.
|
finaloverridevirtual |
Definition at line 122 of file ExpertTrackTimeFromClustersTool.cxx.
|
finaloverridevirtual |
Definition at line 332 of file ExpertTrackTimeFromClustersTool.cxx.
|
private |
In the samples used for HGTD studies the last hit on track in ITk is written to file and can be used for the cleaning procedure.
It is returned as a TVector3 object.
Definition at line 357 of file ExpertTrackTimeFromClustersTool.cxx.
|
private |
Retrieve the hit information from the decorators and build a vector of hits for those hits that survive the time compatibility checks.
Definition at line 147 of file ExpertTrackTimeFromClustersTool.cxx.
|
private |
Retrieve the hit information from the decorators and build a vector of hits.
Definition at line 269 of file ExpertTrackTimeFromClustersTool.cxx.
|
finaloverridevirtual |
Definition at line 24 of file ExpertTrackTimeFromClustersTool.cxx.
|
private |
Check wheather the last hit on track is on a surface close to HGTD.
The hardcoded values correspond to ITk Step3.1 layout and define where in z and r the last hit position is accepted as close enough to HGTD.
Definition at line 295 of file ExpertTrackTimeFromClustersTool.cxx.
|
private |
Number of hits that were used to build the track time.
Kept private on purpose: a caller that needs it should declare the dependency on the decoration itself, e.g. SG::ConstAccessor<int> nhit_acc(<toolname> + "_nhits");
Definition at line 134 of file ExpertTrackTimeFromClustersTool.cxx.
|
private |
Number of hits used for the track time that were left by a primary particle.
Private for the same reason as nHits.
Definition at line 322 of file ExpertTrackTimeFromClustersTool.cxx.
Definition at line 311 of file ExpertTrackTimeFromClustersTool.cxx.
|
finaloverridevirtual |
Definition at line 370 of file ExpertTrackTimeFromClustersTool.cxx.
Tests if a given set of exactly 2 Hit objects passes the set time difference cut, which is defined in units of the combined resolution.
Definition at line 232 of file ExpertTrackTimeFromClustersTool.cxx.
|
private |
Definition at line 168 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 167 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 170 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 171 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 178 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 180 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 182 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Input decorations produced by the HGTD track extension, read with fixed names.
Definition at line 176 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 172 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 169 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 145 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 161 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 160 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 163 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 164 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Prefix of the decorations this tool writes.
It is the tool instance name with '.' replaced by '_', since aux variable names may not contain a '.' (the instance name of a private tool does, e.g. HGTD_TrkTimePerformanceStudies.ExpertTrackTimeFromClusters).
Definition at line 158 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 165 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 162 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 144 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 140 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 147 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 151 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 142 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 150 of file ExpertTrackTimeFromClustersTool.h.
|
private |
Definition at line 149 of file ExpertTrackTimeFromClustersTool.h.