File indexing completed on 2025-01-31 02:20:06
0001 #ifndef __Validation_RecoParticleFlow_NicePlot__
0002 #define __Validation_RecoParticleFlow_NicePlot__
0003
0004 #include <TH1.h>
0005 #include <TPad.h>
0006
0007 class Style : public TH1 {
0008 private:
0009 void AddBinContent(Int_t) override {}
0010 void AddBinContent(Int_t, Double_t) override {}
0011 Double_t RetrieveBinContent(Int_t) const override { return 0.; }
0012 void UpdateBinContent(Int_t, Double_t) override {}
0013 };
0014
0015 class Styles {
0016 public:
0017 Style *s1;
0018 Style *s2;
0019 Style *sg1;
0020 Style *sback;
0021 Style *spred;
0022 Style *spblue;
0023 Style *sgr1;
0024 Style *sgr2;
0025
0026 Styles();
0027
0028 static void FormatHisto(TH1 *h, const Style *s);
0029
0030 static void FormatPad(TPad *pad, bool grid = true, bool logx = false, bool logy = false);
0031
0032 static void SavePlot(const char *name, const char *dir);
0033 };
0034
0035 #endif