43 fWtHst1 =
new TH1D(
"TFoamMaxwt_hst_Wt1",
"Histo of weight ",nBin,0.0,wmax);
44 fWtHst2 =
new TH1D(
"TFoamMaxwt_hst_Wt2",
"Histo of weight**2",nBin,0.0,wmax);
58 Error(
"TFoamMaxwt",
"COPY CONSTRUCTOR NOT TESTED!");
86 if (&From ==
this)
return *
this;
113 std::cout<<
"00000000000000000000000000000000000000000000000000000000000000000000000"<<std::endl;
114 std::cout<<
"00 -->wtLim: No_evt ="<<
fNent<<
" <Wt> = "<<aveWt<<
" wtLim= "<<wtLim<<std::endl;
115 std::cout<<
"00 -->wtLim: For eps = "<<eps <<
" EFFICIENCY <Wt>/wtLim= "<<MCeff<<std::endl;
116 std::cout<<
"00000000000000000000000000000000000000000000000000000000000000000000000"<<std::endl;
136 for(ib=0;ib<=
fnBin+1;ib++) {
140 if( (sum == 0.0) || (sumWt == 0.0) ) {
141 std::cout<<
"TFoamMaxwt::Make: zero content of histogram !!!,sum,sumWt ="<<sum<<sumWt<<std::endl;
146 for( ibX=
fnBin+1; ibX>0; ibX--) {
150 for( ib=0; ib<=
fnBin+1; ib++) {
153 if(ib >= ibX) bin1=lowEdge*bin;
158 if(
TMath::Abs(1.0-aveWt1/aveWt) > eps )
break;
162 if(ibX == (
fnBin+1) ) {
165 std::cout<<
"+++++ wtLim undefined. Higher uper limit in histogram"<<std::endl;
166 }
else if( ibX == 1) {
169 std::cout<<
"+++++ wtLim undefined. Lower uper limit or more bins "<<std::endl;
virtual void Print(Option_t *option="") const
Print some global quantities for this histogram.
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
static long int sum(long int i)
virtual void SetDirectory(TDirectory *dir)
By default when an histogram is created, it is added to the list of histogram objects in the current ...
TFoamMaxwt & operator=(const TFoamMaxwt &)
substitution =
virtual Double_t GetBinContent(Int_t bin) const
Return content of bin number bin.
void GetMCeff(Double_t, Double_t &, Double_t &)
Calculates Efficiency= aveWt/wtLim for a given tolerance level epsilon<<1 using information stored in...
void Reset()
Reseting weight analysis.
void Make(Double_t, Double_t &)
Calculates Efficiency= aveWt/wtLim for a given tolerance level epsilon<<1 To be called at the end of ...
virtual void Reset(Option_t *option="")
Reset.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
TFoamMaxwt()
Constructor for streamer.
virtual ~TFoamMaxwt()
Destructor.
Mother of all ROOT objects.
THist< 1, double, THistStatContent, THistStatUncertainty > TH1D
void Fill(Double_t)
Filling analyzed weight.