CreateTestShowerCalibrationFromPID_test.cc
Go to the documentation of this file.
1 /**
2  * @file CreateTestShowerCalibrationFromPID_test.cc
3  * @brief Creates a test calibration file for ShowerCalibrationGaloreFromPID
4  * @author Gianluca Petrillo (petrillo@fnal.gov)
5  * @date April 28, 2016
6  * @see CreateTestShowerCalibrationFromPID.h
7  *
8  * Command line arguments:
9  *
10  * CreateTestCalibrationFromPID [OutputPath]
11  *
12  * OutputPath is a full ROOT directory path made of a UNIX path and a ROOT
13  * directory path. For example, "data/calibrations.root:Showers/ByType" will
14  * create a directory "data" and a "calibrations.root" ROOT file in it (or
15  * update it if exists), create a structure of two nested ROOT directories,
16  * "Showers/ByType", and write all the calibration graphs in there.
17  *
18  */
19 
20 
21 // LArSoft libraries
23 
24 // C/C++ standard libraries
25 #include <string>
26 
27 
28 int main(int argc, char** argv) {
29 
30  //
31  // argument parsing
32  //
33  std::string OutputFilePath = "ShowerCalibrationTestFromPID.root:Test";
34 
35  char** param = argv + 1;
36  char** endparam = argv + argc;
37 
38  if (param < endparam) OutputFilePath = *param;
39 
40  //
41  // run
42  //
43  return
45 
46 } // main()
std::string string
Definition: nybbler.cc:12
int main(int argc, char **argv)
int CreateTestShowerCalibrationFromPID(std::string outputPath)
Creates a test calibration file for ShowerCalibrationGaloreFromPID.
Creates a test calibration file for ShowerCalibrationGaloreFromPID.