Declaration of the member function that actually performs the reconstruction.
127 {
130
133
135
137
138 JDataL0_t dataL0;
139
141
142 for (JEvt::const_iterator shower = in.begin(); shower != in.end(); ++shower) {
143
146
148
149 for (JDataL0_t::const_iterator i = dataL0.begin(); i != dataL0.end(); ++i) {
150 if (match(*i)) {
151 top.insert(i->getPMTIdentifier());
152 }
153 }
154
156
158 for (JDetectorSubset_t::const_iterator module = subdetector.begin(); module != subdetector.end(); ++module) {
160
162
163 for (size_t i = 0; i != dom.size(); ++i) {
164
169
171
173 const size_t count = top.count(id);
174
175 data.push_back(
JPMTW0(dom.getPMT(i), rate_Hz, count));
176 }
177 }
178 }
179
181
182 for (JOmega3D_t::const_iterator dir =
omega.begin(); dir !=
omega.end(); ++dir) {
185 for (vector<JPMTW0>::const_iterator i =
data.begin(); i !=
data.end(); ++i) {
188 JNPE_t::result_type H1 = (*this).getH1(sh, pmt);
189 JNPE_t::result_type H0 = (*this).getH0(pmt.
getR());
190 const bool hit = pmt.
getN() != 0;
191 for(
size_t j=0;
j!=chi2v.size();++
j){
193 }
194 }
195
196 auto minChi2 = std::min_element(chi2v.begin(), chi2v.end());
199 }
200 }
201
202 return out;
203
204 }
Detector subset without binary search functionality.
Data structure for a composite optical module.
Data structure for fit of straight line in positive z-direction with energy.
JAxis3D & rotate(const JRotation3D &R)
Rotate axis.
Data structure for direction in three dimensions.
Data structure for vector in three dimensions.
Data structure for normalised vector in positive z-direction.
const JClass_t & getReference() const
Get reference to object.
double getRate() const
Get default rate.
const JDAQSummaryFrame & getSummaryFrame() const
Get default summary frame.
Data storage class for rate measurements of all PMTs in one module.
static const int JSHOWERDIRECTIONPREFIT
double getChi2(const double P)
Get chi2 corresponding to given probability.
double getQuality(const double chi2, const int N, const int NDF)
Get quality of fit.
JPosition3D getPosition(const JFit &fit)
Get position.
JFit getFit(const JHistory &history, const JTrack3D &track, const double Q, const int NDF, const double energy=0.0, const int status=SINGLE_STAGE)
Get fit.
bool is_valid(const json &js)
Check validity of JSon data.
bool getDAQStatus(const JDAQFrameStatus &frame, const JStatus &status)
Test status of DAQ.
bool getPMTStatus(const JStatus &status)
Test status of PMT.
static const int PMT_DISABLE
KM3NeT Data Definitions v3.4.0-8-ge14cb17 https://git.km3net.de/common/km3net-dataformat.
JHistory & add(const int type)
Add event to history.
Auxiliary class to match data points with given model.
Auxiliary class for handling PMT geometry, rate and response.
int getN() const
Get number of hits.
double getR() const
Get rate.
double DMax_m
maximal distance to optical module [m]