Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooAICRegistry Class Reference

Registry for analytical integration codes.

Utility class for operator p.d.f classes that keeps track of analytical integration codes and associated normalization and integration sets.

Definition at line 26 of file RooAICRegistry.h.

Classes

struct  Output
 

Public Member Functions

 RooAICRegistry (const RooAICRegistry &other)
 
 RooAICRegistry (RooAICRegistry &&other)=default
 
 RooAICRegistry (std::size_t size=10)
 
RooAICRegistryoperator= (const RooAICRegistry &other)
 Copy assignment.
 
RooAICRegistryoperator= (RooAICRegistry &&other)=default
 
Output retrieve (int masterCode)
 Retrieve the array of integer codes associated with the given master code, together with the (up to four) RooArgSets associated with this master code.
 
std::size_t size () const
 Number of stored code lists.
 
int store (const std::vector< int > &codeList, RooArgSet *set1=nullptr, RooArgSet *set2=nullptr, RooArgSet *set3=nullptr, RooArgSet *set4=nullptr)
 Store given arrays of integer codes, and up to four RooArgSets in the registry (each setX pointer may be null).
 

Protected Attributes

std::array< std::vector< std::unique_ptr< RooArgSet > >, 4 > _asArr
 ! Array of RooArgSet pointers
 
std::vector< std::vector< int > > _clArr
 ! Array of array of code lists
 

#include <RooAICRegistry.h>

Constructor & Destructor Documentation

◆ RooAICRegistry() [1/3]

RooAICRegistry::RooAICRegistry ( std::size_t size = 10)

Definition at line 44 of file RooAICRegistry.cxx.

◆ RooAICRegistry() [2/3]

RooAICRegistry::RooAICRegistry ( const RooAICRegistry & other)

Definition at line 52 of file RooAICRegistry.cxx.

◆ RooAICRegistry() [3/3]

RooAICRegistry::RooAICRegistry ( RooAICRegistry && other)
default

Member Function Documentation

◆ operator=() [1/2]

RooAICRegistry & RooAICRegistry::operator= ( const RooAICRegistry & other)

Copy assignment.

Definition at line 66 of file RooAICRegistry.cxx.

◆ operator=() [2/2]

RooAICRegistry & RooAICRegistry::operator= ( RooAICRegistry && other)
default

◆ retrieve()

Output RooAICRegistry::retrieve ( int masterCode)
inline

Retrieve the array of integer codes associated with the given master code, together with the (up to four) RooArgSets associated with this master code.

Definition at line 45 of file RooAICRegistry.h.

◆ size()

std::size_t RooAICRegistry::size ( ) const
inline

Number of stored code lists.

Definition at line 55 of file RooAICRegistry.h.

◆ store()

int RooAICRegistry::store ( const std::vector< int > & codeList,
RooArgSet * set1 = nullptr,
RooArgSet * set2 = nullptr,
RooArgSet * set3 = nullptr,
RooArgSet * set4 = nullptr )

Store given arrays of integer codes, and up to four RooArgSets in the registry (each setX pointer may be null).

The registry clones all RooArgSets internally so the RooArgSets passed as arguments do not need to live beyond the store() call. The return value is a unique master code for the given configuration of integers and RooArgSets. If an identical combination is previously stored in the registry no objects are stored and the unique code of the existing entry is returned.

Definition at line 83 of file RooAICRegistry.cxx.

Member Data Documentation

◆ _asArr

std::array<std::vector<std::unique_ptr<RooArgSet> >, 4> RooAICRegistry::_asArr
protected

! Array of RooArgSet pointers

Definition at line 59 of file RooAICRegistry.h.

◆ _clArr

std::vector<std::vector<int> > RooAICRegistry::_clArr
protected

! Array of array of code lists

Definition at line 58 of file RooAICRegistry.h.

Libraries for RooAICRegistry:

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