ATLAS Offline Software
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 
10 #include <vector>
11 
12 namespace Trk
13 {
14 
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:
55  {
57  const DoubleAndWeight& second) const
58  {
59  return first.first < second.first;
60  }
61  };
63  {
64  int operator()(const double& first, const double& second) const
65  {
66  return first < second;
67  }
68  };
69 
70  double m_fraction;
72  };
73 }
74 #endif
Trk::FsmwMode1dFinder::CompareTheTwoDoubles::operator()
int operator()(const double &first, const double &second) const
Definition: FsmwMode1dFinder.h:64
python.SystemOfUnits.second
int second
Definition: SystemOfUnits.py:120
IMode1dFinder.h
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
Trk::IMode1dFinder
Definition: IMode1dFinder.h:33
Trk::FsmwMode1dFinder::m_firstfraction
double m_firstfraction
Definition: FsmwMode1dFinder.h:71
Trk::FsmwMode1dFinder::CompareTheTwoDoubleAndWeights::operator()
int operator()(const DoubleAndWeight &first, const DoubleAndWeight &second) const
Definition: FsmwMode1dFinder.h:56
Trk::DoubleAndWeight
std::pair< double, double > DoubleAndWeight
Definition: SeedFinderParamDefs.h:18
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
beamspotman.n
n
Definition: beamspotman.py:731
AthAlgTool.h
Trk::FsmwMode1dFinder::m_fraction
double m_fraction
Definition: FsmwMode1dFinder.h:70
Trk::FsmwMode1dFinder::getMode
virtual double getMode(std::vector< DoubleAndWeight >) const override final
Definition: FsmwMode1dFinder.cxx:40
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::FsmwMode1dFinder::~FsmwMode1dFinder
virtual ~FsmwMode1dFinder()
Trk::FsmwMode1dFinder
Definition: FsmwMode1dFinder.h:38
DeMoScan.first
bool first
Definition: DeMoScan.py:536
Trk::FsmwMode1dFinder::CompareTheTwoDoubleAndWeights
Definition: FsmwMode1dFinder.h:55
AthAlgTool
Definition: AthAlgTool.h:26
Trk::FsmwMode1dFinder::CompareTheTwoDoubles
Definition: FsmwMode1dFinder.h:63
Trk::FsmwMode1dFinder::FsmwMode1dFinder
FsmwMode1dFinder(const std::string &t, const std::string &n, const IInterface *p)
Definition: FsmwMode1dFinder.cxx:21