ATLAS Offline Software
Loading...
Searching...
No Matches
TrigJetConditionConfig_signed_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
6
7#include "GaudiKernel/StatusCode.h"
9
11 const std::string& name,
12 const IInterface* parent) :
13 base_class(type, name, parent){
14
15}
16
17
20 return StatusCode::SUCCESS;
21}
22
23
25 auto a2d = ArgStrToDouble();
26 return std::make_unique<EtaConditionSigned>(a2d(m_min), a2d(m_max));
27}
28
29
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 > max_val){
38 ATH_MSG_ERROR(" min eta > max eta: " << min_val << " " << max_val);
39 return StatusCode::FAILURE;
40 }
41 return StatusCode::SUCCESS;
42}
#define ATH_MSG_ERROR(x)
std::unique_ptr< ICondition > Condition
#define CHECK(...)
Evaluate an expression and check for errors.
TrigJetConditionConfig_signed_eta(const std::string &type, const std::string &name, const IInterface *parent)
virtual Condition getCondition() const override