12 using namespace JDETECTOR ;
34 load(detectorFile, detector);
40 cerr <<
"FATAL ERROR. Could not open detector file '" << detectorFile <<
"'." << endl ;
72 for (
int i=1 ; i< nFloors ; i++) {
91 for (
int i = 1 ; i<nFloors+1 ; i++){
107 tuple < double , double , double > t (depth , q.
getMean() , q.
getSTDev()) ;
109 t0_vs_depth[i-1] = t ;
115 for (
auto & t: t0_vs_depth){
139 const JVector3D dist(pmt1_pos - pmt2_pos) ;
160 for(
int i=1 ; i < nFloors ; i++){
164 for(
int j=0 ; j < nPMTs ; j++){
vector< tuple< double, double, double > > get_t0_offsets_vs_depth(int strNr, const JDetector &detector)
Data structure for a composite optical module.
Router for direct addressing of module data in detector data structure.
int getNumberOfPMTs(const JModule &module)
Get number of PMTs.
Data structure for detector geometry and calibration.
Data structure for vector in three dimensions.
double get_PMT_distance(JPMT src_pmt, JPMT tgt_pmt)
Calculate the distance between two JPMTs in the detector.
Data structure for PMT geometry and calibration.
int getNumberOfFloors(const JDetector &detector)
Get number of floors.
JDetector loadDetector(string detectorFile)
Loads the content of a detector file in a JDetector object.
void load(const JString &file_name, JDetector &detector)
Load detector from input file.
const JPosition3D & getPosition() const
Get position.
void Print_Detector(JDetector &detector, int strNr)
Prints the t0 of all the PMTs in a DU.
double getLength() const
Get length.
const JPMT & getPMT(const int index) const
Get PMT.
const JModule & getModule(const JModuleAddress &address) const
Get module parameters.
Direct access to module in detector data structure.
Data structure for position in three dimensions.
double getZ() const
Get z position.
Logical location of module.
double getT0() const
Get time offset.
vector< double > getDetFile_t0_differences(int strNr, JDetector detector, int ref_pmt, int tgt_pmt)
Loops over the floors in the string chosen by the user.