50 const double cwater =
c_water(470 , 3000);
62 cout <<
"allocating histograms" << endl;
70 cout <<
"reading time slices" << endl;
72 fill_histograms (histograms , options , detector, top_pmts , bottom_pmts , max_d);
87 cout <<
"writing output " << endl;
89 write_output(options , histograms , hit_ToT , hit_time) ;
96 <<
"---------- Done! ----------"
98 cout <<
"Output in '" << options.
ofname <<
"'." << endl ;
vector< int > setTopPMTs(int option)
Select the PMTs in the upper hemisphere of a DOM.
Structure to store the different command line arguments for JRunAnalyzer.
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...
vector< int > setBottomPMTs(int option)
Select the PMTs in the lower hemisphere of a DOM.
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_ToT(vector< vector< TH2D * > > ToT_vs_time)
Projects the hit time vs ToT histograms for all the combinations nanobeacon - pmt on the Y 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.
double c_water(double wavelength, double water_depth)