15#ifndef XAOD_STANDALONE
18 declareInterface<IHIUEModulatorTool>(
this);
33 ATH_MSG_WARNING(
"Requested modulation, but provided no name for HIEventShapeContainer, no modulation will be applied");
37 return StatusCode::SUCCESS;
59 if (
getShape (shape).isFailure() || !shape)
69 ATH_MSG_DEBUG(
"ShapeKey empty, no modulation, returning shape =" << shape);
70 return StatusCode::SUCCESS;
74 if (!read_handle_evtShape.
isValid()) {
76 return(StatusCode::FAILURE);
81 if(mod_shape->
size()==0)
84 return StatusCode::FAILURE;
86 shape = mod_shape->
at(0);
87 return StatusCode::SUCCESS;
96 for(
unsigned int i : nh_vector)
103 float qx=shape->
etCos().at(ih);
104 float qy=shape->
etSin().at(ih);
106 modulation+=2.*
sc.apply(qy,qx);
116 return ( shape->
etCos().size() >= n ) ? StatusCode::SUCCESS : StatusCode::FAILURE;
126 return StatusCode::FAILURE;
129 return StatusCode::SUCCESS;
Scalar phi() const
phi method
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
const T * at(size_type n) const
Access an element, as an rvalue.
size_type size() const noexcept
Returns the number of elements in the collection.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type get() const
Dereference the pointer, but don't cache anything.
const std::vector< float > & etSin() const
sine (x) part of the harmonic modulation strength
const std::vector< float > & etCos() const
cosine (y) part of the harmonic modulation strength Following convention is used: index 0 is first ha...
float et() const
Transverse energy reconstructed on the slice.
HIEventShapeContainer_v2 HIEventShapeContainer
Define the latest version of the container.
HIEventShape_v2 HIEventShape
Definition of the latest event info version.
Helper to simultaneously calculate sin and cos of the same angle.
Helper to simultaneously calculate sin and cos of the same angle.
Extra patterns decribing particle interation process.