Public Member Functions | |
Proxy (TDirectory *d, TTree *tr, const std::string &name, const long &base, int offset) | |
Proxy (const Proxy &) | |
Proxy (const Proxy &&) | |
Proxy & | operator= (const Proxy &)=delete |
Proxy (T v)=delete | |
~Proxy () | |
operator T () const | |
T | GetValue () const |
Proxy< T > & | operator= (T x) |
Proxy< T > & | operator+= (T x) |
Proxy< T > & | operator*= (T x) |
std::string | Name () const |
void | CheckEquals (const T &x) const |
Protected Types | |
typedef std::conditional_t< std::is_enum_v< T >, int, T > | U |
Protected Member Functions | |
T | GetValueNested () const |
T | GetValueFlatSingle () const |
T | GetValueFlatMulti () const |
void | SetShifted () |
Protected Attributes | |
std::string | fName |
CAFType | fType |
TLeaf * | fLeaf |
U | fVal |
TTree * | fTree |
TDirectory * | fDir |
const long & | fBase |
int | fOffset |
TFormLeafInfo * | fLeafInfo |
TBranch * | fBranch |
TTreeFormula * | fTTF |
long | fEntry |
int | fSubIdx |
Friends | |
class | Restorer |
Definition at line 8 of file FwdDeclare.h.
|
protected |
Definition at line 92 of file BasicTypesProxy.h.
caf::Proxy< T >::Proxy | ( | TDirectory * | d, |
TTree * | tr, | ||
const std::string & | name, | ||
const long & | base, | ||
int | offset | ||
) |
Definition at line 101 of file BasicTypesProxy.cxx.
caf::Proxy< T >::Proxy | ( | const Proxy< T > & | p | ) |
Definition at line 112 of file BasicTypesProxy.cxx.
References caf::Proxy< T >::fVal, and caf::Proxy< T >::GetValue().
caf::Proxy< T >::Proxy | ( | const Proxy< T > && | p | ) |
Definition at line 124 of file BasicTypesProxy.cxx.
References caf::Proxy< T >::fVal.
|
delete |
caf::Proxy< T >::~Proxy | ( | ) |
void caf::Proxy< T >::CheckEquals | ( | const T & | x | ) | const |
Definition at line 368 of file BasicTypesProxy.cxx.
References genie::utils::math::AreEqual(), om::cout, allTimeWatchdog::endl, caf::Proxy< T >::fName, and caf::Proxy< T >::GetValue().
Referenced by caf::Proxy< caf::SRShowerLID >::CheckEquals(), caf::Proxy< caf::SRKalmanTrack >::CheckEquals(), caf::Proxy< caf::SRBpfTrack >::CheckEquals(), and caf::Proxy< caf::SRFuzzyKProng >::CheckEquals().
T caf::Proxy< T >::GetValue | ( | ) | const |
Definition at line 143 of file BasicTypesProxy.cxx.
References caf::Proxy< T >::fType, caf::Proxy< T >::fVal, caf::Proxy< T >::GetValueFlatMulti(), caf::Proxy< T >::GetValueFlatSingle(), caf::Proxy< T >::GetValueNested(), caf::kCopiedRecord, caf::kFlatMultiTree, caf::kFlatSingleTree, caf::kNested, and T.
Referenced by caf::Restorer::Add(), caf::Proxy< T >::CheckEquals(), std::max(), std::min(), caf::Proxy< T >::operator*=(), caf::Proxy< T >::operator+=(), and caf::Proxy< T >::Proxy().
|
protected |
Definition at line 202 of file BasicTypesProxy.cxx.
References caf::SRBranchRegistry::AddBranch(), ana::assert(), om::cout, allTimeWatchdog::endl, caf::Proxy< T >::fBase, caf::Proxy< T >::fBranch, caf::Proxy< T >::fEntry, caf::Proxy< T >::fLeaf, caf::Proxy< T >::fName, caf::Proxy< T >::fOffset, caf::Proxy< T >::fTree, caf::Proxy< T >::fVal, caf::GetTypedValueWrapper(), string, caf::StripSubscripts(), and T.
Referenced by caf::Proxy< T >::GetValue().
|
protected |
Definition at line 166 of file BasicTypesProxy.cxx.
References caf::SRBranchRegistry::AddBranch(), ana::assert(), om::cout, allTimeWatchdog::endl, caf::Proxy< T >::fBase, caf::Proxy< T >::fBranch, caf::Proxy< T >::fEntry, caf::Proxy< T >::fLeaf, caf::Proxy< T >::fName, caf::Proxy< T >::fOffset, caf::Proxy< T >::fTree, caf::Proxy< T >::fVal, caf::GetTypedValueWrapper(), string, caf::StripSubscripts(), and T.
Referenced by caf::Proxy< T >::GetValue().
|
protected |
Definition at line 248 of file BasicTypesProxy.cxx.
References caf::SRBranchRegistry::AddBranch(), ana::assert(), om::cout, allTimeWatchdog::endl, caf::EvalInstanceWrapper(), caf::Proxy< T >::fBranch, caf::Proxy< T >::fEntry, caf::Proxy< T >::fLeaf, caf::Proxy< T >::fLeafInfo, caf::Proxy< T >::fName, caf::Proxy< T >::fSubIdx, caf::Proxy< T >::fTree, caf::Proxy< T >::fTTF, caf::Proxy< T >::fVal, caf::GetTypedValueWrapper(), string, and T.
Referenced by caf::Proxy< T >::GetValue().
|
inline |
|
inline |
Definition at line 70 of file BasicTypesProxy.h.
Proxy< T > & caf::Proxy< T >::operator*= | ( | T | x | ) |
Definition at line 347 of file BasicTypesProxy.cxx.
References om::cout, allTimeWatchdog::endl, caf::Proxy< T >::GetValue(), T, and void().
Proxy< T > & caf::Proxy< T >::operator+= | ( | T | x | ) |
Definition at line 331 of file BasicTypesProxy.cxx.
References om::cout, allTimeWatchdog::endl, caf::Proxy< T >::GetValue(), T, and void().
|
delete |
Proxy< T > & caf::Proxy< T >::operator= | ( | T | x | ) |
Definition at line 314 of file BasicTypesProxy.cxx.
References caf::SRProxySystController::Backup(), caf::Proxy< T >::fBase, caf::Proxy< T >::fEntry, caf::Proxy< T >::fOffset, caf::Proxy< T >::fTree, caf::Proxy< T >::fType, caf::Proxy< T >::fVal, caf::SRProxySystController::InTransaction(), caf::kCopiedRecord, caf::kFlatMultiTree, caf::kFlatSingleTree, caf::kNested, and submit_syst::x.
|
protected |
|
friend |
Definition at line 51 of file BasicTypesProxy.h.
|
protected |
Definition at line 103 of file BasicTypesProxy.h.
Referenced by caf::Proxy< T >::GetValueFlatMulti(), caf::Proxy< T >::GetValueFlatSingle(), and caf::Proxy< T >::operator=().
|
mutableprotected |
Definition at line 108 of file BasicTypesProxy.h.
Referenced by caf::Proxy< T >::GetValueFlatMulti(), caf::Proxy< T >::GetValueFlatSingle(), and caf::Proxy< T >::GetValueNested().
|
protected |
Definition at line 102 of file BasicTypesProxy.h.
|
mutableprotected |
Definition at line 110 of file BasicTypesProxy.h.
Referenced by caf::Proxy< T >::GetValueFlatMulti(), caf::Proxy< T >::GetValueFlatSingle(), caf::Proxy< T >::GetValueNested(), and caf::Proxy< T >::operator=().
|
mutableprotected |
Definition at line 97 of file BasicTypesProxy.h.
Referenced by caf::Proxy< T >::GetValueFlatMulti(), caf::Proxy< T >::GetValueFlatSingle(), and caf::Proxy< T >::GetValueNested().
|
mutableprotected |
Definition at line 107 of file BasicTypesProxy.h.
Referenced by caf::Proxy< T >::GetValueNested().
|
protected |
Definition at line 95 of file BasicTypesProxy.h.
Referenced by caf::Proxy< T >::CheckEquals(), caf::Proxy< T >::GetValueFlatMulti(), caf::Proxy< T >::GetValueFlatSingle(), and caf::Proxy< T >::GetValueNested().
|
protected |
Definition at line 104 of file BasicTypesProxy.h.
Referenced by caf::Proxy< T >::GetValueFlatMulti(), caf::Proxy< T >::GetValueFlatSingle(), and caf::Proxy< T >::operator=().
|
mutableprotected |
Definition at line 111 of file BasicTypesProxy.h.
Referenced by caf::Proxy< T >::GetValueNested().
|
protected |
Definition at line 99 of file BasicTypesProxy.h.
Referenced by caf::Proxy< T >::GetValueFlatMulti(), caf::Proxy< T >::GetValueFlatSingle(), caf::Proxy< T >::GetValueNested(), and caf::Proxy< T >::operator=().
|
mutableprotected |
Definition at line 109 of file BasicTypesProxy.h.
Referenced by caf::Proxy< T >::GetValueNested(), and caf::Proxy< T >::~Proxy().
|
protected |
Definition at line 96 of file BasicTypesProxy.h.
Referenced by caf::Proxy< T >::GetValue(), and caf::Proxy< T >::operator=().
|
mutableprotected |
Definition at line 98 of file BasicTypesProxy.h.
Referenced by caf::Restorer::Add(), caf::Proxy< T >::GetValue(), caf::Proxy< T >::GetValueFlatMulti(), caf::Proxy< T >::GetValueFlatSingle(), caf::Proxy< T >::GetValueNested(), caf::Proxy< T >::operator=(), and caf::Proxy< T >::Proxy().