ATLAS Offline Software
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  */
9 #include "GaudiKernel/StatusCode.h"
10 #include "./DijetDPhiCondition.h"
11 #include "./ArgStrToDouble.h"
12 
13 
15  const std::string& name,
16  const IInterface* parent) :
17  base_class(type, name, parent){
18 
19 }
20 
21 
23  CHECK(checkVals());
24 
25  return StatusCode::SUCCESS;
26 }
27 
28 
30  auto a2d = ArgStrToDouble();
31  return std::make_unique<DijetDPhiCondition>(a2d(m_min), a2d(m_max));
32 }
33 
34 
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 }
TrigJetConditionConfig_dijet_dphi::m_max
Gaudi::Property< std::string > m_max
Definition: TrigJetConditionConfig_dijet_dphi.h:31
DijetDPhiCondition.h
ArgStrToDouble
Definition: ArgStrToDouble.h:13
ArgStrToDouble.h
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
Condition
std::unique_ptr< ICondition > Condition
Definition: ConditionsDefs.h:19
TrigJetConditionConfig_dijet_dphi::getCondition
virtual Condition getCondition() const override
Definition: TrigJetConditionConfig_dijet_dphi.cxx:29
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
TrigJetConditionConfig_dijet_dphi::checkVals
StatusCode checkVals() const
Definition: TrigJetConditionConfig_dijet_dphi.cxx:35
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
TrigJetConditionConfig_dijet_dphi::initialize
virtual StatusCode initialize() override
Definition: TrigJetConditionConfig_dijet_dphi.cxx:22
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TrigJetConditionConfig_dijet_dphi.h
TrigJetConditionConfig_dijet_dphi::m_min
Gaudi::Property< std::string > m_min
Definition: TrigJetConditionConfig_dijet_dphi.h:28
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78