ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigAnalysis
TrigInDetAnalysisUtils
TrigInDetAnalysisUtils
VertexMatcher.h
Go to the documentation of this file.
1
/* emacs: this is -*- c++ -*- */
10
11
12
#ifndef VERTEXMATCHER_H
13
#define VERTEXMATCHER_H
14
15
#include <iostream>
16
17
#include "
TrigInDetAnalysisUtils/BestMatcher.h
"
18
19
#include "
TrigInDetAnalysis/TIDAVertex.h
"
20
21
typedef
TIDA::Associator<TIDA::Vertex>
VertexAssociator
;
22
23
24
class
VertexMatcher
:
public
BestMatcher
<TIDA::Vertex> {
25
26
public
:
27
28
VertexMatcher
(
const
std::string& s,
double
d=3 ) :
BestMatcher
<
TIDA
::
Vertex
>( s, d*d ) { }
29
30
~VertexMatcher
() { }
31
32
33
virtual
std::unique_ptr<VertexAssociator>
uclone
()
const override
{
return
std::make_unique<VertexMatcher>(*
this
); }
34
35
virtual
double
distance
(
const
TIDA::Vertex
* v0,
const
TIDA::Vertex
* v1 )
const override
{
36
double
d = (v0->z()-v1->
z
());
37
return
d*d;
38
40
// if ( v0->dz() && v1->dz() ) return d*d/( v0->dz()*v0->dz() + v1->dz()*v1->dz() );
41
// else return d*d;
42
};
43
44
};
45
46
inline
std::ostream&
operator<<
( std::ostream& s,
const
VertexMatcher
&
/* _v */
) {
47
return
s;
48
}
49
50
51
#endif
// VERTEXMATCHER_H
52
53
54
BestMatcher.h
truely generic template class of a best matching algorithm based on an efficient implementation of th...
Vertex
boost::graph_traits< boost::adjacency_list< boost::vecS, boost::vecS, boost::bidirectionalS > >::vertex_descriptor Vertex
Definition
FPGATrackSimGNNRoadMakerTool.h:35
TIDAVertex.h
VertexAssociator
TIDA::Associator< TIDA::Vertex > VertexAssociator
Definition
VertexMatcher.h:21
operator<<
std::ostream & operator<<(std::ostream &s, const VertexMatcher &)
Definition
VertexMatcher.h:46
BestMatcher< TIDA::Vertex >::BestMatcher
BestMatcher(const std::string &name, double d)
Definition
BestMatcher.h:61
TIDA::Associator
Definition
TIDAAssociator.h:26
TIDA::Vertex
Definition
TIDAVertex.h:23
TIDA::Vertex::z
double z() const
Definition
TIDAVertex.h:53
VertexMatcher
Definition
VertexMatcher.h:24
VertexMatcher::VertexMatcher
VertexMatcher(const std::string &s, double d=3)
Definition
VertexMatcher.h:28
VertexMatcher::uclone
virtual std::unique_ptr< VertexAssociator > uclone() const override
Definition
VertexMatcher.h:33
VertexMatcher::distance
virtual double distance(const TIDA::Vertex *v0, const TIDA::Vertex *v1) const override
Definition
VertexMatcher.h:35
VertexMatcher::~VertexMatcher
~VertexMatcher()
Definition
VertexMatcher.h:30
TIDA
Test for xAOD.
Definition
Filter_AcceptAll.h:22
Generated on
for ATLAS Offline Software by
1.17.0