ATLAS Offline Software
Loading...
Searching...
No Matches
TrigJetConditionConfig_mult.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 Mult Conditions
7 */
9#include "GaudiKernel/StatusCode.h"
11#include "./ArgStrToSizeT.h"
12
14 const std::string& name,
15 const IInterface* parent) :
16 base_class(type, name, parent){
17
18}
19
20
22
23 auto cnvtr = ArgStrToSizeT();
24 m_min_szt = cnvtr(m_min);
25 m_max_szt = cnvtr(m_max);
26
28
29 return StatusCode::SUCCESS;
30}
31
32
34 return std::make_unique<MultiplicityCondition>(m_min_szt, m_max_szt);
35}
36
37
39 if (m_min_szt >= m_max_szt){
40 ATH_MSG_ERROR("multMin >= multMax " << m_min_szt << " " << m_max_szt
41 << " inputs " << m_min << " " << m_max);
42 return StatusCode::FAILURE;
43 }
44 return StatusCode::SUCCESS;
45}
#define ATH_MSG_ERROR(x)
std::unique_ptr< ICondition > Condition
#define CHECK(...)
Evaluate an expression and check for errors.
virtual Condition getCondition() const override
Gaudi::Property< std::string > m_min
virtual StatusCode initialize() override
Gaudi::Property< std::string > m_max
TrigJetConditionConfig_mult(const std::string &type, const std::string &name, const IInterface *parent)