27template<
typename Element>
56 Bool_t
MaxSave(
const Element data_);
64 Bool_t
MinSave(
const Element data_);
71 Bool_t
CMPSave(
const Bool_t sgn);
76 Bool_t
CMPSave(
const Bool_t sgn,
const Element data_);
Remembers one value of type Element, optionally pulled from a watched variable.
recorder(Element *addr_)
Recorder watching a variable; the stored value is left uninitialised until Save().
Element GetData()
The stored value.
Element * addr
watched variable, not owned
Bool_t MaxSave()
Store the watched variable if it is larger than the stored value.
Bool_t MinSave()
Store the watched variable if it is smaller than the stored value.
void Save(const Element data_)
Store the given value unconditionally.
Bool_t CMPSave(const Bool_t sgn)
Compare the watched variable with the stored value and save it (shared by MaxSave and MinSave).
void Print()
Print the watched variable's value and the stored value on std::cout (a note is printed if no address...
recorder()
Empty recorder: no watched variable, stored value uninitialised (for built-in types).
void Save()
Store the current value of the watched variable unconditionally; does nothing if no address is set.
void SetAddress(Element *addr_)
Set or change the watched variable.
recorder(Element data_)
Recorder with an initial stored value.
recorder< Double_t > recorderD
recorder of Double_t
recorder< Int_t > recorderI
recorder of Int_t
recorder< Long_t > recorderL
recorder of Long_t
recorder< Float_t > recorderF
recorder of Float_t
recorder< Bool_t > recorderB
recorder of Bool_t