ATLAS Offline Software
Trigger
TrigAnalysis
TrigInDetAnalysisUtils
TrigInDetAnalysisUtils
VertexMatcher.h
Go to the documentation of this file.
1
/* emacs: this is -*- c++ -*- */
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
22
class
VertexMatcher
:
public
BestMatcher
<TIDA::Vertex> {
23
24
public
:
25
26
VertexMatcher
(
const
std::string&
s
,
double
d
=3 ) :
BestMatcher
<
TIDA
::
Vertex
>(
s
,
d
*
d
) { }
27
28
~VertexMatcher
() { }
29
30
virtual
BestMatcher<TIDA::Vertex>
*
clone
()
override
{
return
new
VertexMatcher
(*
this
); }
31
32
virtual
double
distance
(
const
TIDA::Vertex
*
v0
,
const
TIDA::Vertex
* v1 )
const override
{
33
double
d
= (
v0
->z()-v1->
z
());
34
return
d
*
d
;
35
37
// if ( v0->dz() && v1->dz() ) return d*d/( v0->dz()*v0->dz() + v1->dz()*v1->dz() );
38
// else return d*d;
39
};
40
41
};
42
43
inline
std::ostream&
operator<<
( std::ostream&
s
,
const
VertexMatcher
&
/* _v */
) {
44
return
s
;
45
}
46
47
48
#endif // VERTEXMATCHER_H
49
50
51
TIDA
Test for xAOD.
Definition:
Filter_AcceptAll.h:22
python.SystemOfUnits.s
int s
Definition:
SystemOfUnits.py:131
xAOD::Vertex
Vertex_v1 Vertex
Define the latest version of the vertex class.
Definition:
Event/xAOD/xAODTracking/xAODTracking/Vertex.h:16
VertexMatcher::distance
virtual double distance(const TIDA::Vertex *v0, const TIDA::Vertex *v1) const override
Definition:
VertexMatcher.h:32
VertexMatcher::VertexMatcher
VertexMatcher(const std::string &s, double d=3)
Definition:
VertexMatcher.h:26
hist_file_dump.d
d
Definition:
hist_file_dump.py:137
TIDAVertex.h
operator<<
std::ostream & operator<<(std::ostream &s, const VertexMatcher &)
Definition:
VertexMatcher.h:43
parseMapping.v0
def v0
Definition:
parseMapping.py:149
BestMatcher.h
TIDA::Vertex
Definition:
TIDAVertex.h:23
VertexMatcher::clone
virtual BestMatcher< TIDA::Vertex > * clone() override
Definition:
VertexMatcher.h:30
TIDA::Vertex::z
double z() const
Definition:
TIDAVertex.h:53
BestMatcher
Definition:
BestMatcher.h:29
VertexMatcher::~VertexMatcher
~VertexMatcher()
Definition:
VertexMatcher.h:28
VertexMatcher
Definition:
VertexMatcher.h:22
Generated on Sun Dec 22 2024 21:22:22 for ATLAS Offline Software by
1.8.18