You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -50,36 +49,12 @@ int main(int argc, char **argv) {
50
49
MACH3LOG_ERROR("Error in yaml file: In KinemDistribtuion Plot {}, VarStrings is of size {}. VarString should be of size 1 or 2 (higher dimensional histogram plotting is not yet supported)");
if (PlotToDraw.BinEdges.size() != 1 && PlotToDraw.BinEdges.size() != 2) {
55
-
MACH3LOG_ERROR("Error in yaml file: In KinemDistribtuion Plot {}, BinEdges is of size {}. VarString should be of size 1 or 2 (higher dimensional histogram plotting is not yet supported)");
56
-
throwMaCh3Exception(__FILE__,__LINE__);
57
-
}
58
-
59
-
//If binning vector is of size 3, treat as [nbins, xmin, xmax] (otherwise treat as bin edges)
60
-
for (unsignedint iBinning=0; iBinning<PlotToDraw.BinEdges.size(); iBinning++) {
61
-
if (PlotToDraw.BinEdges[iBinning].size() == 3) {
62
-
double nbins = PlotToDraw.BinEdges[iBinning][0];
63
-
double xmin = PlotToDraw.BinEdges[iBinning][1];
64
-
double xmax = PlotToDraw.BinEdges[iBinning][2];
65
-
double step = (xmax-xmin)/nbins;
66
-
PlotToDraw.BinEdges[iBinning] = {};
67
-
for (double iBinEdge=xmin; iBinEdge<=xmax; iBinEdge+=step) {
std::vector<double> range = Cut["Range"].as<std::vector<double>>();
82
-
57
+
83
58
if (range.size() != 2) {
84
59
MACH3LOG_ERROR("Error in yaml file: In KinemDistribution Plot {}, KinematicCut {} has range of size {}. Range should be of size 2.", PlotToDraw.Name, SelectionCut.ParamToCutOn, range.size());
85
60
throwMaCh3Exception(__FILE__,__LINE__);
@@ -122,16 +97,12 @@ int main(int argc, char **argv) {
122
97
123
98
delete Canv;
124
99
Canv = newTCanvas("Canv","");
125
-
TH1* Hist;
126
100
int WeightStyle = 1;
127
101
for (size_t iHist=0; iHist<PlotsToDraw.size(); iHist++) {
128
102
MACH3LOG_INFO("Plotting kinematic distributions in config: {} / {}", iHist+1, PlotsToDraw.size());
0 commit comments