Logo ROOT  
Reference Guide
No Matches
RooFit::Detail::CodeSquashContext::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 93 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

const std::vector< TNamed const * > _vars

#include <RooFit/Detail/CodeSquashContext.h>

Constructor & Destructor Documentation

◆ LoopScope()

RooFit::Detail::CodeSquashContext::LoopScope::LoopScope ( CodeSquashContext ctx,
std::vector< TNamed const * > &&  vars 

Definition at line 95 of file CodeSquashContext.h.

◆ ~LoopScope()

RooFit::Detail::CodeSquashContext::LoopScope::~LoopScope ( )

Definition at line 96 of file CodeSquashContext.h.

Member Function Documentation

◆ vars()

std::vector< TNamed const * > const & RooFit::Detail::CodeSquashContext::LoopScope::vars ( ) const

Definition at line 98 of file CodeSquashContext.h.

Member Data Documentation

◆ _ctx

CodeSquashContext& RooFit::Detail::CodeSquashContext::LoopScope::_ctx

Definition at line 101 of file CodeSquashContext.h.

◆ _vars

const std::vector<TNamed const *> RooFit::Detail::CodeSquashContext::LoopScope::_vars

Definition at line 102 of file CodeSquashContext.h.

Libraries for RooFit::Detail::CodeSquashContext::LoopScope:

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