#include <TruthMatchTanimoto.h>
Definition at line 19 of file TruthMatchTanimoto.h.
◆ StoreGateSvc_t
◆ TruthMatchTanimoto()
| Trk::TruthMatchTanimoto::TruthMatchTanimoto |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
Definition at line 12 of file TruthMatchTanimoto.cxx.
14{
15 declareInterface<IDetailedTrackTruthSimilarity>(this);
16}
CommonTruthMatchWeights(const std::string &type, const std::string &name, const IInterface *parent)
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ evtStore()
◆ 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
◆ initialize()
| StatusCode Trk::CommonTruthMatchWeights::initialize |
( |
| ) |
|
|
overridevirtualinherited |
Definition at line 27 of file CommonTruthMatchWeights.cxx.
27 {
28 MsgStream&
log =
msg(MSG::INFO);
32 }
34
35 return StatusCode::SUCCESS;
36}
std::vector< double > m_subDetWeights
◆ 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.
◆ interfaceID()
| const InterfaceID & Trk::IDetailedTrackTruthSimilarity::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ 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.
◆ renounce()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
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)
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ trackTruthSimilarity()
| double Trk::TruthMatchTanimoto::trackTruthSimilarity |
( |
const DetailedTrackTruth & | dtt | ) |
const |
|
finaloverridevirtual |
Tanimoto distance between sets A and B is.
D(A,B) = (N_a + N_b - 2*N_ab) / (N_a + N_b - N_ab)
where N_a and N_b are the number of elements in each set, and N_ab is the number of elements in the intersection.
This tool considers sets of PRDs on the track and TruthTrajectory and returns (1-D).
One can set different weights for hits in different subdetectors. (The computation uses a "sum of weights" instead of the plain "number of elements".)
See also IDetailedTrackTruthSimilarity::trackTruthSimilarity()
Implements Trk::IDetailedTrackTruthSimilarity.
Definition at line 19 of file TruthMatchTanimoto.cxx.
20{
21 double prd_truth=0;
22 double prd_track=0;
23 double prd_common=0;
28 }
29
30 double denom = prd_track + prd_truth - prd_common;
31
32 return (denom>0)? prd_common/
denom : 0.;
33}
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ m_detStore
◆ m_evtStore
◆ m_subDetWeights
| std::vector<double> Trk::CommonTruthMatchWeights::m_subDetWeights |
|
protectedinherited |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: