ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigHypothesis
TrigHLTJetHypoUnitTests
TrigHLTJetHypoUnitTests
JetHypoExerciserCompareAlg.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
3
/*
4
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
#ifndef TRIGHLTJETHYPOUNITTESTS_JETHYPOEXERCISERCOMPAREALG_H
8
#define TRIGHLTJETHYPOUNITTESTS_JETHYPOEXERCISERCOMPAREALG_H
9
10
#include "
TrigHLTJetHypo/ITrigJetHypoToolHelper.h
"
11
#include "
TrigHLTJetHypoUnitTests/IHypoJetVectorGenerator.h
"
12
#include "GaudiKernel/ToolHandle.h"
13
#include "
AthenaBaseComps/AthAlgorithm.h
"
14
#include "Gaudi/Property.h"
15
16
17
class
JetHypoExerciserCompareAlg
:
public
AthAlgorithm
{
18
public
:
19
JetHypoExerciserCompareAlg
(
const
std::string& name, ISvcLocator* pSvcLocator );
20
virtual
~JetHypoExerciserCompareAlg
();
21
StatusCode
initialize
();
22
StatusCode
execute
(
const
EventContext& ctx);
23
StatusCode
finalize
();
24
25
26
private
:
27
28
29
// ToolHandles as Properties
30
ToolHandle<ITrigJetHypoToolHelper>
m_helper0
{
this
,
"JetHypoHelperTool0"
,
31
"Tool0"
,
"private IJetTrigHypoToolHelper0"
};
32
33
ToolHandle<ITrigJetHypoToolHelper>
m_helper1
{
this
,
"JetHypoHelperTool1"
,
34
"Tool1"
,
"private IJetTrigHypoToolHelper1"
};
35
36
ToolHandle<IHypoJetVectorGenerator>
m_generator
{
this
,
"event_generator"
,
37
{},
"Generates test vector"
};
38
39
40
Gaudi::Property<bool>
41
m_visitDebug
{
this
,
"visit_debug"
,
false
,
"debug flag"
};
42
43
Gaudi::Property<std::string>
44
m_logname
{
this
,
"logname"
,
"JetHypoExerciser.log"
,
"debug info output fn"
};
45
46
std::size_t
m_ncall
{0};
47
48
std::size_t
m_agree_true
{0};
49
std::size_t
m_agree_false
{0};
50
std::size_t
m_differ
{0};
51
std::size_t
m_agree_jets
{0};
52
std::size_t
m_differ_jets
{0};
53
54
StatusCode
initialize_
(
const
ToolHandle<ITrigJetHypoToolHelper>&,
55
const
std::string&);
56
57
StatusCode
execute_
(ToolHandle<ITrigJetHypoToolHelper>&,
58
HypoJetVector
&,
59
const
std::string& collectorName,
60
xAODJetCollector
& jetCollector,
61
const
std::string& logname,
62
bool
& pass);
63
};
64
65
#endif
// !#define TRIGHLTJETHYPOUNITTESTS_JETHYPOEXERCISER_H
AthAlgorithm.h
HypoJetVector
std::vector< pHypoJet > HypoJetVector
Definition
HypoJetDefs.h:27
IHypoJetVectorGenerator.h
ITrigJetHypoToolHelper.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
JetHypoExerciserCompareAlg::m_agree_true
std::size_t m_agree_true
Definition
JetHypoExerciserCompareAlg.h:48
JetHypoExerciserCompareAlg::~JetHypoExerciserCompareAlg
virtual ~JetHypoExerciserCompareAlg()
Definition
JetHypoExerciserCompareAlg.cxx:23
JetHypoExerciserCompareAlg::m_differ_jets
std::size_t m_differ_jets
Definition
JetHypoExerciserCompareAlg.h:52
JetHypoExerciserCompareAlg::m_helper0
ToolHandle< ITrigJetHypoToolHelper > m_helper0
Definition
JetHypoExerciserCompareAlg.h:30
JetHypoExerciserCompareAlg::m_helper1
ToolHandle< ITrigJetHypoToolHelper > m_helper1
Definition
JetHypoExerciserCompareAlg.h:33
JetHypoExerciserCompareAlg::JetHypoExerciserCompareAlg
JetHypoExerciserCompareAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
JetHypoExerciserCompareAlg.cxx:18
JetHypoExerciserCompareAlg::m_visitDebug
Gaudi::Property< bool > m_visitDebug
Definition
JetHypoExerciserCompareAlg.h:41
JetHypoExerciserCompareAlg::m_differ
std::size_t m_differ
Definition
JetHypoExerciserCompareAlg.h:50
JetHypoExerciserCompareAlg::initialize
StatusCode initialize()
Definition
JetHypoExerciserCompareAlg.cxx:64
JetHypoExerciserCompareAlg::execute
StatusCode execute(const EventContext &ctx)
Execute method.
Definition
JetHypoExerciserCompareAlg.cxx:136
JetHypoExerciserCompareAlg::m_agree_jets
std::size_t m_agree_jets
Definition
JetHypoExerciserCompareAlg.h:51
JetHypoExerciserCompareAlg::finalize
StatusCode finalize()
Definition
JetHypoExerciserCompareAlg.cxx:244
JetHypoExerciserCompareAlg::execute_
StatusCode execute_(ToolHandle< ITrigJetHypoToolHelper > &, HypoJetVector &, const std::string &collectorName, xAODJetCollector &jetCollector, const std::string &logname, bool &pass)
Definition
JetHypoExerciserCompareAlg.cxx:78
JetHypoExerciserCompareAlg::m_logname
Gaudi::Property< std::string > m_logname
Definition
JetHypoExerciserCompareAlg.h:44
JetHypoExerciserCompareAlg::m_generator
ToolHandle< IHypoJetVectorGenerator > m_generator
Definition
JetHypoExerciserCompareAlg.h:36
JetHypoExerciserCompareAlg::m_agree_false
std::size_t m_agree_false
Definition
JetHypoExerciserCompareAlg.h:49
JetHypoExerciserCompareAlg::m_ncall
std::size_t m_ncall
Definition
JetHypoExerciserCompareAlg.h:46
JetHypoExerciserCompareAlg::initialize_
StatusCode initialize_(const ToolHandle< ITrigJetHypoToolHelper > &, const std::string &)
Definition
JetHypoExerciserCompareAlg.cxx:27
xAODJetCollector
Definition
xAODJetCollector.h:20
Generated on
for ATLAS Offline Software by
1.17.0