Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooFit::Experimental::CodegenContext::LoopScope Class Reference

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 95 of file CodegenContext.h.

Public Member Functions

 LoopScope (CodegenContext &ctx, std::vector< TNamed const * > &&vars)
 
 ~LoopScope ()
 
std::vector< TNamed const * > const & vars () const
 

Private Attributes

CodegenContext_ctx
 
const std::vector< TNamed const * > _vars
 

#include <RooFit/CodegenContext.h>

Constructor & Destructor Documentation

◆ LoopScope()

RooFit::Experimental::CodegenContext::LoopScope::LoopScope ( CodegenContext ctx,
std::vector< TNamed const * > &&  vars 
)
inline

Definition at line 97 of file CodegenContext.h.

◆ ~LoopScope()

RooFit::Experimental::CodegenContext::LoopScope::~LoopScope ( )
inline

Definition at line 98 of file CodegenContext.h.

Member Function Documentation

◆ vars()

std::vector< TNamed const * > const & RooFit::Experimental::CodegenContext::LoopScope::vars ( ) const
inline

Definition at line 100 of file CodegenContext.h.

Member Data Documentation

◆ _ctx

CodegenContext& RooFit::Experimental::CodegenContext::LoopScope::_ctx
private

Definition at line 103 of file CodegenContext.h.

◆ _vars

const std::vector<TNamed const *> RooFit::Experimental::CodegenContext::LoopScope::_vars
private

Definition at line 104 of file CodegenContext.h.

Libraries for RooFit::Experimental::CodegenContext::LoopScope:

The documentation for this class was generated from the following file: