18 TH1D* temp = denom.
ToTH1(1e20);
27 fHist->GetYaxis()->SetTitle(
"Ratio");
42 const TString className = h->ClassName();
44 if(className ==
"TH1D"){
50 fHist->GetXaxis()->SetTitle(h->GetXaxis()->GetTitle());
54 if(!varName.empty())
fHist->GetXaxis()->SetTitle(varName.c_str());
75 if(
this == &rhs)
return *
this;
122 ret->SetLineColor(col);
123 ret->SetLineStyle(style);
TH1D * ToTH1(double exposure, Color_t col=kBlack, Style_t style=kSolid, EExposureType expotype=kPOT, EBinType bintype=kBinContent) const
Histogram made from this Spectrum, scaled to some exposure.
TH1D * ToTH1(Color_t col=kBlack, Style_t style=kSolid) const
Ratio & operator=(const Ratio &rhs)
static TH1D * Copy(const TH1D *h)
Ratio & operator*=(const Ratio &rhs)
process_name opflashCryoW ana
Ratio & operator/=(const Ratio &rhs)
Representation of a spectrum in any variable, with associated POT.
Ratio operator*(const Ratio &rhs) const
Ratio(const Spectrum &num, const Spectrum &denom, bool purOrEffErrs=false)
static void Delete(TH1D *&h)
Ratio operator/(const Ratio &rhs) const
Represent the ratio between two spectra.
static TH1D * New(const std::string &title, const Binning &bins)
Prevent histograms being added to the current directory.
std::string UniqueName()
Return a different string each time, for creating histograms.