ATLAS Offline Software
Loading...
Searching...
No Matches
TrigJetConditionConfig_htdipz.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5/*
6 Instantiator for ht+dipz Conditions
7 */
9#include "GaudiKernel/StatusCode.h"
10#include "./DipzLikelihoodCmp.h"
13#include "./ArgStrToDouble.h"
14
15
17 const std::string& name,
18 const IInterface* parent) :
19 base_class(type, name, parent){
20
21}
22
23
26
27 return StatusCode::SUCCESS;
28}
29
30
32 auto a2d = ArgStrToDouble();
33
35 std::unique_ptr<HTConditionFastReduction> HTcond = std::make_unique<HTConditionFastReduction>(a2d(m_min), a2d(m_max));
36 return std::make_unique<MaxCombinationCondition<DipzLikelihoodCmp>>(a2d(m_capacity), std::move(HTcond), mlplComp);
37
38}
39
40
42 auto a2d = ArgStrToDouble();
43 if (a2d(m_min) > a2d(m_max)){
44 ATH_MSG_ERROR("htMin > htMax");
45 return StatusCode::FAILURE;
46 }
47 return StatusCode::SUCCESS;
48}
#define ATH_MSG_ERROR(x)
std::unique_ptr< ICondition > Condition
#define CHECK(...)
Evaluate an expression and check for errors.
Gaudi::Property< std::string > m_decName_negLogSigma2
TrigJetConditionConfig_htdipz(const std::string &type, const std::string &name, const IInterface *parent)
Gaudi::Property< std::string > m_max
Gaudi::Property< std::string > m_decName_z
virtual Condition getCondition() const override
Gaudi::Property< std::string > m_min
Gaudi::Property< std::string > m_capacity