#include <TSPhaseSpaceMap.h>
Public Member Functions | |
TSPhaseSpaceMap (TString name, TString title) | |
TSPhaseSpaceMap (const TSPhaseSpaceMap &) | |
int | Add (const TSPhaseSpaceMap &) |
int | AddVolume (TSPhaseSpaceVolume &) |
int | BuildHistograms (int opt=0) |
TSPhaseSpaceMap * | Clone (TString name, TString title) |
virtual int | Fill () |
int | FindVolume () const |
int | GetAxis (TString) const |
int | GetDimension () const |
TSHistogramFld * | GetHistogramFld (TString opt="") const |
int | GetNumOfVolumes () const |
const TSVariable * | GetVariable (int) const |
const TSVariable * | GetVariable (TString) const |
TSPhaseSpaceVolume * | GetVolume (int) const |
bool | HasSelection () const |
virtual void | Init () |
int | IsBinned (int) const |
int | IsBinned (TString) const |
int | Multiply (const TSPhaseSpaceMap &) |
void | Print () const |
void | RemoveSelection () |
void | SelectRange (const TSVariable &, double min, double max, bool partial=false) |
int | SetBinning (const TSVariable &, int n, double *bins) |
int | SetBinning (const TSVariable &, int n, double low, double up) |
int | SetBinning (TString var_list, TString file) |
int | SetVariable (const TSVariable &) |
void | SetVolumeSelected (int, bool) |
bool | VolumeIsSelected (int) const |
TSPhaseSpaceMap (TString name, TString title) | |
TSPhaseSpaceMap (const TSPhaseSpaceMap &) | |
int | Add (const TSPhaseSpaceMap &) |
int | AddVolume (TSPhaseSpaceVolume &) |
int | BuildHistograms (int opt=0) |
void | CheckBinsOverlap (bool) |
TSPhaseSpaceMap * | Clone (TString name, TString title) |
virtual int | Fill () |
int | FindVolume () const |
int | GetAxis (TString) const |
int | GetDimension () const |
TSHistogramFld * | GetHistogramFld (TString opt="") const |
int | GetNumOfVolumes () const |
const TSVariable * | GetVariable (int) const |
const TSVariable * | GetVariable (TString) const |
TSPhaseSpaceVolume * | GetVolume (int) const |
bool | HasSelection () const |
virtual void | Init () |
int | IsBinned (int) const |
int | IsBinned (TString) const |
int | Multiply (const TSPhaseSpaceMap &) |
void | Print () const |
void | RemoveSelection () |
void | SelectRange (const TSVariable &, double min, double max, bool partial=false) |
int | SetBinning (const TSVariable &, int n, double *bins) |
int | SetBinning (const TSVariable &, int n, double low, double up) |
int | SetBinning (TString var_list, TString file) |
int | SetVariable (const TSVariable &) |
void | SetVolumeSelected (int, bool) |
bool | VolumeIsSelected (int) const |
![]() | |
TSNamed (TString name, TString label, TString title) | |
void | Clear () |
virtual TString | GetDescription () const |
TString | GetLabel () const |
TString | Label () const |
TString | Name () const |
TString | Title () const |
const char * | GetName () const |
const char * | GetTitle () const |
virtual void | SetLabel (TString) |
virtual void | SetName (TString) |
virtual void | SetTitle (TString) |
TSNamed (TString name, TString label, TString title) | |
void | Clear () |
virtual TString | GetDescription () const |
TString | GetLabel () const |
TString | Label () const |
TString | Name () const |
TString | Title () const |
const char * | GetName () const |
const char * | GetTitle () const |
virtual void | SetLabel (TString) |
virtual void | SetName (TString) |
virtual void | SetTitle (TString) |
Author: Silvestro Di Luise Silve stro .Di.L uise @cern .ch
TODO: Flag MapOK checking that all axis are binned
int TSPhaseSpaceMap::Add | ( | const TSPhaseSpaceMap & | second | ) |
Add volumes of a second map to this map.
Axis variables and ordering must be the same between the two maps.
Referenced by SetBinning().
int TSPhaseSpaceMap::Multiply | ( | const TSPhaseSpaceMap & | second | ) |
Multiply this map by a second Map
New Map Dimensions is the sum of the two dimensions New Map Num. of Volumes is the product of the two Num. of Volumes
DIM2: Dimension of second map NVOL2: NumOfVolumes of second map
For each existing volume of this map, NVOL2 new volumes are created by adding to the this volume the NVOL2 volumes of the second map
References TSPhaseSpaceVolume::Add().
Referenced by SetBinning().
void TSPhaseSpaceMap::SelectRange | ( | const TSVariable & | var, |
double | min, | ||
double | max, | ||
bool | partial = false |
||
) |
Select all volumes for which the bin range of the variable var is completely or partially (option partial==true) in the interval [var_min,var_max[; default is partial=false;
|---| var axis range completely inside |---| var axis range partially inside
|------------------—| range_min range_max
References SetVolumeSelected().
int TSPhaseSpaceMap::SetBinning | ( | TString | var_list, |
TString | file | ||
) |
Read Binning From text file.
a block where all the rows begin with a "#" will be skipped
References Add(), and Multiply().
void TSPhaseSpaceMap::SetVolumeSelected | ( | int | ivol, |
bool | active | ||
) |
Activate or Deactivate a specific volume number
Referenced by SelectRange().