|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef HGTD_VERTEXTIMEALG_H
12 #define HGTD_VERTEXTIMEALG_H
29 #include "Gaudi/Property.h"
30 #include "GaudiKernel/SystemOfUnits.h"
33 #include "TMVA/Reader.h"
53 this,
"PrimaryVertexContainer",
"PrimaryVertices",
54 "Name of the primary vertex container"
58 this,
"TrackParticleContainer",
"InDetTrackParticles",
59 "Name of the track container"
63 this,
"VertexHasValidTime",
"PrimaryVertices.hasValidTime",
64 "Specifies if the vertex has a valid time"
68 this,
"VertexTime",
"PrimaryVertices.time",
"Time assigned to vertices"
72 this,
"VertexTimeResolution",
"PrimaryVertices.timeResolution",
73 "Time resolution assigned to vertices"
77 this,
"TrackHasValidTime",
"InDetTrackParticles.hasValidTime",
78 "Specifies if the track has a valid precision time"
82 this,
"TrackTime",
"InDetTrackParticles.time",
"Time assigned to tracks"
86 this,
"TrackTimeResolution",
"InDetTrackParticles.timeResolution",
87 "Time resolution assigned to tracks"
92 "The default time assigned to the vertex if no precision time can be calculated"
96 this,
"DefaultVertexTimeResolution", 50.0 / std::sqrt(12.0) *
Gaudi::Units::ns,
97 "The default time resolution assigned to the vertex if no precision time can be calculated"
101 this,
"BDTCutValue", 0.2f ,
102 "The BDT output has to be above this value for the cluster to be accepted as HS"
107 double min_trk_pt)
const;
111 double min_trk_pt,
const double significance_cut = 2.5)
const;
114 const EventContext& ctx,
115 const std::vector<const xAOD::TrackParticle*>& tracks,
116 double cluster_distance)
const;
119 const EventContext& ctx,
124 const EventContext& ctx,
142 std::unique_ptr<TMVA::Reader>
reader { };
161 #endif // HGTD_VERTEXTIMEALG_H
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
std::pair< float, float > getZOfCluster(const HGTD::Cluster< const xAOD::TrackParticle * > &cluster) const
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vxHasTime_key
std::pair< float, float > getOneOverPOfCluster(const HGTD::Cluster< const xAOD::TrackParticle * > &cluster) const
VertexTimeAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackCont_key
Gaudi::Property< float > m_default_vxTime
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vxTime_key
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_trackValidTime_key
Property holding a SG store/key/clid from which a ReadHandle is made.
std::unique_ptr< TMVA::Reader > reader
bool passTrackVertexAssociation(const xAOD::TrackParticle *track, const xAOD::Vertex *vertex, double min_trk_pt, const double significance_cut=2.5) const
An algorithm that can be simultaneously executed in multiple threads.
float getSumPt2OfCluster(const HGTD::Cluster< const xAOD::TrackParticle * > &cluster) const
std::pair< float, float > getDOfCluster(const HGTD::Cluster< const xAOD::TrackParticle * > &cluster) const
Maintain a set of objects, one per slot.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration.
float scoreCluster(const EventContext &ctx, const HGTD::Cluster< const xAOD::TrackParticle * > &cluster, const xAOD::Vertex *vertex) const
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_trackTime_key
HGTD::Cluster< const xAOD::TrackParticle * > getHScluster(const EventContext &ctx, const std::vector< HGTD::Cluster< const xAOD::TrackParticle * >> &clusters, const xAOD::Vertex *vertex) const
SG::SlotSpecificObj< HSclusterBDT > m_BDT ATLAS_THREAD_SAFE
StatusCode execute(const EventContext &ctx) const override final
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vxTimeRes_key
SG::ReadHandleKey< xAOD::VertexContainer > m_primVxCont_key
Class describing a Vertex.
Gaudi::Property< float > m_bdt_cutvalue
std::vector< const xAOD::TrackParticle * > vertexAssociatedHGTDTracks(const xAOD::Vertex *vertex, const xAOD::TrackParticleContainer *tracks, double min_trk_pt) const
Gaudi::Property< float > m_default_vxTimeRes
Maintain a set of objects, one per slot.
Class describing a TrackParticle.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
StatusCode initialize() override final
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_trackTimeRes_key
std::vector< HGTD::Cluster< const xAOD::TrackParticle * > > clusterTracksInTime(const EventContext &ctx, const std::vector< const xAOD::TrackParticle * > &tracks, double cluster_distance) const