Lines Matching refs:detectors
79 current.detectors.push_back(detector_);
103 " -> Number of detectors must be non-zero!");
113 // Create data structure holding the worstcase detectors
114 list<double>* detectors = new list<double>();
119 // Walk through all detectors in a data path
120 for (unsigned int j = 0; j < current_path.detectors.size(); ++j)
123 double current_laser_power = current_path.detectors[j]->getSensitivity(ER_dB) *
128 detectors->push_back(current_laser_power);
130 // Cap the number of detectors
131 number_detectors_ = std::min(number_detectors_, (unsigned int) current_path.detectors.size());
132 // Sort the detectors list in ascending order, only necessary if the number
133 // of detectors is < total number of detectors
134 if (number_detectors_ < detectors->size())
135 detectors->sort();
136 // Sum up the laser power from the worst-case detectors
137 list<double>::reverse_iterator iter = detectors->rbegin();
143 delete detectors;