ATLAS Offline Software
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 
5 #include "MSVtxPlotComparison.h"
6 
7 int 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 }
MSVtxPlotComparison.h
MSVtxPlotComparison
Definition: MSVtxPlotComparison.h:37
beamspotnt.labels
list labels
Definition: bin/beamspotnt.py:1447
lumiFormat.i
int i
Definition: lumiFormat.py:85
LArCellNtuple.argv
argv
Definition: LArCellNtuple.py:152
DQHistogramMergeRegExp.argc
argc
Definition: DQHistogramMergeRegExp.py:20
main
int main(int argc, char *argv[])
Definition: makeValidationPlotsComparison.cxx:7
plot.plotter
plotter
Definition: Reconstruction/egamma/egammaLayerRecalibTool/python/plot.py:178