68 _realSet(
"realSet",
"Set of real-valued components to be tracked",this),
69 _catSet(
"catSet",
"Set of discrete-valued components to be tracked",this),
70 _realRef(trackSet.getSize()),
71 _catRef(trackSet.getSize()),
72 _checkVal(checkValues),
75for (
const auto arg : trackSet) {
105 _realSet(
"realSet",this,other._realSet),
106 _catSet(
"catSet",this,other._catSet),
107 _realRef(other._realRef),
108 _catRef(other._catRef),
109 _checkVal(other._checkVal),
150 if (real->getVal() !=
_realRef[i]) {
152 valuesChanged =
kTRUE ;
159 if (cat->getCurrentIndex() !=
_catRef[i]) {
161 valuesChanged =
kTRUE ;
162 _catRef[i] = cat->getCurrentIndex() ;
170 valuesChanged=
kTRUE ;
176 return valuesChanged ;
185 if (real->getVal() !=
_realRef[i]) {
192 if (cat->getCurrentIndex() !=
_catRef[i]) {
Bool_t isValueDirty() const
void clearValueDirty() const
RooAbsCategory is the base class for objects that represent a discrete value with a finite number of ...
virtual value_type getCurrentIndex() const
Return index number of current state.
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Add the specified argument to list.
Storage_t::size_type size() const
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Double_t 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.
RooChangeTracker is a meta object that tracks value changes in a given set of RooAbsArgs by registeri...
std::vector< Double_t > _realRef
RooChangeTracker()
Default constructor.
Bool_t hasChanged(Bool_t clearState)
Returns true if state has changed since last call with clearState=kTRUE.
std::vector< Int_t > _catRef
virtual ~RooChangeTracker()
Destructor.
RooArgSet parameters() const
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE) override
Reimplementation of standard RooArgList::add()