#include <NueBackground.h>
Public Member Functions | |
| NueBackground () | |
| NueBackground (std::string, TH1 *, Detector::Detector_t, Background::Background_t, Selection::Selection_t, Double_t) | |
| ~NueBackground () | |
| const TH1 * | GetHist () |
| const char * | GetName () |
| Detector::Detector_t | GetDetector () |
| Background::Background_t | GetBackground () |
| Selection::Selection_t | GetSelection () |
| Double_t | GetPOT () |
| void | Print (std::ostream &) const |
| void | Draw (Float_t pot=0, Int_t col=1, const char *opt="") |
Private Attributes | |
| std::string | fName |
| TH1 * | fHist |
| Detector::Detector_t | fDet |
| Background::Background_t | fBg |
| Selection::Selection_t | fSel |
| Double_t | fPOT |
|
|
Definition at line 3 of file NueBackground.cxx. References fBg, fDet, fHist, fName, fPOT, and fSel. 00004 {
00005 fName = "";
00006 fHist = NULL;
00007 fDet = Detector::kUnknown;
00008 fBg = Background::kUnknown;
00009 fSel = Selection::kUnknown;
00010 fPOT = 0;
00011 }
|
|
||||||||||||||||||||||||||||
|
Definition at line 13 of file NueBackground.cxx. References fBg, fDet, fHist, fName, fPOT, and fSel. 00017 {
00018 fName = name;
00019 fHist = (TH1*) hist->Clone(name.c_str());
00020 fHist->SetDirectory(0);
00021 fDet = det;
00022 fBg = bg;
00023 fSel = sel;
00024 fPOT = pot;
00025 }
|
|
|
Definition at line 18 of file NueBackground.h. 00018 { delete fHist;}
|
|
||||||||||||||||
|
Definition at line 37 of file NueBackground.cxx. 00038 {
00039 fHist->SetLineColor(col);
00040 if(pot>0) {
00041 fHist->Scale(pot/fPOT);
00042 fPOT = pot;
00043 }
00044 fHist->Draw(opt);
00045 }
|
|
|
Definition at line 23 of file NueBackground.h. Referenced by NueFNExtrapolation::GetRatio(), and NueExtrapolation::GetSpectrum(). 00023 {return fBg;}
|
|
|
Definition at line 22 of file NueBackground.h. Referenced by NueExtrapolation::GetSpectrum(). 00022 {return fDet;}
|
|
|
Definition at line 20 of file NueBackground.h. Referenced by NueFNExtrapolation::Extrapolate(), and NueExtrapolation::None(). 00020 {return fHist;}
|
|
|
Definition at line 21 of file NueBackground.h. 00021 {return fName.c_str();}
|
|
|
Definition at line 25 of file NueBackground.h. Referenced by NueExtrapolation::GetSpectrum(). 00025 {return fPOT;}
|
|
|
Definition at line 24 of file NueBackground.h. Referenced by NueExtrapolation::GetSpectrum(). 00024 {return fSel;}
|
|
|
Definition at line 27 of file NueBackground.cxx. References Selection::AsString(), Detector::AsString(), Background::AsString(), fBg, fDet, fHist, fName, fPOT, and fSel. 00028 {
00029 out << fName << std::endl;
00030 out << Background::AsString(Background::EBackground(fBg)) << std::endl;
00031 out << Detector::AsString(Detector::EDetector(fDet)) << std::endl;
00032 out << Selection::AsString(Selection::ESelection(fSel)) << std::endl;
00033 out << fPOT << " POT" << std::endl;
00034 out << "Histogram integral: " << fHist->Integral() << std::endl;
00035 }
|
|
|
Definition at line 34 of file NueBackground.h. Referenced by NueBackground(), and Print(). |
|
|
Definition at line 33 of file NueBackground.h. Referenced by NueBackground(), and Print(). |
|
|
Definition at line 32 of file NueBackground.h. Referenced by Draw(), NueBackground(), and Print(). |
|
|
Definition at line 31 of file NueBackground.h. Referenced by NueBackground(), and Print(). |
|
|
Definition at line 36 of file NueBackground.h. Referenced by Draw(), NueBackground(), and Print(). |
|
|
Definition at line 35 of file NueBackground.h. Referenced by NueBackground(), and Print(). |
1.3.9.1