ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigHypothesis
TrigHLTJetHypo
src
TrigJetConditionConfig_dijet_dphi.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 Dijet_Dphi Conditions
7
*/
8
#include "
TrigJetConditionConfig_dijet_dphi.h
"
9
#include "GaudiKernel/StatusCode.h"
10
#include "
./DijetDPhiCondition.h
"
11
#include "
./ArgStrToDouble.h
"
12
13
14
TrigJetConditionConfig_dijet_dphi::TrigJetConditionConfig_dijet_dphi
(
const
std::string&
type
,
15
const
std::string& name,
16
const
IInterface* parent) :
17
base_class(
type
, name, parent){
18
19
}
20
21
22
StatusCode
TrigJetConditionConfig_dijet_dphi::initialize
() {
23
CHECK
(
checkVals
());
24
25
return
StatusCode::SUCCESS;
26
}
27
28
29
Condition
TrigJetConditionConfig_dijet_dphi::getCondition
()
const
{
30
auto
a2d =
ArgStrToDouble
();
31
return
std::make_unique<DijetDPhiCondition>(a2d(
m_min
), a2d(
m_max
));
32
}
33
34
35
StatusCode
TrigJetConditionConfig_dijet_dphi::checkVals
()
const
{
36
37
auto
a2d =
ArgStrToDouble
();
38
39
if
(a2d(
m_min
) >a2d(
m_max
)){
40
ATH_MSG_ERROR
(
"Error: dPhiMin > dphiMax"
);
41
return
StatusCode::FAILURE;
42
}
43
return
StatusCode::SUCCESS;
44
}
ArgStrToDouble.h
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition
AthMsgStreamMacros.h:33
Condition
std::unique_ptr< ICondition > Condition
Definition
ConditionsDefs.h:19
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition
Control/AthenaKernel/AthenaKernel/errorcheck.h:422
DijetDPhiCondition.h
TrigJetConditionConfig_dijet_dphi.h
ArgStrToDouble
Definition
ArgStrToDouble.h:13
TrigJetConditionConfig_dijet_dphi::m_min
Gaudi::Property< std::string > m_min
Definition
TrigJetConditionConfig_dijet_dphi.h:28
TrigJetConditionConfig_dijet_dphi::m_max
Gaudi::Property< std::string > m_max
Definition
TrigJetConditionConfig_dijet_dphi.h:31
TrigJetConditionConfig_dijet_dphi::TrigJetConditionConfig_dijet_dphi
TrigJetConditionConfig_dijet_dphi(const std::string &type, const std::string &name, const IInterface *parent)
Definition
TrigJetConditionConfig_dijet_dphi.cxx:14
TrigJetConditionConfig_dijet_dphi::checkVals
StatusCode checkVals() const
Definition
TrigJetConditionConfig_dijet_dphi.cxx:35
TrigJetConditionConfig_dijet_dphi::getCondition
virtual Condition getCondition() const override
Definition
TrigJetConditionConfig_dijet_dphi.cxx:29
TrigJetConditionConfig_dijet_dphi::initialize
virtual StatusCode initialize() override
Definition
TrigJetConditionConfig_dijet_dphi.cxx:22
type
Generated on
for ATLAS Offline Software by
1.17.0