ATLAS Offline Software
Loading...
Searching...
No Matches
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"
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
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}
#define ATH_MSG_ERROR(x)
std::unique_ptr< ICondition > Condition
#define CHECK(...)
Evaluate an expression and check for errors.
TrigJetConditionConfig_dijet_dphi(const std::string &type, const std::string &name, const IInterface *parent)
virtual Condition getCondition() const override