|
ATLAS Offline Software
|
Go to the documentation of this file.
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;
float et() const
Transverse energy reconstructed on the slice.
Extra patterns decribing particle interation process.
Scalar phi() const
phi method
Helper to simultaneously calculate sin and cos of the same angle.
const std::vector< float > & etSin() const
sine (x) part of the harmonic modulation strength
Interface class for the HI reconstruction EDM.
Handle class for recording to StoreGate.
const std::vector< float > & etCos() const
cosine (y) part of the harmonic modulation strength Following convention is used: index 0 is first ha...
::StatusCode StatusCode
StatusCode definition for legacy code.
const_pointer_type get() const
Dereference the pointer, but don't cache anything.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
#define ATH_MSG_WARNING(x)
Helper to simultaneously calculate sin and cos of the same angle.
const T * at(size_type n) const
Access an element, as an rvalue.
Handle class for reading from StoreGate.
size_type size() const noexcept
Returns the number of elements in the collection.