10 #ifndef TSEVENTDATASET_H_
11 #define TSEVENTDATASET_H_
14 #include <unordered_map>
16 #include <TObjArray.h>
20 #include "TSVariable.h"
24 #include "TSParamList.h"
25 #include "TSNuiParamSet.h"
27 #include "MessageMgr.h"
45 void BuildCategoryCardHisto();
46 void BuildCategoryCardMatrix();
49 void ClearCategoryCardHisto();
51 double ComputeEffectiveNumOfEvts();
55 void FillHistogram(TH1& ,
int);
61 void FillHistograms();
62 void FillHistogramsNoWeight();
65 TH1F& GetCategoryCardHisto() {
return fCategCardHisto;}
66 TH2F& GetCategoryCardMatrix() {
return fCategCardMatrix;}
68 double GetEffectiveNumOfEvts()
const {
return fEffNumOfEvts;}
70 int GetEntries()
const {
return fNumOfEvents;}
75 virtual TH1* GetHistogram();
79 TSParamList& GetParamSetPoI() {
return fParamList_PoI;}
80 TSParamList& GetParamSetNui() {
return fParamList_Nui;}
83 int GetNumOfEvents()
const {
return fNumOfEvents;}
85 TSSample& GetSample() {
return fSample;}
89 bool HasProcessComputeWeight()
const {
return fProcComputeWeight;}
90 bool HasProcessOscillate()
const {
return fProcOscillate;}
92 bool HasListOfPoI()
const {
return fHasListOfPoI;}
93 bool HasListOfParams()
const {
return fHasListOfParams;}
94 bool HasWeightParams()
const {
return fHasWeightParams;}
101 void ProcessEventsWith(
double (
TSEvent::*method)(
int) );
105 void ResetHistograms();
107 void ReWeightWithSavedPosition(
int weight_id=-1);
112 void SetHistogram(
const TSVariable &,
int,
double,
double);
113 void SetHistogram(
const TSVariable &,
int,
double *);
115 void SetHistogram(
const TSVariable &,
const TSVariable &,
int,
double,
double,
int,
double,
double);
121 void SetProcessComputeWeight(
bool b) {fProcComputeWeight=b;}
122 void SetProcessOscillate(
bool b) {fProcOscillate=b;}
124 void SetWeightPosition(
int weight_id);
126 void UpdateParamList();
131 double fEffNumOfEvts;
133 TObjArray fEventArray;
137 std::map<int,int> fVarMatch;
138 std::map<const TSVariable*,const TSVariable*> fVarMatch2D;
141 TH1F fCategCardHisto;
142 TH2F fCategCardMatrix;
144 bool fHasWeightParams;
145 std::unordered_map<TSNuiParam*,int> fNuiParam_map;
148 bool fHasListOfParams;
156 TH1* fSelectedHistogram;
157 int fSelectedHistoDim;
160 int fSavedWeightPosition;
161 bool fProcComputeWeight;
Definition: TSCategoryCard.h:27
Definition: TSParamList.h:29
Definition: TSEventDataSet.h:32
Definition: TSVariable.h:55
Definition: TSSample.h:61
Definition: TSNuiParamSet.h:36
virtual void Process()
Definition: TSEventDataSet.cc:562