ATLAS Offline Software
TrigJetConditionConfig_bdips.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /*
6  Instantiator for JVT Condition
7  */
9 #include "GaudiKernel/StatusCode.h"
10 #include "./DipsCondition.h"
11 #include "./ArgStrToDouble.h"
12 
13 TrigJetConditionConfig_bdips::TrigJetConditionConfig_bdips(const std::string& type, const std::string& name, const IInterface* parent) :
14  base_class(type, name, parent){
15 }
16 
17 
19  CHECK(checkVals());
20 
21  return StatusCode::SUCCESS;
22 }
23 
24 
26  auto a2d = ArgStrToDouble();
27  return std::make_unique<DipsCondition>(
28  a2d(m_min),
29  a2d(m_cfrac),
30  m_name_pb,
31  m_name_pc,
32  m_name_pu,
33  m_name_valid);
34 }
35 
36 
38  return StatusCode::SUCCESS;
39 }
TrigJetConditionConfig_bdips.h
ArgStrToDouble
Definition: ArgStrToDouble.h:13
ArgStrToDouble.h
TrigJetConditionConfig_bdips::getCondition
virtual Condition getCondition() const override
Definition: TrigJetConditionConfig_bdips.cxx:25
Condition
std::unique_ptr< ICondition > Condition
Definition: ConditionsDefs.h:19
TrigJetConditionConfig_bdips::TrigJetConditionConfig_bdips
TrigJetConditionConfig_bdips(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TrigJetConditionConfig_bdips.cxx:13
TrigJetConditionConfig_bdips::m_name_pc
Gaudi::Property< std::string > m_name_pc
Definition: TrigJetConditionConfig_bdips.h:35
TrigJetConditionConfig_bdips::m_name_pb
Gaudi::Property< std::string > m_name_pb
Definition: TrigJetConditionConfig_bdips.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TrigJetConditionConfig_bdips::checkVals
StatusCode checkVals() const
Definition: TrigJetConditionConfig_bdips.cxx:37
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
TrigJetConditionConfig_bdips::m_cfrac
Gaudi::Property< std::string > m_cfrac
Definition: TrigJetConditionConfig_bdips.h:31
TrigJetConditionConfig_bdips::m_name_valid
Gaudi::Property< std::string > m_name_valid
Definition: TrigJetConditionConfig_bdips.h:39
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TrigJetConditionConfig_bdips::m_name_pu
Gaudi::Property< std::string > m_name_pu
Definition: TrigJetConditionConfig_bdips.h:37
DipsCondition.h
TrigJetConditionConfig_bdips::m_min
Gaudi::Property< std::string > m_min
Definition: TrigJetConditionConfig_bdips.h:26
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TrigJetConditionConfig_bdips::initialize
virtual StatusCode initialize() override
Definition: TrigJetConditionConfig_bdips.cxx:18