54 _realSet(
"realSet",
"Set of real-valued components to be tracked",this),
55 _catSet(
"catSet",
"Set of discrete-valued components to be tracked",this),
56 _realRef(trackSet.
size()),
57 _catRef(trackSet.
size()),
58 _checkVal(checkValues)
60for (
const auto arg : trackSet) {
90 _realSet(
"realSet",this,other._realSet),
91 _catSet(
"catSet",this,other._catSet),
92 _realRef(other._realRef),
93 _catRef(other._catRef),
94 _checkVal(other._checkVal)
129 bool valuesChanged(
false) ;
134 if (real->getVal() !=
_realRef[i]) {
136 valuesChanged = true ;
143 if (cat->getCurrentIndex() !=
_catRef[i]) {
145 valuesChanged = true ;
146 _catRef[i] = cat->getCurrentIndex() ;
160 return valuesChanged ;
169 if (real->getVal() !=
_realRef[i]) {
176 if (cat->getCurrentIndex() !=
_catRef[i]) {
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
void clearValueDirty() const
bool isValueDirty() const
A space to attach TBranches.
virtual value_type getCurrentIndex() const
Return index number of current state.
virtual bool add(const RooAbsArg &var, bool silent=false)
Add the specified argument to list.
Storage_t::size_type size() const
Abstract base class for objects that represent a real value and implements functionality common to al...
double getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
RooAbsArg * at(Int_t idx) const
Return object at given index, or nullptr if index is out of range.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Meta object that tracks value changes in a given set of RooAbsArgs by registering itself as value cli...
bool hasChanged(bool clearState)
Returns true if state has changed since last call with clearState=true.
RooListProxy _catSet
List of categories to check.
bool _checkVal
Check contents as well if true.
RooChangeTracker()=default
std::vector< Int_t > _catRef
Reference values for categories.
RooArgSet parameters() const
std::vector< double > _realRef
Reference values for reals.
RooListProxy _realSet
List of reals to track.
bool add(const RooAbsArg &var, bool valueServer, bool shapeServer, bool silent)
Overloaded RooCollection_t::add() method insert object into set and registers object as server to own...