A class to manage loop scopes using the RAII technique.
To wrap your code around a loop, simply place it between a brace inclosed scope with a call to beginLoop at the top. For e.g. { auto scope = ctx.beginLoop({<-set of vector observables to loop over->}); // your loop body code goes here. }
Definition at line 94 of file CodeSquashContext.h.
Public Member Functions | |
LoopScope (CodeSquashContext &ctx, std::vector< TNamed const * > &&vars) | |
~LoopScope () | |
std::vector< TNamed const * > const & | vars () const |
Private Attributes | |
CodeSquashContext & | _ctx |
const std::vector< TNamed const * > | _vars |
#include <RooFit/Detail/CodeSquashContext.h>
|
inline |
Definition at line 96 of file CodeSquashContext.h.
|
inline |
Definition at line 97 of file CodeSquashContext.h.
|
inline |
Definition at line 99 of file CodeSquashContext.h.
|
private |
Definition at line 102 of file CodeSquashContext.h.
|
private |
Definition at line 103 of file CodeSquashContext.h.