Go to the source code of this file.
◆ loadDetector()
JDetector loadDetector |
( |
string |
detectorFile | ) |
|
|
inline |
Loads the content of a detector file in a JDetector object.
- Author
- rgruiz
- Parameters
-
detectorFile | The name of a .detx |
- Returns
- a JDetector object with the information of the file name
Definition at line 28 of file Detector.hh.
34 load(detectorFile, detector);
40 cerr <<
"FATAL ERROR. Could not open detector file '" << detectorFile <<
"'." << endl ;
◆ getDetFile_t0_differences()
vector<double> getDetFile_t0_differences |
( |
int |
strNr, |
|
|
JDetector |
detector, |
|
|
int |
ref_pmt, |
|
|
int |
tgt_pmt |
|
) |
| |
|
inline |
Loops over the floors in the string chosen by the user.
At each iteration "i" this function calculates: dt = t0_tgt[i+1] - t0_ref[i] where t0_tgt is the t0 of the target PMT and t0_ref is the t0 of the reference PMT (the closest to the nanobeacon). The result is stored in a vector of dimension nFloors - 1 and this vector is returned.
- Parameters
-
detector | The name of a .detx |
strNr | String number |
ref_pmt | number of reference pmt |
tgt_pmt | number of target pmt |
- Returns
- a JDetector object with the information of the file name
Definition at line 66 of file Detector.hh.
72 for (
int i=1 ; i< nFloors ; i++) {
◆ get_t0_offsets_vs_depth()
vector< tuple <double , double , double> > get_t0_offsets_vs_depth |
( |
int |
strNr, |
|
|
const JDetector & |
detector |
|
) |
| |
|
inline |
Definition at line 83 of file Detector.hh.
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){
117 get<1>(t) -= Q.getMean() ;
◆ get_PMT_distance()
double get_PMT_distance |
( |
JPMT |
src_pmt, |
|
|
JPMT |
tgt_pmt |
|
) |
| |
|
inline |
Calculate the distance between two JPMTs in the detector.
- Parameters
-
src_pmt | One pmt |
tgt_pmt | Other pmt |
- Returns
- distance between both JPMTs
Definition at line 133 of file Detector.hh.
139 const JVector3D dist(pmt1_pos - pmt2_pos) ;
141 return dist.getLength() ;
◆ Print_Detector()
void Print_Detector |
( |
JDetector & |
detector, |
|
|
int |
strNr |
|
) |
| |
|
inline |
Prints the t0 of all the PMTs in a DU.
- Parameters
-
detector | A JDetector |
strNr | The DU number |
Definition at line 152 of file Detector.hh.
160 for(
int i=1 ; i < nFloors ; i++){
164 for(
int j=0 ;
j < nPMTs ;
j++){