DAS
3.0
Das Analysis System
|
Classes | |
struct | Dist |
struct | Matrix |
Functions | |
template<typename T > | |
void | nodeLoop (TDirectory *dOut, TUnfoldBinning *binning, T t, ostream &cout, TString name, int depth) |
template<typename T > | |
void | axisLoop (TDirectory *dOut, TUnfoldBinning *node, T t, ostream &cout, vector< int > ibins, int shift, TString name="", TString title="") |
Two functors and two functions to extract the distributions and matrices with physical axes from bin IDs.
The two functions allow to loop over
The two functors are similar:
void DAS::Unfolding::ExtractHistogram::axisLoop | ( | TDirectory * | dOut, |
TUnfoldBinning * | node, | ||
T | t, | ||
ostream & | cout, | ||
vector< int > | ibins, | ||
int | shift, | ||
TString | name = "" , |
||
TString | title = "" |
||
) |
Loop on the axes of the node of a given binning.
dOut | output directory |
node | child node |
t | expecting either a `Dist` or a `Matrix` object |
cout | standard output |
ibins | global bin IDs of present iteration |
shift | shift to continue the bin index despite the change of node/binning |
void nodeLoop | ( | TDirectory * | dOut, |
TUnfoldBinning * | binning, | ||
T | t, | ||
ostream & | cout, | ||
TString | name, | ||
int | depth | ||
) |
Loop on the nodes of a given binning.
dOut | output directory |
binning | global binning or parent node |
t | expecting either a `Dist` or a `Matrix` object |
cout | standard output |
name | name of output directory |
depth | trick to know the number of recursive calls |