ATLAS Offline Software
Loading...
Searching...
No Matches
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
7int 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){
14 MSVtxPlotMaker plotter(argv[1], argv[2]);
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}
int main()
Definition hello.cxx:18