ATLAS Offline Software
Functions
makeValidationPlots.cxx File Reference
#include "MSVtxPlotMaker.h"
Include dependency graph for makeValidationPlots.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 makeValidationPlots.cxx.

7  {
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 }
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
Definition: MSVtxPlotMaker.h:40