Public Member Functions | Public Attributes | List of all members
CutLevel Class Reference

Public Member Functions

 CutLevel (std::string shortName, std::string longName, Cut cut, SpectrumLoader &loader, const HistAxis &axis, int color)
 
void Draw (float pot, std::string opt, osc::IOscCalc *calc, int from, int to, TLegend *leg, int style=1)
 
void DrawEfficiency (float pot, std::string opt, osc::IOscCalc *calc, int from, int to, TH1 *denominator, TLegend *leg)
 
TH1 * ToTH1 (float pot, osc::IOscCalc *calc, int from, int to)
 

Public Attributes

OscillatableSpectrum fSpec
 
Cut fCut
 
std::string fShortName
 
std::string fLongName
 
int fColor
 
int fStyle
 

Detailed Description

Definition at line 111 of file numu_cut_flow.C.

Constructor & Destructor Documentation

CutLevel::CutLevel ( std::string  shortName,
std::string  longName,
Cut  cut,
SpectrumLoader loader,
const HistAxis axis,
int  color 
)
inline

Definition at line 115 of file numu_cut_flow.C.

117  :
118  fSpec(loader, axis, cut),
119  fCut(cut),
121  fLongName(longName),
122  fColor(color)
123  {}
std::string fShortName
OscillatableSpectrum fSpec
string shortName
THUMBNAIL BLOCK: We need to make a thumbnail for each.
std::string fLongName

Member Function Documentation

void CutLevel::Draw ( float  pot,
std::string  opt,
osc::IOscCalc calc,
int  from,
int  to,
TLegend *  leg,
int  style = 1 
)
inline

Definition at line 125 of file numu_cut_flow.C.

References make_syst_table_plots::h.

128  {
129  TH1* h = fSpec.Oscillated(calc, from, to).ToTH1(pot);
130  h->SetLineColor(fColor);
131  h->SetLineStyle(style);
132  h->Draw(opt.c_str());
133  leg->AddEntry(h, fLongName.c_str(), "l");
134 
135  };
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.
Definition: Spectrum.cxx:148
OscillatableSpectrum fSpec
#define pot
Spectrum Oscillated(osc::IOscCalc *calc, int from, int to) const
std::string fLongName
void CutLevel::DrawEfficiency ( float  pot,
std::string  opt,
osc::IOscCalc calc,
int  from,
int  to,
TH1 *  denominator,
TLegend *  leg 
)
inline

Definition at line 137 of file numu_cut_flow.C.

References make_syst_table_plots::h.

140  {
141  TH1* h = fSpec.Oscillated(calc, from, to).ToTH1(pot);
142  h->GetYaxis()->SetTitle("Efficiency");
143  h->Divide(denominator);
144  h->SetLineColor(fColor);
145  h->SetLineStyle(fStyle);
146  h->Draw(opt.c_str());
147  leg->AddEntry(h, fLongName.c_str(), "l");
148  };
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.
Definition: Spectrum.cxx:148
OscillatableSpectrum fSpec
#define pot
Spectrum Oscillated(osc::IOscCalc *calc, int from, int to) const
std::string fLongName
TH1* CutLevel::ToTH1 ( float  pot,
osc::IOscCalc calc,
int  from,
int  to 
)
inline

Definition at line 150 of file numu_cut_flow.C.

151  {
152  return fSpec.Oscillated(calc, from, to).ToTH1(pot);
153  }
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.
Definition: Spectrum.cxx:148
OscillatableSpectrum fSpec
#define pot
Spectrum Oscillated(osc::IOscCalc *calc, int from, int to) const

Member Data Documentation

int CutLevel::fColor

Definition at line 161 of file numu_cut_flow.C.

Cut CutLevel::fCut

Definition at line 158 of file numu_cut_flow.C.

std::string CutLevel::fLongName

Definition at line 160 of file numu_cut_flow.C.

std::string CutLevel::fShortName

Definition at line 159 of file numu_cut_flow.C.

OscillatableSpectrum CutLevel::fSpec

Definition at line 157 of file numu_cut_flow.C.

int CutLevel::fStyle

Definition at line 162 of file numu_cut_flow.C.


The documentation for this class was generated from the following file: