ATLAS Offline Software
TrigJetConditionConfig_timesig.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 SIGNIFICANCE TIMING Condition
7  */
9 #include "GaudiKernel/StatusCode.h"
11 #include "./ArgStrToDouble.h"
12 
13 TrigJetConditionConfig_timesig::TrigJetConditionConfig_timesig(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<TimeSignificanceCondition>(a2d(m_minTimeSignificance), a2d(m_maxTime));
28 }
29 
30 
32  return StatusCode::SUCCESS;
33 }
TrigJetConditionConfig_timesig::TrigJetConditionConfig_timesig
TrigJetConditionConfig_timesig(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TrigJetConditionConfig_timesig.cxx:13
ArgStrToDouble
Definition: ArgStrToDouble.h:13
ArgStrToDouble.h
Condition
std::unique_ptr< ICondition > Condition
Definition: ConditionsDefs.h:19
TrigJetConditionConfig_timesig::getCondition
virtual Condition getCondition() const override
Definition: TrigJetConditionConfig_timesig.cxx:25
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TrigJetConditionConfig_timesig::m_maxTime
Gaudi::Property< std::string > m_maxTime
Definition: TrigJetConditionConfig_timesig.h:30
TrigJetConditionConfig_timesig::m_minTimeSignificance
Gaudi::Property< std::string > m_minTimeSignificance
Definition: TrigJetConditionConfig_timesig.h:27
TrigJetConditionConfig_timesig.h
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_timesig::initialize
virtual StatusCode initialize() override
Definition: TrigJetConditionConfig_timesig.cxx:18
TimeSignificanceCondition.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TrigJetConditionConfig_timesig::checkVals
StatusCode checkVals() const
Definition: TrigJetConditionConfig_timesig.cxx:31