Fit function.
202 {
204 using namespace JFIT;
206
208
210
212
213
214
216
218
219 if (!in.empty()) {
221 }
222
223 for (JEvt::const_iterator track = in.begin(); track != in.end(); ++track) {
224
228
232 }
233
235
236
237
239
240 for (buffer_type::const_iterator i =
data.begin(); i !=
data.end(); ++i) {
241
243
244 hit.rotate(R);
245
246 if (match(hit)) {
247 buffer.push_back(hit);
248 }
249 }
250
251
252
254
256 for (buffer_type::const_iterator i = buffer.begin(); i != buffer.end(); ++i) {
257 auto it = mapString.find((*i).getModuleID());
258 stringSet.insert(it->second);
259 }
260
263 const int number_of_lines = stringSet.size();
264
265 const int NDF = number_of_hits - this->parameters.size();
266
267 if (NDF > 0) {
268
270
271
272
276
277 }
278 }
279
280
281
283
284 copy(input.in.begin(), input.in.end(), back_inserter(out));
285
286 return out;
287 }
JFit & add(const int type)
Add event to history.
Data structure for fit of straight line paralel to z-axis.
JPosition3D & rotate(const JRotation3D &R)
Rotate.
const JDAQModuleIdentifier & getModuleIdentifier() const
Get Module identifier.
const JDAQPMTIdentifier & getPMTIdentifier() const
Get PMT identifier.
static const int JMUONFEATURES
static const int JMUONFEATURES_NUMBER_OF_LINES
number of lines from JMuonFeatures.cc
static const int JSTART_LENGTH_METRES
distance between projected positions on the track of optical modules for which the response does not ...
static const int JMUONFEATURES_NUMBER_OF_HITS
number of hits from JMuonFeatures.cc
static const int JMUONFEATURES_NUMBER_OF_DOMS
number of doms from JMuonFeatures.cc
void copy(const Head &from, JHead &to)
Copy header from from to to.
JTOOLS::JRange< double > JZRange
Auxiliary classes and methods for 3D geometrical objects and operations.
const array_type< JValue_t > & make_array(const JValue_t(&array)[N])
Method to create array of values.
size_t getCount(const array_type< T > &buffer, const JCompare_t &compare)
Count number of unique values.
JPosition3D getPosition(const JFit &fit)
Get position.
bool qualitySorter(const JFit &first, const JFit &second)
Comparison of fit results.
JDirection3D getDirection(const JFit &fit)
Get direction.
Model for fit to acoustics data.
Auxiliary class to test history.
double ZMax_m
maximal z-positon [m]
double ZMin_m
minimal z-positon [m]
size_t numberOfPrefits
number of prefits