41 return StatusCode::SUCCESS;
52 if ( handle_inOut.isValid() ) {
54 return StatusCode::SUCCESS;
58 std::unique_ptr<xAOD::EventShape> evs_ptr(evs);
61 std::unique_ptr<xAOD::EventShapeAuxInfo> evsaux_ptr( evsaux);
67 if ( ! h_out.record(std::move(evs_ptr), std::move(evsaux_ptr)) ) {
73 return StatusCode::SUCCESS;
82 inputES = handle_in.
cptr();
85 return StatusCode::FAILURE;
94 DensityAcc(*evs) = InputDensityAcc(*inputES);
95 DensitySigmaAcc(*evs) = InputDensitySigmaAcc(*inputES);
96 DensityAreaAcc(*evs) = InputDensityAreaAcc(*inputES);
98 return StatusCode::SUCCESS;
105 setProperty(
"InputEventShape",
"LCTopoEventShape").ignore();
106 setProperty(
"OutputEventShape",
"Kt4LCTopoEventShape").ignore();
107 setProperty(
"EventDensityName",
"DensityForJetsR4").ignore();
111 setProperty(
"InputEventShape",
"LCTopoEventShape").ignore();
112 setProperty(
"OutputEventShape",
"Kt6LCTopoEventShape").ignore();
113 setProperty(
"EventDensityName",
"DensityForJetsR6").ignore();
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Helper class to provide constant type-safe access to aux data.
Helper class to provide type-safe access to aux data.
void setProperty(columnar::PythonToolHandle &self, const std::string &key, nb::object value)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
~EventShapeCopier()
Destructor:
SG::ReadHandleKey< xAOD::EventShape > m_outputEventShapeIn
void renameEventDensities()
This function is only a convenience function for use in Standalone Analysis it avoids the need of con...
StatusCode initialize()
Initialization.
SG::WriteHandleKey< xAOD::EventShape > m_outputEventShape
StatusCode fillEventShape() const
Action.
SG::ReadHandleKey< xAOD::EventShape > m_inputEventShape
EventShapeCopier(const std::string &name)
Constructor with parameters:
std::string m_eventDensityName
Helper class to provide type-safe access to aux data.
void setStore(const SG::IConstAuxStore *store)
Set the store associated with this object.
Helper class to provide constant type-safe access to aux data.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
EventShape_v1 EventShape
Definition of the current event format version.
EventShapeAuxInfo_v1 EventShapeAuxInfo
Definition of the latest event shape auxiliary info version.