ATLAS Offline Software
Trigger
TrigHypothesis
TrigHLTJetHypo
src
TrigJetConditionConfig_abs_eta.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
#include "
TrigJetConditionConfig_abs_eta.h
"
6
7
#include "GaudiKernel/StatusCode.h"
8
#include "
./EtaConditionAbs.h
"
9
10
TrigJetConditionConfig_abs_eta::TrigJetConditionConfig_abs_eta
(
const
std::string&
type
,
11
const
std::string&
name
,
12
const
IInterface*
parent
) :
13
base_class(
type
,
name
,
parent
){
14
15
}
16
17
18
StatusCode
TrigJetConditionConfig_abs_eta::initialize
() {
19
CHECK
(
checkVals
());
20
return
StatusCode::SUCCESS;
21
}
22
23
24
Condition
TrigJetConditionConfig_abs_eta::getCondition
()
const
{
25
auto
a2d =
ArgStrToDouble
();
26
return
std::make_unique<EtaConditionAbs>(a2d(
m_min
), a2d(
m_max
));
27
}
28
29
30
StatusCode
TrigJetConditionConfig_abs_eta::checkVals
()
const
{
31
32
auto
a2d =
ArgStrToDouble
();
33
34
auto
min_val = a2d(
m_min
);
35
auto
max_val = a2d(
m_max
);
36
37
if
(min_val < 0.){
38
ATH_MSG_ERROR
(
" min eta < 0 "
<<
m_min
);
39
return
StatusCode::FAILURE;
40
}
41
42
if
(min_val > max_val){
43
ATH_MSG_ERROR
(
" min eta > max eta"
);
44
return
StatusCode::FAILURE;
45
}
46
return
StatusCode::SUCCESS;
47
}
48
TrigJetConditionConfig_abs_eta::checkVals
StatusCode checkVals() const
Definition:
TrigJetConditionConfig_abs_eta.cxx:30
EtaConditionAbs.h
ArgStrToDouble
Definition:
ArgStrToDouble.h:13
TrigJetConditionConfig_abs_eta::initialize
virtual StatusCode initialize() override
Definition:
TrigJetConditionConfig_abs_eta.cxx:18
TrigJetConditionConfig_abs_eta::getCondition
virtual Condition getCondition() const override
Definition:
TrigJetConditionConfig_abs_eta.cxx:24
Condition
std::unique_ptr< ICondition > Condition
Definition:
ConditionsDefs.h:19
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_abs_eta::m_min
Gaudi::Property< std::string > m_min
Definition:
TrigJetConditionConfig_abs_eta.h:28
TrigJetConditionConfig_abs_eta::TrigJetConditionConfig_abs_eta
TrigJetConditionConfig_abs_eta(const std::string &type, const std::string &name, const IInterface *parent)
Definition:
TrigJetConditionConfig_abs_eta.cxx:10
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
TrigJetConditionConfig_abs_eta.h
TrigJetConditionConfig_abs_eta::m_max
Gaudi::Property< std::string > m_max
Definition:
TrigJetConditionConfig_abs_eta.h:31
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
Generated on Sun Dec 22 2024 21:21:05 for ATLAS Offline Software by
1.8.18