ATLAS Offline Software
VertexSeedFinderTestAlg.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 /*
3  * Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration.
4  */
14 #ifndef TRKVERTEXSEEDFINDERTOOLS_VERTEXSEEDFINDERTESTALG_H
15 #define TRKVERTEXSEEDFINDERTOOLS_VERTEXSEEDFINDERTESTALG_H
16 
17 
22 
23 
24 namespace Trk {
25 
26 
28  : public AthAlgorithm
29 {
30 public:
32 
33 
35  virtual StatusCode initialize() override;
36 
38  virtual StatusCode execute() override;
39 
40 
41 private:
43  StatusCode makeMcEventCollection (const EventContext& ctx) const;
44 
45  Gaudi::Property<std::vector<double> > m_priVert
46  { this, "PriVert", {}, "Primary vertex 2D position" };
47  Gaudi::Property<std::vector<double> > m_expected1
48  { this, "Expected1", {}, "First expected result" };
49  Gaudi::Property<std::vector<double> > m_expected2
50  { this, "Expected2", {}, "Second expected result" };
51  Gaudi::Property<std::vector<double> > m_expected3
52  { this, "Expected3", {}, "Third expected result" };
53 
54  Gaudi::Property<std::vector<float> > m_expected1PhiModes
55  { this, "Expected1PhiModes", {}, "" };
56  Gaudi::Property<std::vector<float> > m_expected1RModes
57  { this, "Expected1RModes", {}, "" };
58  Gaudi::Property<std::vector<float> > m_expected1ZModes
59  { this, "Expected1ZModes", {}, "" };
60  Gaudi::Property<std::vector<float> > m_expected1Weights
61  { this, "Expected1Weights", {}, "" };
62  Gaudi::Property<std::vector<int> > m_expected1Indices
63  { this, "Expected1Indices", {}, "" };
64  Gaudi::Property<std::vector<double> > m_expected1CorrDist
65  { this, "Expected1CorrDist", {}, "" };
66 
67  Gaudi::Property<unsigned int> m_npart3
68  { this, "NPart3", 1000, "Number of test particles." };
69 
71  { this, "McEventCollectionKey", "", "Test MC Collecton" };
72 
73  ToolHandle<Trk::IVertexSeedFinder> m_finder
74  { this, "VertexSeedFinderTool", "", "Tool to test." };
75 };
76 
77 
78 } // namespace Trk
79 
80 
81 #endif // not TRKVERTEXSEEDFINDERTOOLS_VERTEXSEEDFINDERTESTALG_H
Trk::VertexSeedFinderTestAlg::m_expected1Indices
Gaudi::Property< std::vector< int > > m_expected1Indices
Definition: VertexSeedFinderTestAlg.h:63
IVertexSeedFinder.h
Trk::VertexSeedFinderTestAlg::m_npart3
Gaudi::Property< unsigned int > m_npart3
Definition: VertexSeedFinderTestAlg.h:68
Trk::VertexSeedFinderTestAlg::m_mcEventCollectionKey
SG::WriteHandleKey< McEventCollection > m_mcEventCollectionKey
Definition: VertexSeedFinderTestAlg.h:71
Trk::VertexSeedFinderTestAlg::initialize
virtual StatusCode initialize() override
Standard Gaudi initialize method.
Definition: VertexSeedFinderTestAlg.cxx:125
Trk::VertexSeedFinderTestAlg::m_expected1Weights
Gaudi::Property< std::vector< float > > m_expected1Weights
Definition: VertexSeedFinderTestAlg.h:61
Trk::VertexSeedFinderTestAlg::m_expected1RModes
Gaudi::Property< std::vector< float > > m_expected1RModes
Definition: VertexSeedFinderTestAlg.h:57
Trk::VertexSeedFinderTestAlg::m_expected2
Gaudi::Property< std::vector< double > > m_expected2
Definition: VertexSeedFinderTestAlg.h:50
Trk::VertexSeedFinderTestAlg
Definition: VertexSeedFinderTestAlg.h:29
Trk::VertexSeedFinderTestAlg::m_expected1PhiModes
Gaudi::Property< std::vector< float > > m_expected1PhiModes
Definition: VertexSeedFinderTestAlg.h:55
Trk::VertexSeedFinderTestAlg::m_expected3
Gaudi::Property< std::vector< double > > m_expected3
Definition: VertexSeedFinderTestAlg.h:52
Trk::VertexSeedFinderTestAlg::m_expected1CorrDist
Gaudi::Property< std::vector< double > > m_expected1CorrDist
Definition: VertexSeedFinderTestAlg.h:65
Trk::VertexSeedFinderTestAlg::m_finder
ToolHandle< Trk::IVertexSeedFinder > m_finder
Definition: VertexSeedFinderTestAlg.h:74
Trk::VertexSeedFinderTestAlg::execute
virtual StatusCode execute() override
Execute the algorithm.
Definition: VertexSeedFinderTestAlg.cxx:136
AthAlgorithm.h
SG::WriteHandleKey< McEventCollection >
McEventCollection.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Trk::VertexSeedFinderTestAlg::makeMcEventCollection
StatusCode makeMcEventCollection(const EventContext &ctx) const
Make a test McEventCollection.
Definition: VertexSeedFinderTestAlg.cxx:289
Trk::VertexSeedFinderTestAlg::m_expected1ZModes
Gaudi::Property< std::vector< float > > m_expected1ZModes
Definition: VertexSeedFinderTestAlg.h:59
AthAlgorithm
Definition: AthAlgorithm.h:47
Trk::VertexSeedFinderTestAlg::m_priVert
Gaudi::Property< std::vector< double > > m_priVert
Definition: VertexSeedFinderTestAlg.h:46
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor:
Trk::VertexSeedFinderTestAlg::m_expected1
Gaudi::Property< std::vector< double > > m_expected1
Definition: VertexSeedFinderTestAlg.h:48