8 : fExtraOptions(extra_options) {}
13 std::map<
int,
std::vector<std::vector<ThinSliceSample>>> & samples,
17 TDirectory * plot_dir,
21 for (
auto it = samples.begin(); it != samples.end(); ++it) {
22 std::vector<ThinSliceSample> & vec = it->second[0];
23 for (
size_t i = 0; i < vec.size(); ++i) {
24 vec[i].RefillRebinnedHists();
28 for (
size_t i = 1; i < it->second.size(); ++i) {
29 std::vector<ThinSliceSample> & vec = it->second[i];
30 for (
size_t j = 0; j < vec.size(); ++j) {
31 vec[j].RefillRebinnedHists();
37 samples, data_set, output_file, plot_style, plot_rebinned,
38 post_fit, nPars, plot_dir);
44 const std::vector<std::pair<int, int>> & plot_style) {
45 return {plot_style.at(i % plot_style.size()).first,
46 (i < plot_style.size() ? 1001: 3244)};
std::pair< int, int > GetColorAndStyle(size_t i, const std::vector< std::pair< int, int >> &plot_style)
void CompareDataMC(std::map< int, std::vector< std::vector< ThinSliceSample >>> &samples, ThinSliceDataSet &data_set, TFile &output_file, std::vector< std::pair< int, int >> plot_style, int nPars, TDirectory *plot_dir, bool plot_rebinned=false, bool post_fit=false)
virtual void CompareSelections(std::map< int, std::vector< std::vector< ThinSliceSample >>> &samples, ThinSliceDataSet &data_set, TFile &output_file, std::vector< std::pair< int, int >> plot_style, bool plot_rebinned, bool post_fit, int nPars, TDirectory *plot_dir)=0
ThinSliceDriver(const fhicl::ParameterSet &extra_options)
virtual ~ThinSliceDriver()