ATLAS Offline Software
Loading...
Searching...
No Matches
TrigJetConditionConfig_pileuprm.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5/*
6 Instantiator for PT Condition
7 */
9#include "GaudiKernel/StatusCode.h"
11#include "./ArgStrToDouble.h"
12
13
15 const std::string& name,
16 const IInterface* parent) :
17 base_class(type, name, parent){
18
19}
20
21
23 return StatusCode::SUCCESS;
24}
25
26
28 auto a2d = ArgStrToDouble();
29
30 return std::make_unique<PileupRemovalCondition>(a2d(m_min),
31 a2d(m_max));
32}
33
34
36 auto a2d = ArgStrToDouble();
37 if (a2d(m_min) > a2d(m_max)){
38 ATH_MSG_ERROR(" min LogR cut > max LogR cut");
39 return StatusCode::FAILURE;
40 }
41
42 return StatusCode::SUCCESS;
43}
#define ATH_MSG_ERROR(x)
std::unique_ptr< ICondition > Condition
TrigJetConditionConfig_pileuprm(const std::string &type, const std::string &name, const IInterface *parent)
virtual Condition getCondition() const override