YODA::YDirectionMixin< Derived > Struct Template Reference CRTP mixin introducing convenience aliases along Y axis. More...
Detailed Descriptiontemplate<class Derived> struct YODA::YDirectionMixin< Derived > CRTP mixin introducing convenience aliases along Y axis. Definition at line 142 of file PointUtils.h. Member Function Documentation◆ scaleY()
template<class Derived >
Scaling of y axis. Definition at line 268 of file PointUtils.h. 268 {
271 }
References YODA::YDirectionMixin< Derived >::setY(), YODA::YDirectionMixin< Derived >::setYErrs(), YODA::YDirectionMixin< Derived >::y(), YODA::YDirectionMixin< Derived >::yErrMinus(), and YODA::YDirectionMixin< Derived >::yErrPlus(). ◆ setXY() [1/2]
template<class Derived >
Set x and y values. Definition at line 169 of file PointUtils.h. References YODA::YDirectionMixin< Derived >::setXY(), and YODA::YDirectionMixin< Derived >::xy(). ◆ setXY() [2/2]
template<class Derived >
Set x and y values. Definition at line 163 of file PointUtils.h. 163 {
164 static_cast<Derived*>(this)->setVal(0, x);
166 }
References YODA::YDirectionMixin< Derived >::y(). Referenced by YODA::YDirectionMixin< Derived >::setXY(). ◆ setY() [1/4]
template<class Derived >
Set the y value. Definition at line 153 of file PointUtils.h. References YODA::YDirectionMixin< Derived >::y(). Referenced by YODA::YDirectionMixin< Derived >::scaleY(), YODA::YDirectionMixin< Derived >::setY(), YODA::YDirectionMixin< Derived >::setY(), and YODA::YDirectionMixin< Derived >::setY(). ◆ setY() [2/4]
template<class Derived >
Set y value and symmetric error. Definition at line 245 of file PointUtils.h. 245 {
247 setYErr(ey);
248 }
References YODA::YDirectionMixin< Derived >::setY(), YODA::YDirectionMixin< Derived >::setYErr(), and YODA::YDirectionMixin< Derived >::y(). ◆ setY() [3/4]
template<class Derived >
Set y value and asymmetric error. Definition at line 251 of file PointUtils.h. References YODA::YDirectionMixin< Derived >::setY(), YODA::YDirectionMixin< Derived >::setYErrs(), and YODA::YDirectionMixin< Derived >::y(). ◆ setY() [4/4]
template<class Derived >
Set y value and asymmetric error. Definition at line 257 of file PointUtils.h. References YODA::YDirectionMixin< Derived >::setY(), YODA::YDirectionMixin< Derived >::setYErrs(), and YODA::YDirectionMixin< Derived >::y(). ◆ setYErr()
template<class Derived >
Set symmetric y error. Definition at line 209 of file PointUtils.h. 209 {
210 setYErrMinus(ey);
211 setYErrPlus(ey);
212 }
References YODA::YDirectionMixin< Derived >::setYErrMinus(), and YODA::YDirectionMixin< Derived >::setYErrPlus(). Referenced by YODA::YDirectionMixin< Derived >::setY(), and YODA::YDirectionMixin< Derived >::setYErrs(). ◆ setYErrMinus()
template<class Derived >
Set the minus y errors. Definition at line 199 of file PointUtils.h. 199 {
200 static_cast<Derived*>(this)->setErrMinus(1, err);
201 }
Referenced by YODA::YDirectionMixin< Derived >::setYErr(). ◆ setYErrPlus()
template<class Derived >
Set the plus y errors. Definition at line 204 of file PointUtils.h. 204 {
205 static_cast<Derived*>(this)->setErrPlus(1, err);
206 }
Referenced by YODA::YDirectionMixin< Derived >::setYErr(). ◆ setYErrs() [1/3]
template<class Derived >
Set the y errors. Definition at line 220 of file PointUtils.h. 220 {
221 static_cast<Derived*>(this)->setErrs(1, {errminus, errplus});
222 }
◆ setYErrs() [2/3]
template<class Derived >
Set symmetric y error (alias) Definition at line 215 of file PointUtils.h. References YODA::YDirectionMixin< Derived >::setYErr(). Referenced by YODA::YDirectionMixin< Derived >::scaleY(), YODA::YDirectionMixin< Derived >::setY(), and YODA::YDirectionMixin< Derived >::setY(). ◆ setYErrs() [3/3]
template<class Derived >
Set the y errors. Definition at line 225 of file PointUtils.h. 225 {
226 static_cast<Derived*>(this)->setErrs(1, errs);
227 }
◆ xy()
template<class Derived >
Definition at line 157 of file PointUtils.h. 157 {
158 const auto& vals = static_cast<const Derived*>(this)->vals();
159 return {vals[0], vals[1]};
160 }
Referenced by YODA::YDirectionMixin< Derived >::setXY(). ◆ y()
template<class Derived >
Get y value. Definition at line 148 of file PointUtils.h. 148 {
149 return static_cast<const Derived*>(this)->vals()[1];
150 }
Referenced by YODA::YDirectionMixin< Derived >::scaleY(), YODA::YDirectionMixin< Derived >::setXY(), YODA::YDirectionMixin< Derived >::setY(), YODA::YDirectionMixin< Derived >::setY(), YODA::YDirectionMixin< Derived >::setY(), and YODA::YDirectionMixin< Derived >::setY(). ◆ yErrAvg()
template<class Derived >
Definition at line 194 of file PointUtils.h. 194 {
195 return static_cast<const Derived*>(this)->errAvg(1);
196 }
◆ yErrMinus()
template<class Derived >
Get minus y error. Definition at line 184 of file PointUtils.h. 184 {
185 return static_cast<const Derived*>(this)->errMinus(1);
186 }
Referenced by YODA::YDirectionMixin< Derived >::scaleY(). ◆ yErrPlus()
template<class Derived >
Get plus y error. Definition at line 189 of file PointUtils.h. 189 {
190 return static_cast<const Derived*>(this)->errPlus(1);
191 }
Referenced by YODA::YDirectionMixin< Derived >::scaleY(). ◆ yErrs()
template<class Derived >
Get y error pair. Definition at line 179 of file PointUtils.h. 179 {
180 return static_cast<const Derived*>(this)->errs(1);
181 }
◆ yMax()
template<class Derived >
Get value plus positive y-error. Definition at line 235 of file PointUtils.h. 235 {
236 return static_cast<const Derived*>(this)->max(1);
237 }
◆ yMin()
template<class Derived >
Get value minus negative y-error. Definition at line 230 of file PointUtils.h. 230 {
231 return static_cast<const Derived*>(this)->min(1);
232 }
The documentation for this struct was generated from the following file:
Generated on Mon Oct 28 2024 13:47:24 for YODA - Yet more Objects for Data Analysis by 1.9.8 |