ATLAS Offline Software
Loading...
Searching...
No Matches
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 */
12
13
14#ifndef TRKVERTEXSEEDFINDERTOOLS_VERTEXSEEDFINDERTESTALG_H
15#define TRKVERTEXSEEDFINDERTOOLS_VERTEXSEEDFINDERTESTALG_H
16
17
22
23
24namespace Trk {
25
26
28 : public AthAlgorithm
29{
30public:
32
33
35 virtual StatusCode initialize() override;
36
38 virtual StatusCode execute() override;
39
40
41private:
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
Property holding a SG store/key/clid from which a WriteHandle is made.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Property holding a SG store/key/clid from which a WriteHandle is made.
Gaudi::Property< std::vector< float > > m_expected1RModes
Gaudi::Property< std::vector< double > > m_expected1CorrDist
ToolHandle< Trk::IVertexSeedFinder > m_finder
Gaudi::Property< std::vector< double > > m_priVert
virtual StatusCode initialize() override
Standard Gaudi initialize method.
Gaudi::Property< std::vector< float > > m_expected1PhiModes
Gaudi::Property< unsigned int > m_npart3
Gaudi::Property< std::vector< double > > m_expected2
Gaudi::Property< std::vector< float > > m_expected1Weights
StatusCode makeMcEventCollection(const EventContext &ctx) const
Make a test McEventCollection.
Gaudi::Property< std::vector< int > > m_expected1Indices
Gaudi::Property< std::vector< float > > m_expected1ZModes
SG::WriteHandleKey< McEventCollection > m_mcEventCollectionKey
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Property< std::vector< double > > m_expected1
virtual StatusCode execute() override
Execute the algorithm.
Gaudi::Property< std::vector< double > > m_expected3
Ensure that the ATLAS eigen extensions are properly loaded.