ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkVertexFitter
TrkVertexSeedFinderUtils
TrkVertexSeedFinderUtils
FsmwMode1dFinder.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRKVERTEXSEEDFINDERUTILS_FSMWMODE1DFINDERALGO_H
6
#define TRKVERTEXSEEDFINDERUTILS_FSMWMODE1DFINDERALGO_H
7
8
#include "
TrkVertexSeedFinderUtils/IMode1dFinder.h
"
9
#include "
AthenaBaseComps/AthAlgTool.h
"
10
#include <vector>
11
12
namespace
Trk
13
{
14
34
35
36
37
class
FsmwMode1dFinder
final :
public
AthAlgTool
,
virtual
public
IMode1dFinder
38
{
39
public
:
40
//default constructor due to Athena interface
41
FsmwMode1dFinder
(
const
std::string& t,
const
std::string& n,
const
IInterface* p);
42
43
//destructor
44
virtual
~FsmwMode1dFinder
();
45
46
//obtain the 1d-mode (double) from a list of doubles (unidimensional distribution)
47
virtual
double
getMode
(std::vector<DoubleAndWeight>)
const
override
final
;
48
49
virtual
double
getMode
(std::vector<double>)
const
override
final
;
50
51
52
53
private
:
54
struct
CompareTheTwoDoubleAndWeights
55
{
56
int
operator()
(
const
DoubleAndWeight
& first,
57
const
DoubleAndWeight
& second)
const
58
{
59
return
first.first < second.first;
60
}
61
};
62
struct
CompareTheTwoDoubles
63
{
64
int
operator()
(
const
double
& first,
const
double
& second)
const
65
{
66
return
first < second;
67
}
68
};
69
70
double
m_fraction
;
71
double
m_firstfraction
;
72
};
73
}
74
#endif
AthAlgTool.h
IMode1dFinder.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
Trk::FsmwMode1dFinder::~FsmwMode1dFinder
virtual ~FsmwMode1dFinder()
Trk::FsmwMode1dFinder::FsmwMode1dFinder
FsmwMode1dFinder(const std::string &t, const std::string &n, const IInterface *p)
Definition
FsmwMode1dFinder.cxx:19
Trk::FsmwMode1dFinder::m_firstfraction
double m_firstfraction
Definition
FsmwMode1dFinder.h:71
Trk::FsmwMode1dFinder::getMode
virtual double getMode(std::vector< DoubleAndWeight >) const override final
Definition
FsmwMode1dFinder.cxx:38
Trk::FsmwMode1dFinder::m_fraction
double m_fraction
Definition
FsmwMode1dFinder.h:70
Trk::IMode1dFinder
Interface class for the algotool which calculates the mode of a unidimensional distribution.
Definition
IMode1dFinder.h:33
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Trk::DoubleAndWeight
std::pair< double, double > DoubleAndWeight
Definition
SeedFinderParamDefs.h:18
Trk::FsmwMode1dFinder::CompareTheTwoDoubleAndWeights
Definition
FsmwMode1dFinder.h:55
Trk::FsmwMode1dFinder::CompareTheTwoDoubleAndWeights::operator()
int operator()(const DoubleAndWeight &first, const DoubleAndWeight &second) const
Definition
FsmwMode1dFinder.h:56
Trk::FsmwMode1dFinder::CompareTheTwoDoubles
Definition
FsmwMode1dFinder.h:63
Trk::FsmwMode1dFinder::CompareTheTwoDoubles::operator()
int operator()(const double &first, const double &second) const
Definition
FsmwMode1dFinder.h:64
Generated on
for ATLAS Offline Software by
1.17.0