ATLAS Offline Software
Loading...
Searching...
No Matches
TrigJetConditionConfig_smc.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"
8#include "./SMCCondition.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<SMCCondition>(a2d(m_min), a2d(m_max));
27}
28
29
31
32 auto a2d = ArgStrToDouble();
33 if (a2d(m_min) > a2d(m_max)){
34 ATH_MSG_ERROR(" min smc > max smc");
35 return StatusCode::FAILURE;
36 }
37 return StatusCode::SUCCESS;
38}
#define ATH_MSG_ERROR(x)
std::unique_ptr< ICondition > Condition
#define CHECK(...)
Evaluate an expression and check for errors.
virtual Condition getCondition() const override
TrigJetConditionConfig_smc(const std::string &type, const std::string &name, const IInterface *parent)
Gaudi::Property< std::string > m_min
virtual StatusCode initialize() override
Gaudi::Property< std::string > m_max