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) | |
| RooAICRegistry & | operator= (const RooAICRegistry &other) |
| Copy assignment. | |
| RooAICRegistry & | operator= (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>
| RooAICRegistry::RooAICRegistry | ( | std::size_t | size = 10 | ) |
Definition at line 44 of file RooAICRegistry.cxx.
| RooAICRegistry::RooAICRegistry | ( | const RooAICRegistry & | other | ) |
Definition at line 52 of file RooAICRegistry.cxx.
|
default |
| RooAICRegistry & RooAICRegistry::operator= | ( | const RooAICRegistry & | other | ) |
Copy assignment.
Definition at line 66 of file RooAICRegistry.cxx.
|
default |
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.
|
inline |
Number of stored code lists.
Definition at line 55 of file RooAICRegistry.h.
| 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.
|
protected |
! Array of RooArgSet pointers
Definition at line 59 of file RooAICRegistry.h.
|
protected |
! Array of array of code lists
Definition at line 58 of file RooAICRegistry.h.