Declaration of the member function that actually performs the reconstruction.
129 {
132
135
137
139
140 JDataL0_t dataL0;
141
143
144 for (JEvt::const_iterator shower = in.begin(); shower != in.end(); ++shower) {
145
147
149
151
153
154 for (JDataL0_t::const_iterator i = dataL0.begin(); i != dataL0.end(); ++i) {
155 if (match(*i)) {
156 top.insert(i->getPMTIdentifier());
157 }
158 }
159
161
163
165
166 for (JDetectorSubset_t::const_iterator module = subdetector.begin();
167 module != subdetector.end(); ++module) {
168
170
172
173 dom.rotate(R);
174
175 for (size_t i = 0; i != dom.size(); ++i) {
176
182
184 const size_t count = top.count(id);
185
186 buffer.push_back(
JPMTW0(dom.getPMT(i), rate_Hz, count));
187 }
188 }
189 }
190
192 shower->getE()), buffer.begin(), buffer.end());
193
194 double NDF =
getCount(buffer.begin(), buffer.end()) - this->parameters.size();
195
196 JShower3E sh_fit(this->value.getPosition(), this->value.getDirection(),
197 this->value.getT(),
correct(this->value.getE()));
198
199 sh_fit.rotate_back(R);
200
201 sh_fit.add(Vertex.getPosition());
202
204 NDF, sh_fit.getE()));
205 out.rbegin()->setV(this->V.size(), this->V);
207 }
208
209 return out;
210 }
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
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.
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 JSHOWERCOMPLETEFIT
static const int JSHOWERFIT_ENERGY
uncorrected energy [GeV] from JShowerFit.cc
size_t getCount(const array_type< T > &buffer, const JCompare_t &compare)
Count number of unique values.
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.
JDirection3D getDirection(const JFit &fit)
Get direction.
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.
double DMax_m
maximal distance to optical module [m]
double DStep_m
step increase for the distance to optical module [m]