Go to the documentation of this file.
28 int main(
int argc,
char **argv) {
42 cout <<
"Calibrating DOM t0s with run number: " << run.
getRunNumber() << endl ;
44 cout << options.
ifname << endl ;
void write_output_checks(string filename, NBRun &run)
Writes a .root file with some objects that can be used to check the calibration.
Class dedicated to the nanobeacon analyses, where the Modules in the detector are not regarded as sin...
int read_options(IO &options, int argc, char **argv)
Parses the command line options and fills an IO structure with them.
Structure to store the different command line arguments for JRunAnalyzer.
int getRunNumber()
Get run number.
JDetector Update_Detector(JDetector detector, const vector< SuperModule * > &SuperMods)
Produces a new detector file by updating the existing t0s of the PMTs.
void write_output_det(string filename, const JDetector &detector)
Writes a .detx file with a JDetector.
void analyze(int option)
Loops over all the SUPERMODULES.
void write_output_compare(string filename, const JDetector &old_detector, const JDetector &new_detector, int string_number, int ref_pmt, int tgt_pmt)
Writes a .txt with the comparison of the t0s in a given DU for two JDetectors.
JDetector loadDetector(string detectorFile)
Loads the content of a detector file in a JDetector object.
vector< SuperModule * > getSuperModules()
Get the SuperModules in the DU.
int main(int argc, char **argv)