All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
CreateTestShowerCalibrationFromPID_test.cc File Reference

Creates a test calibration file for ShowerCalibrationGaloreFromPID. More...

#include "test/Services/ShowerCalibrationGalore/Providers/CreateTestShowerCalibrationFromPID.h"
#include <string>

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

Creates a test calibration file for ShowerCalibrationGaloreFromPID.

Author
Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.fnal..nosp@m.gov)
Date
April 28, 2016
See Also
CreateTestShowerCalibrationFromPID.h

Command line arguments:

CreateTestCalibrationFromPID [OutputPath]

OutputPath is a full ROOT directory path made of a UNIX path and a ROOT directory path. For example, "data/calibrations.root:Showers/ByType" will create a directory "data" and a "calibrations.root" ROOT file in it (or update it if exists), create a structure of two nested ROOT directories, "Showers/ByType", and write all the calibration graphs in there.

Definition in file CreateTestShowerCalibrationFromPID_test.cc.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 28 of file CreateTestShowerCalibrationFromPID_test.cc.

28  {
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()
int CreateTestShowerCalibrationFromPID(std::string outputPath)
Creates a test calibration file for ShowerCalibrationGaloreFromPID.