ATLAS Offline Software
TestRecoAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef TRIGUPGRADETEST_TESTRECOALG_H
5 #define TRIGUPGRADETEST_TESTRECOALG_H 1
6 
7 
8 #include <string>
9 #include <utility>
11 
13 
14 
15 
16 namespace HLTTest {
17 
27  : public ::AthAlgorithm
28  {
29  public:
30  TestRecoAlg( const std::string& name, ISvcLocator* pSvcLocator );
31  virtual ~TestRecoAlg();
32 
33  StatusCode initialize() override;
34  StatusCode execute() override;
35  StatusCode finalize() override;
36 
37  private:
39 
40  typedef std::pair< std::string, float > Prop_t;
41  typedef std::vector< Prop_t > Obj_t;
42  typedef std::vector< Obj_t > Event_t;
43  std::vector< Event_t > m_data;
44  StringProperty m_fileName { this, "FileName", "Input file with fake objects"};
45 
46  SG::WriteHandleKey<xAOD::TrigCompositeContainer> m_output { this, "Output", "Output collection name" };
47  SG::ReadHandleKey<xAOD::TrigCompositeContainer> m_input { this, "Input", "Input collection name" };
48 
49 
50  };
51 
52 } //> end namespace HLTTest
53 #endif //> !TRIGUPGRADETEST_TESTRECOALG_H
HLTTest::TestRecoAlg::m_data
std::vector< Event_t > m_data
Definition: TestRecoAlg.h:43
HLTTest::TestRecoAlg::Event_t
std::vector< Obj_t > Event_t
Definition: TestRecoAlg.h:42
HLTTest::TestRecoAlg::~TestRecoAlg
virtual ~TestRecoAlg()
Definition: TestRecoAlg.cxx:22
HLTTest::TestRecoAlg::m_output
SG::WriteHandleKey< xAOD::TrigCompositeContainer > m_output
Definition: TestRecoAlg.h:46
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
HLTTest::TestRecoAlg::finalize
StatusCode finalize() override
Definition: TestRecoAlg.cxx:78
HLTTest::TestRecoAlg::m_input
SG::ReadHandleKey< xAOD::TrigCompositeContainer > m_input
Definition: TestRecoAlg.h:47
HLTTest::TestRecoAlg::TestRecoAlg
TestRecoAlg()
HLTTest::TestRecoAlg::Prop_t
std::pair< std::string, float > Prop_t
Definition: TestRecoAlg.h:40
AthAlgorithm.h
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgorithm
Definition: AthAlgorithm.h:47
TrigCompositeContainer.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
HLTTest::TestRecoAlg::initialize
StatusCode initialize() override
Definition: TestRecoAlg.cxx:37
HLTTest::TestRecoAlg::Obj_t
std::vector< Prop_t > Obj_t
Definition: TestRecoAlg.h:41
HLTTest
Definition: ITestHypoTool.cxx:9
HLTTest::TestRecoAlg
Pseudo reco alg, reads input file formatted as follows: prop1:value, prop2:value; prop1:value,...
Definition: TestRecoAlg.h:28
HLTTest::TestRecoAlg::execute
StatusCode execute() override
Definition: TestRecoAlg.cxx:83
HLTTest::TestRecoAlg::m_fileName
StringProperty m_fileName
Definition: TestRecoAlg.h:44