simple-tof-analysis
All Classes Namespaces Functions Variables Groups Pages
Public Member Functions | List of all members
TSPhaseSpaceMap Class Reference

#include <TSPhaseSpaceMap.h>

Inheritance diagram for TSPhaseSpaceMap:
TSNamed TSNamed

Public Member Functions

 TSPhaseSpaceMap (TString name, TString title)
 
 TSPhaseSpaceMap (const TSPhaseSpaceMap &)
 
int Add (const TSPhaseSpaceMap &)
 
int AddVolume (TSPhaseSpaceVolume &)
 
int BuildHistograms (int opt=0)
 
TSPhaseSpaceMapClone (TString name, TString title)
 
virtual int Fill ()
 
int FindVolume () const
 
int GetAxis (TString) const
 
int GetDimension () const
 
TSHistogramFldGetHistogramFld (TString opt="") const
 
int GetNumOfVolumes () const
 
const TSVariableGetVariable (int) const
 
const TSVariableGetVariable (TString) const
 
TSPhaseSpaceVolumeGetVolume (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)
 
TSPhaseSpaceMapClone (TString name, TString title)
 
virtual int Fill ()
 
int FindVolume () const
 
int GetAxis (TString) const
 
int GetDimension () const
 
TSHistogramFldGetHistogramFld (TString opt="") const
 
int GetNumOfVolumes () const
 
const TSVariableGetVariable (int) const
 
const TSVariableGetVariable (TString) const
 
TSPhaseSpaceVolumeGetVolume (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
 
- Public Member Functions inherited from TSNamed
 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)
 

Detailed Description

Author: Silvestro Di Luise Silve.nosp@m.stro.nosp@m..Di.L.nosp@m.uise.nosp@m.@cern.nosp@m..ch

TODO: Flag MapOK checking that all axis are binned

Member Function Documentation

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().


The documentation for this class was generated from the following files: