#include <iostream>
#include <iomanip>
#include "JDetector/JDetector.hh"
#include "JDetector/JDetectorToolkit.hh"
#include "JDetector/JModuleLocation.hh"
#include "TH1D.h"
#include "TH2D.h"
#include "JPulseFinder_IO.hh"
#include "Physics.hh"
#include "Detector.hh"
#include "PMT_choice.hh"
#include "JPulseFinder_utils.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 34 of file JPulseFinder.cc.
50 const double cwater =
c_water(470 , 3000);
62 cout <<
"allocating histograms" << endl;
70 cout <<
"reading time slices" << endl;
87 cout <<
"writing output " << endl;
89 write_output(options , histograms , hit_ToT , hit_time) ;
96 <<
"---------- Done! ----------"
98 cout <<
"Output in '" << options.
ofname <<
"'." << endl ;
double c_water(double wavelength, double water_depth)
vector< int > setTopPMTs(int option)
Select the PMTs in the upper hemisphere of a DOM.
vector< int > setBottomPMTs(int option)
Select the PMTs in the lower hemisphere of a DOM.
vector< vector< TH1D * > > project_ToT(vector< vector< TH2D * > > ToT_vs_time)
Projects the hit time vs ToT histograms for all the combinations nanobeacon - pmt on the Y axis.
Structure to store the different command line arguments for JInterDomCal.
vector< vector< TH2D * > > allocate_histograms(JDetector detector, IO options, double c_w, vector< int > top_pmts, vector< int > bottom_pmts, int max_distance)
Allocates histograms to store the tot vs time hit distribution for all the combinations nanobeacon - ...
vector< vector< TH1D * > > project_time(vector< vector< TH2D * > > ToT_vs_time)
Projects the hit time vs ToT histograms for all the combinations nanobeacon - pmt on the X axis.
void write_output(IO options, vector< vector< TH2D * > > ToT_vs_time, vector< vector< TH1D * > > ToT, vector< vector< TH1D * > > time)
Writes a .root file with the nanobeacon pulses found by JPulseFinder.
JDetector loadDetector(string detectorFile)
Loads the content of a detector file in a JDetector object.
void fill_histograms(vector< vector< TH2D * > > &histograms, IO options, JDetector detector, vector< int > top_pmts, vector< int > bottom_pmts, int max_distance)
Fills the hit time vs ToT histograms for all the combinations nanobeacon - pmt.
int read_user_options(IO &options, int argc, char **argv)
Parses the command line options and fills an IO structure with them.