CreateTestShowerCalibrationFromPID.h
Go to the documentation of this file.
1 /**
2  * @file CreateTestShowerCalibrationFromPID.h
3  * @brief Creates a test calibration file for ShowerCalibrationGaloreFromPID
4  * @author Gianluca Petrillo (petrillo@fnal.gov)
5  * @date April 28, 2016
6  * @see CreateTestShowerCalibrationFromPID.cxx
7  *
8  * Provides in lar::example::tests namespace:
9  *
10  * * CreateTestShowerCalibrationFromPID()
11  *
12  */
13 
14 #ifndef TEST_SERVICES_SHOWERCALIBRATIONGALORE_PROVIDERS_CREATETESTSHOWERCALIBRATIONFROMPID
15 #define TEST_SERVICES_SHOWERCALIBRATIONGALORE_PROVIDERS_CREATETESTSHOWERCALIBRATIONFROMPID
16 
17 
18 // C/C++ standard libraries
19 #include <string>
20 
21 
22 namespace lar {
23 namespace example {
24 namespace tests {
25 
26 /**
27  * @brief Creates a test calibration file for ShowerCalibrationGaloreFromPID
28  * @param outputPath UNIX + ROOT path for the output ROOT directory
29  * @return an error code, 0 on success
30  *
31  * `outputPath` is a full ROOT directory path made of a UNIX path and a ROOT
32  * directory path. For example, `"data/calibrations.root:Showers/ByType"` will
33  * create a directory `data` and a `calibrations.root` ROOT file in it (or
34  * update it if exists), create a structure of two nested ROOT directories,
35  * `Showers/ByType`, and write all the calibration graphs in there.
36  *
37  * It currently writes:
38  *
39  * * `"Pi0"` (`TGraphErrors`):
40  * neutral pion calibration vs. reconstructed energy, [ 0; 2 ] GeV range
41  * * `"Photon"` (`TGraphErrors`):
42  * photon calibration vs. reconstructed energy, [ 0; 2 ] GeV range
43  * * `"Electron"` (`TGraphErrors`):
44  * electron/positron calibration vs. reconstructed energy, [ 0; 2 ] GeV range
45  * * `"Muon"` (`TGraphErrors`):
46  * muon/antimuon calibration vs. reconstructed energy, [ 0; 2 ] GeV range
47  * * `"Default"` (`TGraphErrors`):
48  * other particle calibration vs. reconstructed energy, [ 0; 5 ] GeV range
49  *
50  */
52 
53 } // namespace tests
54 } // namespace example
55 } // namespace lar
56 
57 
58 
59 #endif // TEST_SERVICES_SHOWERCALIBRATIONGALORE_PROVIDERS_CREATETESTSHOWERCALIBRATIONFROMPID
std::string string
Definition: nybbler.cc:12
int CreateTestShowerCalibrationFromPID(std::string outputPath)
Creates a test calibration file for ShowerCalibrationGaloreFromPID.
LArSoft-specific namespace.