28 #include <unordered_map> 
   42 #include "TSArgList.h" 
   43 #include "TSParamList.h" 
   45 #include "TSVariable.h" 
   48 #include "TSCategory.h" 
   49 #include "TSCategoryCard.h" 
   51 #include "TSNuiParam.h" 
   52 #include "TSNuiParamSet.h" 
   53 #include "TSRespFunc.h" 
   54 #include "TSHistoNuiParamMgr.h" 
   55 #include "TSHistoOscillMgr.h" 
   66     TSSample(TString name, TString label, TString title);
 
   69     void AddVariable(
const TSVariable &, 
int n, 
double min, 
double max, TString opt=
"");
 
   70     void AddVariable(
const TSVariable &, 
int n, 
double *bins, TString opt=
"");
 
   76     void Disable1D(
bool b) {fDisable1D=b;}
 
   77     void Disable2D(
bool b) {fDisable2D=b;}
 
   80     void Fill(
double w=1);
 
   82     void Fill(std::map<const TSVariable*,double>&, 
double w=1);
 
   84     void Fill(TTree &, TCut &, TString vars, TString weight=
"");
 
   86     void Fill(
int, 
double x, 
double w);
 
   87     void Fill(
int, 
double x, 
double y, 
double w);
 
   92     TTree& GetDataTree() {
return fDataTree;}
 
   93     TList& GetHistoList() {
return hList;}
 
  104     float GetPOT()
 const {
return fPOT;}
 
  105     float GetNativePOT()
 const {
return fPOTnative;}
 
  106     float GetNativePOTPower()
 const {
return fPOTnative_pow;}
 
  107     float GetPOTPower()
 const {
return fPOTpower;}
 
  108     float GetPOTScaling()
 const {
return fPOTscaling;}
 
  109     TString GetPOTLabel()
 const {
return fPOTlabel;}
 
  110     TString GetNativePOTLabel()
 const {
return fPOTNativeLabel;}
 
  111     int GetToyId()
 const {
return fToyId;}
 
  113     bool HasCategoryCard()
 const {
return fHasCategory;}
 
  114     bool IsUnbinned()
 const {
return fIsUnbinned;}
 
  120     void Randomize(
int =0);
 
  121     THStack* RandomizedStack(
const TSVariable &var, 
int ntoy=1000);
 
  130     void ScaleToPOT(
float POT, 
float Power=20);
 
  131     void ScaleToNativePOT();
 
  138     void SetUnbinned(
bool b){ fIsUnbinned = b; }
 
  150     void fInitDataTree();
 
  151     void fUpdateDataTreeBranches();
 
  153     void fBuildPOTNames();
 
  155     void fNormalizeAll(
int opt=0);
 
  160     float fPOTnative_pow;
 
  164     TString fPOTNativeLabel;
 
  172     std::map<const TSVariable*, int> fVarIdx;
 
  181     std::vector<const TSVariable*> fVarListAll;
 
  182     std::vector<const TSVariable*> fVarList;
 
  183     std::vector<const TSVariable*> fAuxVarList;
 
  185     std::vector<TAxis*> fVarAxis;
 
  186     std::vector<TAxis*> fAuxVarAxis;
 
  188     std::vector<int> fVarType;
 
  190     std::vector<TH1F*> fVarHisto;
 
  191     std::vector<TH2F*> fVarHisto2D;
 
  193     std::vector<TH1F*> fVarHistoToy;
 
  194     std::vector<TH2F*> fVarHisto2DToy;
 
  196     std::vector<TH1F*> fVarHistoAux;
 
  197     std::vector<TH2F*> fVarHisto2DAux;
 
  199     std::vector<std::pair<int,int> > fHisto2DIdx;
 
  200     std::vector<std::pair<int,int> > fHisto2DAuxIdx;
 
  202     std::vector<TSHistoNuiParamMgr*> fHistoNuiParMgr;
 
  203     std::vector<TSHistoOscillMgr*> fHistoOscillProbMgr;
 
  204     std::vector<TSHistoNuiParamMgr*> fHistoToyNuiParMgr;
 
  205     std::vector<TSHistoOscillMgr*> fHistoToyOscillProbMgr;
 
  207     std::vector<TSHistoNuiParamMgr*> fHisto2DNuiParMgr;
 
  208     std::vector<TSHistoOscillMgr*> fHisto2DOscillProbMgr;
 
  209     std::vector<TSHistoNuiParamMgr*> fHisto2DToyNuiParMgr;
 
  210     std::vector<TSHistoOscillMgr*> fHisto2DToyOscillProbMgr;
 
  231         fVarSettings(): bins(0),axis(0),IsAux(0) {};
 
  238     std::vector<TH1F*> fHistoList;
 
  239     std::vector<TH2F*> fHistoList2D;
 
  248     void fFillFromCache();
 
Definition: TSArgList.h:30
 
Definition: TSCategoryCard.h:27
 
void Fill(double w=1)
Definition: TSSample.cc:278
 
void Restore()
Definition: TSSample.cc:735
 
Definition: TSVariable.h:55
 
Definition: TSSample.h:61
 
Definition: TSNuiParamSet.h:36
 
void SetNativePOT(float POT, float Power=20)
Definition: TSSample.cc:1169
 
Definition: TSOscProb.h:27