|
ATLAS Offline Software
|
#include <VertexTimeAlg.h>
|
| VertexTimeAlg (const std::string &name, ISvcLocator *pSvcLocator) |
|
StatusCode | initialize () override final |
|
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 |
|
|
std::vector< const xAOD::TrackParticle * > | vertexAssociatedHGTDTracks (const xAOD::Vertex *vertex, const xAOD::TrackParticleContainer *tracks, double min_trk_pt) const |
|
bool | passTrackVertexAssociation (const xAOD::TrackParticle *track, const xAOD::Vertex *vertex, double min_trk_pt, const double significance_cut=2.5) const |
|
std::vector< HGTD::Cluster< const xAOD::TrackParticle * > > | clusterTracksInTime (const EventContext &ctx, const std::vector< const xAOD::TrackParticle * > &tracks, double cluster_distance) const |
|
HGTD::Cluster< const xAOD::TrackParticle * > | getHScluster (const EventContext &ctx, const std::vector< HGTD::Cluster< const xAOD::TrackParticle * >> &clusters, const xAOD::Vertex *vertex) const |
|
float | scoreCluster (const EventContext &ctx, const HGTD::Cluster< const xAOD::TrackParticle * > &cluster, const xAOD::Vertex *vertex) const |
|
std::pair< float, float > | getZOfCluster (const HGTD::Cluster< const xAOD::TrackParticle * > &cluster) const |
|
std::pair< float, float > | getOneOverPOfCluster (const HGTD::Cluster< const xAOD::TrackParticle * > &cluster) const |
|
std::pair< float, float > | getDOfCluster (const HGTD::Cluster< const xAOD::TrackParticle * > &cluster) const |
|
float | getSumPt2OfCluster (const HGTD::Cluster< const xAOD::TrackParticle * > &cluster) 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...
|
|
Definition at line 43 of file VertexTimeAlg.h.
◆ StoreGateSvc_t
◆ VertexTimeAlg()
HGTD::VertexTimeAlg::VertexTimeAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ cardinality()
unsigned int AthReentrantAlgorithm::cardinality |
( |
| ) |
const |
|
overridevirtualinherited |
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 55 of file AthReentrantAlgorithm.cxx.
◆ clusterTracksInTime()
Definition at line 167 of file VertexTimeAlg.cxx.
184 for (
const auto&
track : tracks) {
186 if (trackValidTime(*
track)) {
188 double timeResolution { trackTimeResolution(*
track) };
193 collection.addCluster(cluster);
197 collection.updateDistanceCut(cluster_distance);
200 return collection.getClusters();
◆ 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 HGTD::VertexTimeAlg::execute |
( |
const EventContext & |
ctx | ) |
const |
|
finaloverride |
Definition at line 64 of file VertexTimeAlg.cxx.
77 for (
const auto vx : *primVxCont) {
81 std::vector<const xAOD::TrackParticle*> hgtdTracks {
85 std::vector<HGTD::Cluster<const xAOD::TrackParticle*>> trackClusters {
94 if (HS_cluster.getEntries().size() > 0) {
98 vxTime(*vx) = HS_cluster.getValues().at(0);
99 vxTimeRes(*vx) = HS_cluster.getSigmas().at(0);
118 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()
const DataObjIDColl & AthReentrantAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 79 of file AthReentrantAlgorithm.cxx.
86 return Algorithm::extraOutputDeps();
◆ filterPassed()
virtual bool AthReentrantAlgorithm::filterPassed |
( |
const EventContext & |
ctx | ) |
const |
|
inlinevirtualinherited |
◆ getDOfCluster()
Definition at line 307 of file VertexTimeAlg.cxx.
310 std::vector<const xAOD::TrackParticle*> tracks { cluster.
getEntries() };
313 float denom { 0.0f };
315 for (
const auto&
track : tracks) {
319 static_cast<float>(
track->definingParametersCovMatrix()(0, 0))
322 num +=
d0 / d0_variance;
323 denom += 1.0f / d0_variance;
327 float avg_z0_sigma = std::sqrt(1.0
f /
denom);
329 return {avg_z0, avg_z0_sigma};
◆ getHScluster()
Definition at line 203 of file VertexTimeAlg.cxx.
209 float max_BDT_score { -1.0f };
211 for (
const auto& cluster :
clusters) {
214 if (cluster.getEntries().size() < 3) {
220 if (cluster_score >
m_bdt_cutvalue && cluster_score > max_BDT_score) {
222 max_BDT_score = cluster_score;
223 HS_cluster = cluster;
◆ getOneOverPOfCluster()
Definition at line 282 of file VertexTimeAlg.cxx.
285 std::vector<const xAOD::TrackParticle*> tracks { cluster.
getEntries() };
288 float denom { 0.0f };
290 for (
const auto&
track : tracks) {
292 float one_over_p { std::abs(
track->qOverP()) };
293 float one_over_p_variance {
294 static_cast<float>(
track->definingParametersCovMatrix()(4, 4))
297 num += one_over_p / one_over_p_variance;
298 denom += 1.0f / one_over_p_variance;
302 float avg_oneover_p_sigma = std::sqrt(1.0
f /
denom);
304 return {avg_oneover_p, avg_oneover_p_sigma};
◆ getSumPt2OfCluster()
Definition at line 332 of file VertexTimeAlg.cxx.
335 std::vector<const xAOD::TrackParticle*> tracks { cluster.
getEntries() };
337 float sumpt2 { 0.0f };
339 for (
const auto&
track : tracks) {
◆ getZOfCluster()
Definition at line 257 of file VertexTimeAlg.cxx.
260 std::vector<const xAOD::TrackParticle*> tracks { cluster.
getEntries() };
263 float denom { 0.0f };
265 for (
const auto&
track : tracks) {
269 static_cast<float>(
track->definingParametersCovMatrix()(1, 1))
272 num +=
z0 / z0_variance;
273 denom += 1.0f / z0_variance;
277 float avg_z0_sigma = std::sqrt(1.0
f /
denom);
279 return {avg_z0, avg_z0_sigma};
◆ initialize()
StatusCode HGTD::VertexTimeAlg::initialize |
( |
| ) |
|
|
finaloverride |
Definition at line 28 of file VertexTimeAlg.cxx.
41 for (
auto& bdt : m_BDT) {
43 bdt.reader = std::make_unique<TMVA::Reader>(
"!Color:!Silent");
45 bdt.reader->AddVariable(
"m_delta_z", &bdt.delta_z);
46 bdt.reader->AddVariable(
"m_z_sigma", &bdt.z_sigma);
47 bdt.reader->AddVariable(
"m_q_over_p", &bdt.q_over_p);
48 bdt.reader->AddVariable(
"m_q_over_p_sigma", &bdt.q_over_p_sigma);
49 bdt.reader->AddVariable(
"m_delta_z_resunits", &bdt.delta_z_resunits);
50 bdt.reader->AddVariable(
"m_cluster_sumpt2", &bdt.cluster_sumpt2);
51 bdt.reader->AddVariable(
"m_d0", &bdt.d0);
52 bdt.reader->AddVariable(
"m_d0_sigma", &bdt.d0_sigma);
54 const std::string weightFile {
58 bdt.reader->BookMVA(
"BDT", weightFile);
61 return StatusCode::SUCCESS;
◆ 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()
bool AthReentrantAlgorithm::isClonable |
( |
| ) |
const |
|
overridevirtualinherited |
Specify if the algorithm is clonable.
Reentrant algorithms are clonable.
Reimplemented in Simulation::BeamEffectsAlg, InDet::SiTrackerSpacePointFinder, InDet::SCT_Clusterization, InDet::SiSPSeededTrackFinder, SCTRawDataProvider, InDet::GNNSeedingTrackMaker, SCT_PrepDataToxAOD, RoIBResultToxAOD, SCT_CablingCondAlgFromCoraCool, SCT_ReadCalibDataTestAlg, SCT_CablingCondAlgFromText, InDet::SiSPGNNTrackMaker, SCT_ReadCalibChipDataTestAlg, SCT_TestCablingAlg, SCT_ConfigurationConditionsTestAlg, ITkPixelCablingAlg, ITkStripCablingAlg, SCTEventFlagWriter, SCT_ConditionsSummaryTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_TdaqEnabledTestAlg, SCT_SiliconConditionsTestAlg, SCTSiLorentzAngleTestAlg, SCT_ByteStreamErrorsTestAlg, SCT_ConditionsParameterTestAlg, SCT_FlaggedConditionTestAlg, SCT_StripVetoTestAlg, SCT_RawDataToxAOD, and SCTSiPropertiesTestAlg.
Definition at line 44 of file AthReentrantAlgorithm.cxx.
◆ 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.
◆ passTrackVertexAssociation()
Definition at line 144 of file VertexTimeAlg.cxx.
148 if (
track->pt() < min_trk_pt || std::abs(
track->eta()) > 4.0) {
152 const double vx_z {
vertex->z() };
153 const double vx_z_variance {
vertex->covariancePosition()(2, 2) };
155 const double trk_z {
track->vz() +
track->z0() };
156 const double trk_z_variance {
track->definingParametersCovMatrix()(1, 1) };
158 if (std::abs(trk_z - vx_z) / std::sqrt(trk_z_variance + vx_z_variance)
159 < significance_cut) {
◆ renounce()
◆ renounceArray()
◆ scoreCluster()
Definition at line 232 of file VertexTimeAlg.cxx.
237 std::pair<float, float> cluster_z {
getZOfCluster(cluster) };
239 std::pair<float, float> cluster_d0 {
getDOfCluster(cluster) };
240 double vertex_z_variance {
vertex->covariancePosition()(2, 2) };
242 auto& bdt { *m_BDT.get(ctx) };
244 bdt.delta_z = cluster_z.first -
vertex->z();
245 bdt.z_sigma = cluster_z.second;
246 bdt.q_over_p = cluster_oneover_p.first;
247 bdt.q_over_p_sigma = cluster_oneover_p.second;
248 bdt.d0 = cluster_d0.first;
249 bdt.d0_sigma = cluster_d0.second;
251 bdt.delta_z_resunits = (cluster_z.first -
vertex->z()) /
252 std::sqrt(
std::pow(cluster_z.second, 2.0) + vertex_z_variance);
254 return bdt.reader->EvaluateMVA(
"BDT");
◆ setFilterPassed()
virtual void AthReentrantAlgorithm::setFilterPassed |
( |
bool |
state, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
inlinevirtualinherited |
◆ sysExecute()
StatusCode AthReentrantAlgorithm::sysExecute |
( |
const EventContext & |
ctx | ) |
|
|
overridevirtualinherited |
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 67 of file AthReentrantAlgorithm.cxx.
69 return Gaudi::Algorithm::sysExecute (ctx);
◆ sysInitialize()
StatusCode AthReentrantAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
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 96 of file AthReentrantAlgorithm.cxx.
107 if ( cs.retrieve().isFailure() ) {
109 return StatusCode::SUCCESS;
111 if (cs->regHandle(
this,*
h).isFailure()) {
112 sc = StatusCode::FAILURE;
113 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()
◆ vertexAssociatedHGTDTracks()
Definition at line 122 of file VertexTimeAlg.cxx.
126 std::vector<const xAOD::TrackParticle*> good_tracks { };
128 for (
const auto trk : *tracks) {
129 if (std::abs(trk->eta()) < 2.4 || std::abs(trk->eta()) > 4.0) {
137 good_tracks.push_back(trk);
◆ ATLAS_THREAD_SAFE
◆ m_bdt_cutvalue
Gaudi::Property<float> HGTD::VertexTimeAlg::m_bdt_cutvalue |
|
private |
Initial value:{
this, "BDTCutValue", 0.2f ,
"The BDT output has to be above this value for the cluster to be accepted as HS"
}
Definition at line 100 of file VertexTimeAlg.h.
◆ m_default_vxTime
Gaudi::Property<float> HGTD::VertexTimeAlg::m_default_vxTime |
|
private |
Initial value:{
"The default time assigned to the vertex if no precision time can be calculated"
}
Definition at line 90 of file VertexTimeAlg.h.
◆ m_default_vxTimeRes
Gaudi::Property<float> HGTD::VertexTimeAlg::m_default_vxTimeRes |
|
private |
Initial value:{
"The default time resolution assigned to the vertex if no precision time can be calculated"
}
Definition at line 95 of file VertexTimeAlg.h.
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects |
|
privateinherited |
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 153 of file AthReentrantAlgorithm.h.
◆ m_primVxCont_key
Initial value:{
this, "PrimaryVertexContainer", "PrimaryVertices",
"Name of the primary vertex container"
}
Definition at line 52 of file VertexTimeAlg.h.
◆ m_trackCont_key
Initial value:{
this, "TrackParticleContainer", "InDetTrackParticles",
"Name of the track container"
}
Definition at line 57 of file VertexTimeAlg.h.
◆ m_trackTime_key
Initial value:{
this, "TrackTime", "InDetTrackParticles.time", "Time assigned to tracks"
}
Definition at line 81 of file VertexTimeAlg.h.
◆ m_trackTimeRes_key
Initial value:{
this, "TrackTimeResolution", "InDetTrackParticles.timeResolution",
"Time resolution assigned to tracks"
}
Definition at line 85 of file VertexTimeAlg.h.
◆ m_trackValidTime_key
Initial value:{
this, "TrackHasValidTime", "InDetTrackParticles.hasValidTime",
"Specifies if the track has a valid precision time"
}
Definition at line 76 of file VertexTimeAlg.h.
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_vxHasTime_key
Initial value:{
this, "VertexHasValidTime", "PrimaryVertices.hasValidTime",
"Specifies if the vertex has a valid time"
}
Definition at line 62 of file VertexTimeAlg.h.
◆ m_vxTime_key
Initial value:{
this, "VertexTime", "PrimaryVertices.time", "Time assigned to vertices"
}
Definition at line 67 of file VertexTimeAlg.h.
◆ m_vxTimeRes_key
Initial value:{
this, "VertexTimeResolution", "PrimaryVertices.timeResolution",
"Time resolution assigned to vertices"
}
Definition at line 71 of file VertexTimeAlg.h.
The documentation for this class was generated from the following files:
static std::string find_file(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)
std::pair< float, float > getZOfCluster(const HGTD::Cluster< const xAOD::TrackParticle * > &cluster) const
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vxHasTime_key
std::pair< float, float > getOneOverPOfCluster(const HGTD::Cluster< const xAOD::TrackParticle * > &cluster) const
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)
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackCont_key
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
Gaudi::Property< float > m_default_vxTime
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vxTime_key
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_trackValidTime_key
bool passTrackVertexAssociation(const xAOD::TrackParticle *track, const xAOD::Vertex *vertex, double min_trk_pt, const double significance_cut=2.5) const
virtual void setOwner(IDataHandleHolder *o)=0
float getSumPt2OfCluster(const HGTD::Cluster< const xAOD::TrackParticle * > &cluster) const
std::pair< float, float > getDOfCluster(const HGTD::Cluster< const xAOD::TrackParticle * > &cluster) const
AthReentrantAlgorithm()
Default constructor:
Handle class for reading a decoration on an object.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
float scoreCluster(const EventContext &ctx, const HGTD::Cluster< const xAOD::TrackParticle * > &cluster, const xAOD::Vertex *vertex) const
::StatusCode StatusCode
StatusCode definition for legacy code.
Handle class for adding a decoration to an object.
const std::vector< T > & getEntries() const
Return the objects that are part of the Cluster.
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_trackTime_key
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.
HGTD::Cluster< const xAOD::TrackParticle * > getHScluster(const EventContext &ctx, const std::vector< HGTD::Cluster< const xAOD::TrackParticle * >> &clusters, const xAOD::Vertex *vertex) const
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
virtual StatusCode sysInitialize() override
Override sysInitialize.
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vxTimeRes_key
SG::ReadHandleKey< xAOD::VertexContainer > m_primVxCont_key
Gaudi::Property< float > m_bdt_cutvalue
def time(flags, cells_name, *args, **kw)
#define ATH_MSG_WARNING(x)
std::vector< const xAOD::TrackParticle * > vertexAssociatedHGTDTracks(const xAOD::Vertex *vertex, const xAOD::TrackParticleContainer *tracks, double min_trk_pt) const
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Gaudi::Property< float > m_default_vxTimeRes
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
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