42 #ifndef PLOTINTENSITY_HH
43 #define PLOTINTENSITY_HH
50 #include "TMultiGraph.h"
61 const bool saveEps =
false,
62 const int* graphColors = NULL,
63 const double* graphScales = NULL,
64 const bool drawLegend =
true,
65 const std::string& graphTitle =
"",
66 const char* drawOption =
"AP",
67 const double normalization = 1,
68 const double yAxisRangeMax = 0,
69 const std::string& selectExpr =
"",
70 const std::string& branchName =
"fitResult_v2");
77 const bool saveEps =
false,
78 const std::vector<int>& graphColors = std::vector<int>(),
79 const std::vector<double>& graphScales = std::vector<double>(),
80 const bool drawLegend =
true,
81 const std::string& graphTitle =
"",
82 const char* drawOption =
"AP",
83 const double normalization = 1,
84 const double yAxisRangeMax = 0,
85 const std::string& selectExpr =
"",
86 const std::string& branchName =
"fitResult_v2")
88 return plotIntensity(trees.size(), &(*(trees.begin())), waveIndex, saveEps,
89 &(*(graphColors.begin())), &(*(graphScales.begin())), drawLegend, graphTitle, drawOption,
90 normalization, yAxisRangeMax, selectExpr, branchName);
98 const bool saveEps =
false,
99 const int graphColor = kBlack,
101 const bool drawLegend =
false,
102 const std::string& graphTitle =
"",
103 const char* drawOption =
"AP",
104 const double normalization = 1,
105 const double yAxisRangeMax = 0,
106 const std::string& selectExpr =
"",
107 const std::string& branchName =
"fitResult_v2")
109 return plotIntensity(1, &tree, waveIndex, saveEps, &graphColor, NULL, drawLegend, graphTitle,
110 drawOption, normalization, yAxisRangeMax, selectExpr, branchName);
122 const std::string& waveName,
123 const bool saveEps =
false,
124 const int* graphColors = NULL,
125 const double* graphScales = NULL,
126 const bool drawLegend =
true,
127 const std::string& graphTitle =
"",
128 const char* drawOption =
"AP",
129 const double normalization = 1,
130 const double yAxisRangeMax = 0,
131 const std::string& selectExpr =
"",
132 const std::string& branchName =
"fitResult_v2")
155 const std::string& waveName,
156 const bool saveEps =
false,
157 const std::vector<int>& graphColors = std::vector<int>(),
158 const std::vector<double>& graphScales = std::vector<double>(),
159 const bool drawLegend =
true,
160 const std::string& graphTitle =
"",
161 const char* drawOption =
"AP",
162 const double normalization = 1,
163 const double yAxisRangeMax = 0,
164 const std::string& selectExpr =
"",
165 const std::string& branchName =
"fitResult_v2")
167 return plotIntensity(trees.size(), &(*(trees.begin())), waveName, saveEps,
168 &(*(graphColors.begin())), &(*(graphScales.begin())), drawLegend, graphTitle, drawOption,
169 normalization, yAxisRangeMax, selectExpr, branchName);
176 const std::string& waveName,
177 const bool saveEps =
false,
178 const int graphColor = kBlack,
179 const bool drawLegend =
true,
180 const std::string& graphTitle =
"",
181 const char* drawOption =
"AP",
182 const double normalization = 1,
183 const double yAxisRangeMax = 0,
184 const std::string& selectExpr =
"",
185 const std::string& branchName =
"fitResult_v2")
187 return plotIntensity(1, &tree, waveName, saveEps, &graphColor, NULL, drawLegend, graphTitle,
188 drawOption, normalization, yAxisRangeMax, selectExpr, branchName);
192 #endif //PLOTINTENSITY_HH