ATLAS Offline Software
Loading...
Searching...
No Matches
makeValidationPlotsComparison.cxx File Reference
Include dependency graph for makeValidationPlotsComparison.cxx:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 7 of file makeValidationPlotsComparison.cxx.

7 {
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}