File indexing completed on 2024-04-06 11:56:32
0001
0002
0003
0004 #ifndef PLOTMILLEMONITOR_H
0005 #define PLOTMILLEMONITOR_H
0006
0007 #include "PlotMilleMonitor.h"
0008
0009 #include <Rtypes.h>
0010 #include <TString.h>
0011 #include <vector>
0012 #include <utility>
0013
0014 class TFile;
0015 class GFHistManager;
0016
0017 class PlotMilleMonitor
0018 {
0019 public:
0020 explicit PlotMilleMonitor(const char *fileName);
0021 virtual ~PlotMilleMonitor();
0022
0023 void DrawAllByHit(const char *xy = "X", Option_t *option = "");
0024 void DrawResidualsByHit(const char *histName, const char *xy = "X", Option_t *option = "");
0025
0026 GFHistManager* GetHistManager() { return fHistManager;}
0027
0028 TString Unique(const char *name) const;
0029
0030 private:
0031 Int_t PrepareAdd(bool addPlots);
0032 bool OpenFilesLegends(const char *fileLegendList);
0033 Int_t AddResidualsByHit(const char *histName, std::pair<TFile*,TString> &fileLeg,
0034 Int_t layer, const char *xy, Option_t *option);
0035
0036
0037 GFHistManager *fHistManager;
0038
0039 std::vector<std::pair<TFile*, TString> > fFileLegends;
0040
0041 };
0042
0043 #endif