51 : _clArr(0), _asArr1(0), _asArr2(0), _asArr3(0), _asArr4(0)
64 : _clArr(other._clArr), _asArr1(other._clArr.
size(), nullptr), _asArr2(other._clArr.
size(), nullptr),
65 _asArr3(other._clArr.
size(), nullptr), _asArr4(other._clArr.
size(), nullptr)
89 for (
unsigned int i = 0; i <
_clArr.size(); ++i) {
116 match &=
_clArr[i] == codeList;
119 if (
_asArr1[i] && !set1) match=false ;
120 if (!
_asArr1[i] && set1) match=false ;
121 if (
_asArr2[i] && !set2) match=false ;
122 if (!
_asArr2[i] && set2) match=false ;
123 if (
_asArr3[i] && !set3) match=false ;
124 if (!
_asArr3[i] && set3) match=false ;
125 if (
_asArr4[i] && !set4) match=false ;
126 if (!
_asArr4[i] && set4) match=false ;
135 if (set1)
delete set1 ;
136 if (set2)
delete set2 ;
137 if (set3)
delete set3 ;
138 if (set4)
delete set4 ;
144 _clArr.push_back(codeList);
145 _asArr1.emplace_back(makeSnapshot(set1));
146 _asArr2.emplace_back(makeSnapshot(set2));
147 _asArr3.emplace_back(makeSnapshot(set3));
148 _asArr4.emplace_back(makeSnapshot(set4));
150 if (set1)
delete set1 ;
151 if (set2)
delete set2 ;
152 if (set3)
delete set3 ;
153 if (set4)
delete set4 ;
162 return _clArr[masterCode] ;
172 return _clArr[masterCode] ;
185 return _clArr[masterCode] ;
200 return _clArr[masterCode] ;
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
Utility class for operator p.d.f classes that keeps track of analytical integration codes and associa...
virtual ~RooAICRegistry()
Destructor.
const std::vector< Int_t > & retrieve(Int_t masterCode) const
Retrieve the array of integer codes associated with the given master code.
RooAICRegistry(UInt_t size=10)
std::vector< pRooArgSet > _asArr2
! Array of 2nd RooArgSet pointers
Int_t store(const std::vector< Int_t > &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...
std::vector< pRooArgSet > _asArr1
! Array of 1st RooArgSet pointers
std::vector< pRooArgSet > _asArr4
! Array of 4th RooArgSet pointers
std::vector< std::vector< Int_t > > _clArr
! Array of array of code lists
std::vector< pRooArgSet > _asArr3
! Array of 3rd RooArgSet pointers
bool equals(const RooAbsCollection &otherColl) const
Check if this and other collection have identically-named contents.
Storage_t::size_type size() const
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooArgSet * snapshot(bool deepCopy=true) const
Use RooAbsCollection::snapshot(), but return as RooArgSet.