ATLAS Offline Software
Loading...
Searching...
No Matches
makeValidationPlotsComparison.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7int main(int argc, char *argv[]){
8 // For each dataset to compare, input the directory path to the Histogram.root file created by `makeValidationPlots`, followed by the dataset label in the comparison plots.
9 // The last argument specifies the output directory (including a trailing "/").
10 // Example:
11 // makeValidationPlotsComparison <path to dataset1 Histograms.root> <dataset1 label> <path to dataset2 Histograms.root> <dataset2 label> <path to output directory>
12 //
13 // When only two input datasets are provided, the comparisons plots also show a ratio plot.
14
15 std::vector<std::string> datapaths;
16 std::vector<std::string> labels;
17
18 for (int i=1; i<argc-1; ++i){
19 if (i%2 == 1) datapaths.push_back(argv[i]);
20 else labels.push_back(argv[i]);
21 }
22
23 MSVtxPlotComparison plotter(datapaths, labels, argv[argc-1]);
24 plotter.makeComparison();
25
26 return 0;
27}
int main()
Definition hello.cxx:18