![]() |
MaCh3
2.6.0
Reference Guide
|
Helper object for storing/updating information related to functional shift parameters. More...
#include <Samples/SampleHandlerFunctional.h>
Classes | |
| struct | Shift |
Public Member Functions | |
| void | update_vals () |
Public Attributes | |
| std::vector< Shift > | shifts |
| std::vector< std::vector< int > > | event_shifts |
Helper object for storing/updating information related to functional shift parameters.
For each shift (which may consume multiple parameters) this class stores the function that applies the shift to a given event index given the current vector of parameter values (Functional::Shift::apply), which is supplied by the an experiment sample calling RegisterIndividualFunctionalParameter. It also stores the last parameter values for all parameters consumed by a given shift (Functional::Shift::par_vals) and a function that will get the current parameter values from the ParHandler object (Functional::Shift::update_vals). For each event managed by the SampleHandlerBase instance, a vector of indexes of functional shifts that are applicable is stored (Functional::event_shifts). i.e. to iterate over the relevant Functional::Shift instance for event ev_it you might do for(auto & fs_it : functional.event_shifts[ev_it]){ // do something with functional.shifts[fs_it] } functional.update_vals() will update the current parameter values for all registered shifts.
Definition at line 30 of file SampleHandlerFunctional.h.
|
inline |
Definition at line 37 of file SampleHandlerFunctional.h.
| std::vector<std::vector<int> > M3::detail::Functional::event_shifts |
Definition at line 42 of file SampleHandlerFunctional.h.
| std::vector<Shift> M3::detail::Functional::shifts |
Definition at line 36 of file SampleHandlerFunctional.h.