#include <MuCalTrunc.h>
Public Member Functions | |
| MuCalTrunc () | |
| MuCalTrunc (TH1F *) | |
| MuCalTrunc (TH1F *, double) | |
| void | SetHisto (TH1F *) |
| void | SetLimit (double) |
| double | GetLimitPos () |
| double * | GetTruncMean () |
Private Attributes | |
| TH1F * | fhisto |
| double | flimit |
|
|
Definition at line 6 of file MuCalTrunc.cxx. References SetLimit(). 00007 {
00008 this->SetLimit(0.9);
00009 }
|
|
|
Definition at line 13 of file MuCalTrunc.cxx. References fhisto, and SetLimit().
|
|
||||||||||||
|
Definition at line 21 of file MuCalTrunc.cxx. References fhisto, and SetLimit().
|
|
|
Definition at line 29 of file MuCalTrunc.cxx. References fhisto, and flimit. 00030 {
00031
00032 float totent = fhisto->Integral();
00033 float runtot = 0;
00034 double finalbin = 0;
00035 float binwidth = fhisto->GetBinCenter(2) - fhisto->GetBinCenter(1);
00036
00037 for(int i=1;i<fhisto->GetNbinsX();i++){
00038 runtot += fhisto->GetBinContent(i);
00039 if(runtot>flimit*totent){
00040 finalbin = double(i);
00041 break;
00042 }
00043 }
00044
00045 return finalbin*double(binwidth);
00046
00047 }
|
|
|
Definition at line 51 of file MuCalTrunc.cxx. References fhisto. Referenced by MuCalFitterModule::EndJob(). 00052 {
00053 double *trunc_info = new double[2];
00054
00055 fhisto->SetAxisRange(0,this->GetLimitPos());
00056
00057 trunc_info[0] = fhisto->GetMean();
00058 trunc_info[1] = fhisto->GetRMS()/sqrt(fhisto->Integral());
00059
00060 fhisto->SetAxisRange(0,fhisto->GetBinCenter(fhisto->GetNbinsX()));
00061
00062 return trunc_info;
00063 }
|
|
|
Definition at line 74 of file MuCalTrunc.cxx. References fhisto. Referenced by MuCalFitterModule::EndJob(). 00075 {
00076 fhisto = hist;
00077 }
|
|
|
Definition at line 67 of file MuCalTrunc.cxx. References flimit. Referenced by MuCalTrunc(). 00068 {
00069 flimit=a;
00070 }
|
|
|
Definition at line 28 of file MuCalTrunc.h. Referenced by GetLimitPos(), GetTruncMean(), MuCalTrunc(), and SetHisto(). |
|
|
Definition at line 29 of file MuCalTrunc.h. Referenced by GetLimitPos(), and SetLimit(). |
1.3.9.1