ATLAS Offline Software
Trigger
TrigHypothesis
TrigHLTJetHypo
src
TrigJetConditionConfig_htfr.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
/*
6
Instantiator for Htfr Conditions
7
*/
8
#include "
TrigJetConditionConfig_htfr.h
"
9
#include "GaudiKernel/StatusCode.h"
10
#include "
./HTConditionFastReduction.h
"
11
#include "
./ArgStrToDouble.h
"
12
13
TrigJetConditionConfig_htfr::TrigJetConditionConfig_htfr
(
const
std::string&
type
,
14
const
std::string&
name
,
15
const
IInterface*
parent
) :
16
base_class(
type
,
name
,
parent
){
17
18
}
19
20
21
StatusCode
TrigJetConditionConfig_htfr::initialize
() {
22
CHECK
(
checkVals
());
23
24
return
StatusCode::SUCCESS;
25
}
26
27
28
Condition
TrigJetConditionConfig_htfr::getCondition
()
const
{
29
auto
a2d =
ArgStrToDouble
();
30
return
std::make_unique<HTConditionFastReduction>(a2d(
m_min
), a2d(
m_max
));
31
}
32
33
34
StatusCode
TrigJetConditionConfig_htfr::checkVals
()
const
{
35
auto
a2d =
ArgStrToDouble
();
36
if
(a2d(
m_min
) > a2d(
m_max
)){
37
ATH_MSG_ERROR
(
"htMin > htMax"
);
38
return
StatusCode::FAILURE;
39
}
40
return
StatusCode::SUCCESS;
41
}
TrigJetConditionConfig_htfr::checkVals
StatusCode checkVals() const
Definition:
TrigJetConditionConfig_htfr.cxx:34
TrigJetConditionConfig_htfr::getCondition
virtual Condition getCondition() const override
Definition:
TrigJetConditionConfig_htfr.cxx:28
ArgStrToDouble
Definition:
ArgStrToDouble.h:13
ArgStrToDouble.h
TrigJetConditionConfig_htfr::m_max
Gaudi::Property< std::string > m_max
Definition:
TrigJetConditionConfig_htfr.h:38
HTConditionFastReduction.h
Condition
std::unique_ptr< ICondition > Condition
Definition:
ConditionsDefs.h:19
TrigJetConditionConfig_htfr::m_min
Gaudi::Property< std::string > m_min
Definition:
TrigJetConditionConfig_htfr.h:35
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition:
AthMsgStreamMacros.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition:
Control/AthenaKernel/AthenaKernel/errorcheck.h:422
TrigJetConditionConfig_htfr::initialize
virtual StatusCode initialize() override
Definition:
TrigJetConditionConfig_htfr.cxx:21
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
TrigJetConditionConfig_htfr::TrigJetConditionConfig_htfr
TrigJetConditionConfig_htfr(const std::string &type, const std::string &name, const IInterface *parent)
Definition:
TrigJetConditionConfig_htfr.cxx:13
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
TrigJetConditionConfig_htfr.h
Generated on Thu Nov 7 2024 21:29:52 for ATLAS Offline Software by
1.8.18