41 set->snapshot(*out,
false);
73 for (
unsigned int i = 0; i <
_clArr.size(); ++i) {
101 for (
unsigned int i = 0; i <
_clArr.size(); ++i) {
158 match &=
_clArr[i] == codeList;
161 if (
_asArr1[i] && !set1) match=false ;
162 if (!
_asArr1[i] && set1) match=false ;
163 if (
_asArr2[i] && !set2) match=false ;
164 if (!
_asArr2[i] && set2) match=false ;
165 if (
_asArr3[i] && !set3) match=false ;
166 if (!
_asArr3[i] && set3) match=false ;
167 if (
_asArr4[i] && !set4) match=false ;
168 if (!
_asArr4[i] && set4) match=false ;
177 if (set1)
delete set1 ;
178 if (set2)
delete set2 ;
179 if (set3)
delete set3 ;
180 if (set4)
delete set4 ;
186 _clArr.push_back(codeList);
187 _asArr1.emplace_back(makeSnapshot(set1));
188 _asArr2.emplace_back(makeSnapshot(set2));
189 _asArr3.emplace_back(makeSnapshot(set3));
190 _asArr4.emplace_back(makeSnapshot(set4));
192 if (set1)
delete set1 ;
193 if (set2)
delete set2 ;
194 if (set3)
delete set3 ;
195 if (set4)
delete set4 ;
204 return _clArr[masterCode] ;
214 return _clArr[masterCode] ;
227 return _clArr[masterCode] ;
242 return _clArr[masterCode] ;
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
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.
size_t size() const
Get size of _clArr vector.
RooAICRegistry(UInt_t size=10)
void copyImpl(const RooAICRegistry &other)
RooAICRegistry & operator=(const RooAICRegistry &other)
Copy assignment.
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.
RooArgSet is a container object that can hold multiple RooAbsArg objects.