simple-tof-analysis
 All Classes Namespaces Functions Variables Groups Pages
Classes | Public Member Functions | List of all members
TSSample Class Reference
Inheritance diagram for TSSample:
TSNamed TSNamed

Public Member Functions

 TSSample (TString name, TString label, TString title)
 
void AddVariable (const TSVariable &, int n, double min, double max, TString opt="")
 
void AddVariable (const TSVariable &, int n, double *bins, TString opt="")
 
void AddVariables (const TSArgList &)
 
int CompareCategoryCard (const TSCategoryCard &, int opt=1)
 
void Disable1D (bool b)
 
void Disable2D (bool b)
 
void Fill (double w=1)
 
void Fill (std::map< const TSVariable *, double > &, double w=1)
 
void Fill (TTree &, TCut &, TString vars, TString weight="")
 
void Fill (int, double x, double w)
 
void Fill (int, double x, double y, double w)
 
const TSCategoryCardGetCategoryCard () const
 
TTree & GetDataTree ()
 
TList & GetHistoList ()
 
TH1F * GetHistogram (const TSVariable &)
 
TH1F * GetToyHistogram (const TSVariable &)
 
TH2F * GetHistogram2D (const TSVariable &, const TSVariable &)
 
TH2F * GetToyHistogram2D (const TSVariable &, const TSVariable &)
 
int GetVarIdx (const TSVariable &) const
 
float GetPOT () const
 
float GetNativePOT () const
 
float GetNativePOTPower () const
 
float GetPOTPower () const
 
float GetPOTScaling () const
 
TString GetPOTLabel () const
 
TString GetNativePOTLabel () const
 
int GetToyId () const
 
bool HasCategoryCard () const
 
bool IsUnbinned () const
 
void Init ()
 
void Print ()
 
void Randomize (int=0)
 
THStack * RandomizedStack (const TSVariable &var, int ntoy=1000)
 
void Restore ()
 
void Reset ()
 
void ResetToys ()
 
void SetCategoryCard (const TSCategoryCard &)
 
void SetNativePOT (float POT, float Power=20)
 
void ScaleToPOT (float POT, float Power=20)
 
void ScaleToNativePOT ()
 
void SetBidimensional (const TSVariable &var_x, const TSVariable &var_y)
 
int SetOscillProbFunction (TSOscProb *)
 
void SetUnbinned (bool b)
 
int SetWeightParams (const TSNuiParamSet &)
 
 TSSample (TString name, TString label, TString title)
 
void AddVariable (const TSVariable &, int n, double min, double max, TString opt="")
 
void AddVariable (const TSVariable &, int n, double *bins, TString opt="")
 
void AddVariables (const TSArgList &)
 
int CompareCategoryCard (const TSCategoryCard &, int opt=1)
 
void Disable1D (bool b)
 
void Disable2D (bool b)
 
void Fill (double w=1)
 
void Fill (std::map< const TSVariable *, double > &, double w=1)
 
void Fill (TTree &, TCut &, TString vars, TString weight="")
 
void Fill (int, double x, double w)
 
void Fill (int, double x, double y, double w)
 
const TSCategoryCardGetCategoryCard () const
 
TTree & GetDataTree ()
 
TList & GetHistoList ()
 
TH1F * GetHistogram (const TSVariable &)
 
TH1F * GetToyHistogram (const TSVariable &)
 
TH2F * GetHistogram2D (const TSVariable &, const TSVariable &)
 
TH2F * GetToyHistogram2D (const TSVariable &, const TSVariable &)
 
int GetVarIdx (const TSVariable &) const
 
float GetPOT () const
 
float GetNativePOT () const
 
float GetNativePOTPower () const
 
float GetPOTPower () const
 
float GetPOTScaling () const
 
TString GetPOTLabel () const
 
TString GetNativePOTLabel () const
 
int GetToyId () const
 
bool HasCategoryCard () const
 
bool IsUnbinned () const
 
void Init ()
 
void Print ()
 
void Randomize (int=0)
 
THStack * RandomizedStack (const TSVariable &var, int ntoy=1000)
 
void Restore ()
 
void Reset ()
 
void ResetToys ()
 
void SetCategoryCard (const TSCategoryCard &)
 
void SetNativePOT (float POT, float Power=20)
 
void ScaleToPOT (float POT, float Power=20)
 
void ScaleToNativePOT ()
 
void SetBidimensional (const TSVariable &var_x, const TSVariable &var_y)
 
int SetOscillProbFunction (TSOscProb *)
 
void SetUnbinned (bool b)
 
int SetWeightParams (const TSNuiParamSet &)
 
- 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)
 

Member Function Documentation

void TSSample::Fill ( double  w = 1)

Write variables values in the cache then fill histograms

void TSSample::Restore ( )

Restore all the toy to the corresponding histo

void TSSample::SetNativePOT ( float  POT,
float  Power = 20 
)

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