Public Member Functions | |
CalibAnaPlot (std::string outpath) | |
virtual void | SchedulePlots () |
virtual void | ScheduleSamples () |
virtual void | ScheduleEventVars () |
virtual void | ScheduleTrackVars () |
virtual void | ScheduleHitVars () |
virtual void | FillEventPlots () |
virtual void | FillTrackPlots () |
virtual void | FillHitPlots () |
std::map< std::string, std::string > | GetSamples () |
void | Initialize () |
void | SetTreeLoopLimit (unsigned int limit) |
void | SetTreeLoopStride (unsigned int stride) |
void | Draw (std::string pdfdir, std::vector< Plot > plots, Plot denom_plot, std::string ratio_title="") |
void | DrawPeriodLines (float ymin, float ymax, bool withEpochs=false) |
void | PrintUnderOverFlow (TH1 *h, std::string plotname, std::string samp) |
void | ProcessTrees (std::string sample) |
void | MakeDir (std::string path) |
std::string | LegendLabel (std::string key) |
void | HaddAllDataFile () |
bool | ProcessedAllData () |
void | PrintEpochLengths () |
Protected Member Functions | |
void | SetEventBranches (TTree *t) |
void | SetTrackBranches (TTree *t) |
void | SetHitBranches (TTree *t) |
bool | UseEVar (std::string var) |
bool | UseTVar (std::string var) |
bool | UseHVar (std::string var) |
Private Member Functions | |
void | progbar (int current, float max_inv) |
Private Attributes | |
int | fCurrentPercProg |
Definition at line 14 of file CalibAnaPlot.h.
CalibAnaPlot::CalibAnaPlot | ( | std::string | outpath | ) |
Definition at line 149 of file CalibAnaPlot.h.
References om::cout, allTimeWatchdog::endl, fDet, Detector::FullName(), and MakeDir().
void CalibAnaPlot::Draw | ( | std::string | pdfdir, |
std::vector< Plot > | plots, | ||
Plot | denom_plot, | ||
std::string | ratio_title = "" |
||
) |
Definition at line 168 of file CalibAnaPlot.h.
References plot_validation_datamc::c, om::cout, DrawPeriodLines(), DrawUtils::DrawPlotStack(), allTimeWatchdog::endl, fOutPath, fSamples, DrawUtils::GetLastYMax(), DrawUtils::GetLastYMin(), MakeDir(), and Plot::name.
Referenced by ValidCalibPDF::DiblockTex(), BrightnessModelPlots::DoAna(), MEUPerDiblock::DoAna(), MEUPerCell::DoAna(), MEUPerFEB::MakeTex(), ValidCalibPDF::MakeTex(), and SetTreeLoopStride().
void CalibAnaPlot::DrawPeriodLines | ( | float | ymin, |
float | ymax, | ||
bool | withEpochs = false |
||
) |
Definition at line 496 of file CalibAnaPlot.h.
References e, Detector::EndOfEpochMap(), Detector::EndOfPeriodMap(), fDet, and submit_hadd::l.
Referenced by Draw(), and SetTreeLoopStride().
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in ValidCalibPDF, MEUPerCell, MEUPerFEB, MEUPerDiblock, and BrightnessModelPlots.
Definition at line 25 of file CalibAnaPlot.h.
Referenced by ProcessTrees().
|
inlinevirtual |
|
inline |
Definition at line 28 of file CalibAnaPlot.h.
References fSamples, and Initialize().
Referenced by MakeMEUPerFEB(), and MakeValidCalibPDF().
void CalibAnaPlot::HaddAllDataFile | ( | ) |
Definition at line 464 of file CalibAnaPlot.h.
References fDet, fOutPath, Detector::name(), string, and system().
Referenced by ValidCalibPDF::DiblockTex(), ProcessTrees(), and SetTreeLoopStride().
void CalibAnaPlot::Initialize | ( | ) |
Definition at line 138 of file CalibAnaPlot.h.
References fOutPath, fSamples, MakeDir(), ScheduleEventVars(), ScheduleHitVars(), ScheduleSamples(), and ScheduleTrackVars().
Referenced by CheckBrightnessModel(), GetSamples(), MakeMEUPerCell(), MakeMEUPerDiblock(), MakeMEUPerFEB(), and MakeValidCalibPDF().
std::string CalibAnaPlot::LegendLabel | ( | std::string | key | ) |
Definition at line 239 of file CalibAnaPlot.h.
Referenced by BrightnessModelPlots::DoAna(), MEUPerFEB::MakeTex(), ValidCalibPDF::MakeTex(), and SetTreeLoopStride().
void CalibAnaPlot::MakeDir | ( | std::string | path | ) |
Definition at line 489 of file CalibAnaPlot.h.
References om::cout, allTimeWatchdog::endl, exit(), and system().
Referenced by ValidCalibPDF::CalibAllSamples(), CalibAnaPlot(), Draw(), Initialize(), and SetTreeLoopStride().
void CalibAnaPlot::PrintEpochLengths | ( | ) |
Definition at line 522 of file CalibAnaPlot.h.
References om::cout, e, allTimeWatchdog::endl, Detector::EndOfEpochMap(), fDet, and string.
Referenced by SetTreeLoopStride(), and ValidCalibPDF::ValidCalibPDF().
void CalibAnaPlot::PrintUnderOverFlow | ( | TH1 * | h, |
std::string | plotname, | ||
std::string | samp | ||
) |
Definition at line 264 of file CalibAnaPlot.h.
References om::cout, e, and allTimeWatchdog::endl.
Referenced by SetTreeLoopStride().
bool CalibAnaPlot::ProcessedAllData | ( | ) |
Definition at line 473 of file CalibAnaPlot.h.
References fProcessedSamples, and fSamples.
Referenced by ProcessTrees(), and SetTreeLoopStride().
void CalibAnaPlot::ProcessTrees | ( | std::string | sample | ) |
Definition at line 334 of file CalibAnaPlot.h.
References om::cout, e, allTimeWatchdog::endl, MakeMiniprodValidationCuts::f, f2dPlots, fCurrentSample, fEventVars, fHitVars, FillEventPlots(), FillHitPlots(), FillTrackPlots(), fLimit, fOutPath, fPlots, fProcessedSamples, fSamples, fStride, fTrackVars, HaddAllDataFile(), makeTrainCVSamples::int, it, getGoodRuns4SAM::n, outf, ProcessedAllData(), progbar(), SchedulePlots(), SetEventBranches(), SetHitBranches(), and SetTrackBranches().
Referenced by MEUPerDiblock::DoAna(), MEUPerCell::DoAna(), MakeMEUPerFEB(), MakeValidCalibPDF(), and SetTreeLoopStride().
Definition at line 449 of file CalibAnaPlot.h.
References om::cout, allTimeWatchdog::endl, fCurrentPercProg, stan::math::floor(), add_attributes::prog, and string.
Referenced by ProcessTrees().
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in ValidCalibPDF, MEUPerCell, MEUPerFEB, MEUPerDiblock, and BrightnessModelPlots.
Definition at line 22 of file CalibAnaPlot.h.
Referenced by Initialize().
|
inlinevirtual |
Reimplemented in ValidCalibPDF, MEUPerCell, MEUPerFEB, MEUPerDiblock, and BrightnessModelPlots.
Definition at line 18 of file CalibAnaPlot.h.
Referenced by ProcessTrees().
|
inlinevirtual |
Reimplemented in ValidCalibPDF, MEUPerCell, MEUPerFEB, MEUPerDiblock, and BrightnessModelPlots.
Definition at line 19 of file CalibAnaPlot.h.
Referenced by Initialize().
|
inlinevirtual |
|
protected |
Definition at line 281 of file CalibAnaPlot.h.
References evt_nhits_tricell, and UseEVar().
Referenced by ProcessTrees().
|
protected |
|
protected |
Definition at line 287 of file CalibAnaPlot.h.
References trk_nhits_tricell, and UseTVar().
Referenced by ProcessTrees().
Definition at line 31 of file CalibAnaPlot.h.
References fLimit, and PandAna.Demos.demo_prong::limit.
Referenced by MakeMEUPerFEB(), and MakeValidCalibPDF().
Definition at line 32 of file CalibAnaPlot.h.
References Draw(), DrawPeriodLines(), fStride, make_syst_table_plots::h, HaddAllDataFile(), findDuplicateFiles::key, LegendLabel(), MakeDir(), path, plots, PrintEpochLengths(), PrintUnderOverFlow(), ProcessedAllData(), ProcessTrees(), update_sam_good_runs_metadata::stride, string, ymax, and ymin.
Referenced by CheckBrightnessModel(), MakeMEUPerDiblock(), MakeMEUPerFEB(), and MakeValidCalibPDF().
|
protected |
Definition at line 317 of file CalibAnaPlot.h.
References fEventVars.
Referenced by SetEventBranches().
|
protected |
|
protected |
Definition at line 322 of file CalibAnaPlot.h.
References fTrackVars.
Referenced by SetTrackBranches().
|
protected |
Definition at line 129 of file CalibAnaPlot.h.
|
protected |
Definition at line 106 of file CalibAnaPlot.h.
|
protected |
Definition at line 127 of file CalibAnaPlot.h.
Referenced by BrightnessModelPlots::FillHitPlots(), ValidCalibPDF::FillHitPlots(), and SetHitBranches().
|
protected |
Definition at line 109 of file CalibAnaPlot.h.
Referenced by BrightnessModelPlots::FillHitPlots(), MEUPerFEB::FillHitPlots(), MEUPerCell::FillHitPlots(), ValidCalibPDF::FillHitPlots(), ValidCalibPDF::GetCSVRow(), and SetHitBranches().
|
protected |
Definition at line 120 of file CalibAnaPlot.h.
Referenced by MEUPerDiblock::FillHitPlots(), MEUPerFEB::FillHitPlots(), MEUPerCell::FillHitPlots(), ValidCalibPDF::PassesAbsCalCut(), and SetHitBranches().
|
protected |
Definition at line 105 of file CalibAnaPlot.h.
|
protected |
Definition at line 104 of file CalibAnaPlot.h.
Referenced by MEUPerDiblock::FillHitPlots(), ValidCalibPDF::FillHitPlots(), and SetHitBranches().
|
protected |
Definition at line 79 of file CalibAnaPlot.h.
|
protected |
Definition at line 82 of file CalibAnaPlot.h.
|
protected |
Definition at line 84 of file CalibAnaPlot.h.
|
protected |
Definition at line 83 of file CalibAnaPlot.h.
Referenced by SetEventBranches().
|
protected |
Definition at line 81 of file CalibAnaPlot.h.
|
protected |
Definition at line 80 of file CalibAnaPlot.h.
Referenced by MEUPerCell::FillHitPlots(), MEUPerFEB::FillHitPlots(), ValidCalibPDF::FillHitPlots(), and SetHitBranches().
|
protected |
Definition at line 58 of file CalibAnaPlot.h.
Referenced by ValidCalibPDF::FillHitPlots(), ProcessTrees(), and ValidCalibPDF::SchedulePlots().
|
private |
Definition at line 132 of file CalibAnaPlot.h.
Referenced by progbar().
|
protected |
Definition at line 60 of file CalibAnaPlot.h.
Referenced by ValidCalibPDF::FillHitPlots(), and ProcessTrees().
|
protected |
Definition at line 68 of file CalibAnaPlot.h.
Referenced by ValidCalibPDF::AbsoluteCalibration(), MEUPerFEB::BadFeb(), CalibAnaPlot(), ValidCalibPDF::DiblockTex(), DrawPeriodLines(), MEUPerCell::DriftTex(), MEUPerFEB::DriftTex(), ValidCalibPDF::FillHitPlots(), HaddAllDataFile(), MEUPerFEB::MakeTex(), ValidCalibPDF::PassesAbsCalCut(), PrintEpochLengths(), BrightnessModelPlots::SchedulePlots(), MEUPerDiblock::SchedulePlots(), MEUPerFEB::SchedulePlots(), MEUPerCell::SchedulePlots(), ValidCalibPDF::SchedulePlots(), MEUPerDiblock::ScheduleSamples(), and ValidCalibPDF::ScheduleSamples().
|
protected |
Definition at line 65 of file CalibAnaPlot.h.
Referenced by ProcessTrees(), and UseEVar().
|
protected |
Definition at line 67 of file CalibAnaPlot.h.
Referenced by ProcessTrees(), BrightnessModelPlots::ScheduleHitVars(), MEUPerDiblock::ScheduleHitVars(), MEUPerFEB::ScheduleHitVars(), MEUPerCell::ScheduleHitVars(), ValidCalibPDF::ScheduleHitVars(), and UseHVar().
|
protected |
Definition at line 119 of file CalibAnaPlot.h.
|
protected |
Definition at line 63 of file CalibAnaPlot.h.
Referenced by ProcessTrees(), and SetTreeLoopLimit().
|
protected |
Definition at line 62 of file CalibAnaPlot.h.
Referenced by ValidCalibPDF::AbsoluteCalibration(), ValidCalibPDF::CalibAllSamples(), ValidCalibPDF::CalibSummaryTable(), ValidCalibPDF::DiblockTex(), BrightnessModelPlots::DoAna(), MEUPerDiblock::DoAna(), MEUPerCell::DoAna(), Draw(), HaddAllDataFile(), Initialize(), MEUPerFEB::MakeTex(), ValidCalibPDF::MakeTex(), and ProcessTrees().
|
protected |
Definition at line 57 of file CalibAnaPlot.h.
Referenced by BrightnessModelPlots::DoAna(), BrightnessModelPlots::FillHitPlots(), MEUPerDiblock::FillHitPlots(), MEUPerCell::FillHitPlots(), MEUPerFEB::FillHitPlots(), ValidCalibPDF::FillHitPlots(), ValidCalibPDF::MakeTex(), ProcessTrees(), BrightnessModelPlots::SchedulePlots(), MEUPerDiblock::SchedulePlots(), MEUPerFEB::SchedulePlots(), MEUPerCell::SchedulePlots(), and ValidCalibPDF::SchedulePlots().
|
protected |
Definition at line 61 of file CalibAnaPlot.h.
Referenced by ProcessedAllData(), and ProcessTrees().
|
protected |
Definition at line 59 of file CalibAnaPlot.h.
Referenced by ValidCalibPDF::CalibAllSamples(), BrightnessModelPlots::DoAna(), MEUPerDiblock::DoAna(), MEUPerCell::DoAna(), Draw(), GetSamples(), Initialize(), MEUPerFEB::MakeTex(), ValidCalibPDF::MakeTex(), ProcessedAllData(), ProcessTrees(), BrightnessModelPlots::ScheduleSamples(), MEUPerDiblock::ScheduleSamples(), MEUPerFEB::ScheduleSamples(), MEUPerCell::ScheduleSamples(), and ValidCalibPDF::ScheduleSamples().
|
protected |
Definition at line 64 of file CalibAnaPlot.h.
Referenced by ProcessTrees(), and SetTreeLoopStride().
|
protected |
Definition at line 66 of file CalibAnaPlot.h.
Referenced by ProcessTrees(), and UseTVar().
|
protected |
Definition at line 102 of file CalibAnaPlot.h.
|
protected |
Definition at line 101 of file CalibAnaPlot.h.
|
protected |
Definition at line 100 of file CalibAnaPlot.h.
|
protected |
Definition at line 103 of file CalibAnaPlot.h.
|
protected |
Definition at line 118 of file CalibAnaPlot.h.
Referenced by website.models.Organizational.PlotCollectionKey::__eq__(), website.models.Organizational.PlotCollectionKey::__hash__(), website.models.Organizational.PlotCollectionKey::__repr__(), log_trawl.FileViewer::__repr__(), BrightnessModelPlots::FillHitPlots(), MEUPerDiblock::FillHitPlots(), MEUPerFEB::FillHitPlots(), MEUPerCell::FillHitPlots(), ValidCalibPDF::FillHitPlots(), ValidCalibPDF::PassesAbsCalCut(), SetHitBranches(), and SetTreeLoopStride().
|
protected |
Definition at line 114 of file CalibAnaPlot.h.
Referenced by BrightnessModelPlots::FillHitPlots(), MEUPerDiblock::FillHitPlots(), MEUPerCell::FillHitPlots(), MEUPerFEB::FillHitPlots(), ValidCalibPDF::FillHitPlots(), ValidCalibPDF::PassesAbsCalCut(), and SetHitBranches().
|
protected |
Definition at line 115 of file CalibAnaPlot.h.
Referenced by BrightnessModelPlots::FillHitPlots(), MEUPerDiblock::FillHitPlots(), MEUPerCell::FillHitPlots(), MEUPerFEB::FillHitPlots(), ValidCalibPDF::FillHitPlots(), ValidCalibPDF::PassesAbsCalCut(), and SetHitBranches().
|
protected |
Definition at line 116 of file CalibAnaPlot.h.
|
protected |
Definition at line 107 of file CalibAnaPlot.h.
|
protected |
Definition at line 108 of file CalibAnaPlot.h.
Referenced by MEUPerFEB::BadFeb(), BrightnessModelPlots::FillHitPlots(), MEUPerCell::FillHitPlots(), MEUPerFEB::FillHitPlots(), ValidCalibPDF::FillHitPlots(), and SetHitBranches().
|
protected |
Definition at line 126 of file CalibAnaPlot.h.
|
protected |
Definition at line 112 of file CalibAnaPlot.h.
|
protected |
Definition at line 117 of file CalibAnaPlot.h.
Referenced by ValidCalibPDF::FillHitPlots().
|
protected |
Definition at line 79 of file CalibAnaPlot.h.
Referenced by Metric.Metric::__repr__(), and fabricate.Builder::memoize().
|
protected |
Definition at line 79 of file CalibAnaPlot.h.
Referenced by SetHitBranches().
|
protected |
Definition at line 128 of file CalibAnaPlot.h.
|
protected |
Definition at line 121 of file CalibAnaPlot.h.
|
protected |
Definition at line 87 of file CalibAnaPlot.h.
|
protected |
Definition at line 87 of file CalibAnaPlot.h.
|
protected |
Definition at line 87 of file CalibAnaPlot.h.
|
protected |
Definition at line 97 of file CalibAnaPlot.h.
|
protected |
Definition at line 91 of file CalibAnaPlot.h.
|
protected |
Definition at line 93 of file CalibAnaPlot.h.
|
protected |
Definition at line 95 of file CalibAnaPlot.h.
|
protected |
Definition at line 92 of file CalibAnaPlot.h.
Referenced by SetTrackBranches().
|
protected |
Definition at line 94 of file CalibAnaPlot.h.
|
protected |
Definition at line 90 of file CalibAnaPlot.h.
|
protected |
Definition at line 96 of file CalibAnaPlot.h.
|
protected |
Definition at line 89 of file CalibAnaPlot.h.
|
protected |
Definition at line 88 of file CalibAnaPlot.h.
|
protected |
Definition at line 125 of file CalibAnaPlot.h.
Referenced by ValidCalibPDF::FillHitPlots(), and SetHitBranches().
|
protected |
Definition at line 122 of file CalibAnaPlot.h.
Referenced by SetHitBranches().
|
protected |
Definition at line 123 of file CalibAnaPlot.h.
|
protected |
Definition at line 124 of file CalibAnaPlot.h.
|
protected |
Definition at line 110 of file CalibAnaPlot.h.
Referenced by MEUPerDiblock::DoAna(), BrightnessModelPlots::FillHitPlots(), MEUPerDiblock::FillHitPlots(), MEUPerFEB::FillHitPlots(), MEUPerCell::FillHitPlots(), ValidCalibPDF::FillHitPlots(), MEUPerFEB::MakeTex(), and SetHitBranches().
|
protected |
Definition at line 111 of file CalibAnaPlot.h.
Referenced by BrightnessModelPlots::FillHitPlots(), MEUPerDiblock::FillHitPlots(), MEUPerCell::FillHitPlots(), MEUPerFEB::FillHitPlots(), ValidCalibPDF::FillHitPlots(), ValidCalibPDF::PassesAbsCalCut(), and SetHitBranches().
|
protected |
Definition at line 113 of file CalibAnaPlot.h.
|
protected |
Definition at line 113 of file CalibAnaPlot.h.
|
protected |
Definition at line 113 of file CalibAnaPlot.h.