ATLAS Offline Software
Loading...
Searching...
No Matches
TrigJetConditionConfig_dijet_mass.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_Mass Conditions
7 */
9#include "GaudiKernel/StatusCode.h"
11#include "./ArgStrToDouble.h"
12
14 const std::string& name,
15 const IInterface* parent) :
16 base_class(type, name, parent){
17
18}
19
20
23
24 return StatusCode::SUCCESS;
25}
26
27
29 auto a2d = ArgStrToDouble();
30 return std::make_unique<DijetMassCondition>(a2d(m_min), a2d(m_max));
31}
32
33
35 auto a2d = ArgStrToDouble();
36 if (a2d(m_min) > a2d(m_max)){
37 ATH_MSG_ERROR("mass min > mass max");
38 return StatusCode::FAILURE;
39 }
40 return StatusCode::SUCCESS;
41}
#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_dijet_mass(const std::string &type, const std::string &name, const IInterface *parent)