ATLAS Offline Software
Trk2dDistanceSeeder.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRKVERTEXSEEDFINDERUTILS_TRK2DDISTANCESEEDER_H
6 #define TRKVERTEXSEEDFINDERUTILS_TRK2DDISTANCESEEDER_H
7 
8 #include "GaudiKernel/ToolHandle.h"
9 #include <vector>
14 
15 namespace Trk
16 {
17 
33  static const InterfaceID IID_Trk2dDistanceSeeder("Trk2dDistanceSeeder", 1, 1);
34 
35  class Trk2dDistanceSeeder final: public AthAlgTool
36  {
37  public:
38 
39  static const InterfaceID& interfaceID()
40  {
41  return IID_Trk2dDistanceSeeder;
42  };
43 
44 
45  //default constructor due to Athena interface
46  Trk2dDistanceSeeder(const std::string& t, const std::string& n, const IInterface* p);
47 
48  //
49  //destructor
51 
52  virtual StatusCode initialize() override;
53  virtual StatusCode finalize() override;
54 
55  TwoPointOnTrack GetSeed (const TwoTracks& mytracks,
56  TwoPoints* twopoints = nullptr) const;
57 
58 
59  private:
60  double getBField (const Perigee& p, MagField::AtlasFieldCache& cache) const;
61 
62  //option
64 
66  {this, "AtlasFieldCacheCondObj", "fieldCondObj", "Name of the Magnetic Field conditions object key"};
67  };
68 }
69 #endif
AtlasFieldCacheCondObj.h
Trk::ParametersT
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
Definition: EMErrorDetail.h:25
Trk::Trk2dDistanceSeeder::GetSeed
TwoPointOnTrack GetSeed(const TwoTracks &mytracks, TwoPoints *twopoints=nullptr) const
Definition: Trk2dDistanceSeeder.cxx:169
Trk::Trk2dDistanceSeeder
Definition: Trk2dDistanceSeeder.h:36
Trk::TwoPoints
std::pair< Amg::Vector3D, Amg::Vector3D > TwoPoints
Definition: SeedFinderParamDefs.h:20
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
Trk::Trk2dDistanceSeeder::getBField
double getBField(const Perigee &p, MagField::AtlasFieldCache &cache) const
Definition: Trk2dDistanceSeeder.cxx:423
GeoPrimitives.h
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
Trk::Trk2dDistanceSeeder::initialize
virtual StatusCode initialize() override
Definition: Trk2dDistanceSeeder.cxx:153
Trk::Trk2dDistanceSeeder::interfaceID
static const InterfaceID & interfaceID()
Definition: Trk2dDistanceSeeder.h:39
Trk::Trk2dDistanceSeeder::m_solveAmbiguityUsingZ
bool m_solveAmbiguityUsingZ
Definition: Trk2dDistanceSeeder.h:63
Trk::Trk2dDistanceSeeder::Trk2dDistanceSeeder
Trk2dDistanceSeeder(const std::string &t, const std::string &n, const IInterface *p)
Definition: Trk2dDistanceSeeder.cxx:143
Trk::TwoPointOnTrack
std::pair< PointOnTrack, PointOnTrack > TwoPointOnTrack
Definition: SeedFinderParamDefs.h:19
Trk::Trk2dDistanceSeeder::m_fieldCacheCondObjInputKey
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_fieldCacheCondObjInputKey
Definition: Trk2dDistanceSeeder.h:66
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
SeedFinderParamDefs.h
SG::ReadCondHandleKey< AtlasFieldCacheCondObj >
Trk::Trk2dDistanceSeeder::~Trk2dDistanceSeeder
virtual ~Trk2dDistanceSeeder()
MagField::AtlasFieldCache
Local cache for magnetic field (based on MagFieldServices/AtlasFieldSvcTLS.h)
Definition: AtlasFieldCache.h:43
AthAlgTool
Definition: AthAlgTool.h:26
Trk::Trk2dDistanceSeeder::finalize
virtual StatusCode finalize() override
Definition: Trk2dDistanceSeeder.cxx:161
Trk::TwoTracks
Definition: TwoTracks.h:15