ATLAS Offline Software
makeValidationPlots.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 "MSVtxPlotMaker.h"
6 
7 int main(int argc, char *argv[]){
8  // Produces the validation plots from the ntuple created by the MSVtxValidationAlg.
9  // The path to the ntuple is the first argument, and the output directory (including a trailing "/") is the second argument. Optionally the tree name can be provided as the third argument.
10  // Example:
11  // makeValidationPlots <path to ntuple> <output directory> <tree name>
12 
13  if (argc == 3){
15  plotter.makePlots();
16  }
17  else if (argc == 4){
18  MSVtxPlotMaker plotter(argv[1], argv[2], argv[3]);
19  plotter.makePlots();
20  }
21  else{
22  std::cout << "Invalid number of arguments. Please provide the input file path, the output directory, and optionally the tree name." << std::endl;
23  return 1;
24  }
25 
26  return 0;
27 }
main
int main(int argc, char *argv[])
Definition: makeValidationPlots.cxx:7
LArCellNtuple.argv
argv
Definition: LArCellNtuple.py:152
DQHistogramMergeRegExp.argc
argc
Definition: DQHistogramMergeRegExp.py:20
plot.plotter
plotter
Definition: Reconstruction/egamma/egammaLayerRecalibTool/python/plot.py:178
MSVtxPlotMaker.h
MSVtxPlotMaker
Definition: MSVtxPlotMaker.h:40