Jpp 21.0.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JRECONSTRUCTION::JORCAMuonReconstruction Struct Reference

ORCA muon reconstruction. More...

#include <JORCAMuonReconstruction.hh>

Classes

struct  input_type
 Input data type. More...
 
struct  JParameters_t
 Parameters. More...
 
struct  JStorage_t
 Storage for PDFs. More...
 

Public Member Functions

 JORCAMuonReconstruction (const JParameters_t &parameters, const JStorage_t &storage, const JK40Rates &rates_Hz, const JPMTParametersMap &pmtParameters, const JEnergyCorrection &correct, const int debug)
 Constructor.
 
input_type getInput (const JModuleRouter &router, const JSummaryRouter &summary, const JDAQEvent &event, const coverage_type &coverage) const
 Get input data.
 
JEvt operator() (input_type &input)
 Fit function.
 

Public Attributes

JMuonPrefit prefit
 
JMuonSimplex simplex
 
JMuonStart start
 
JMuonGandalf gandalf
 
JMuonStart start2
 
JMuonEnergy energy
 
JMuonFeatures features
 
std::vector< JLANG::JClockclock
 

Detailed Description

ORCA muon reconstruction.

Definition at line 41 of file JORCAMuonReconstruction.hh.

Constructor & Destructor Documentation

◆ JORCAMuonReconstruction()

JRECONSTRUCTION::JORCAMuonReconstruction::JORCAMuonReconstruction ( const JParameters_t & parameters,
const JStorage_t & storage,
const JK40Rates & rates_Hz,
const JPMTParametersMap & pmtParameters,
const JEnergyCorrection & correct,
const int debug )
inline

Constructor.

Parameters
parametersparameters
storagestorage
rates_HzK40 rates [Hz]
pmtParametersPMT parameters
correctenergy correction
debugdebug

Definition at line 142 of file JORCAMuonReconstruction.hh.

147 :
148 prefit (parameters.prefit, debug),
149 simplex (parameters.simplex, debug),
150 start (parameters.start, storage.start, rates_Hz, debug),
151 gandalf (parameters.gandalf, storage.gandalf, pmtParameters, debug),
152 start2 (parameters.start2, storage.start2, rates_Hz, debug),
153 energy (parameters.energy, storage.energy, pmtParameters, correct, debug),
154 features(parameters.features, storage.features, debug)
155 {
156 clock.resize(7);
157
158 clock[0].setTitle("prefit");
159 clock[1].setTitle("simplex");
160 clock[2].setTitle("start");
161 clock[3].setTitle("gandalf");
162 clock[4].setTitle("start2");
163 clock[5].setTitle("energy");
164 clock[6].setTitle("features");
165 }
int debug
debug level
Definition JSirene.cc:74

Member Function Documentation

◆ getInput()

input_type JRECONSTRUCTION::JORCAMuonReconstruction::getInput ( const JModuleRouter & router,
const JSummaryRouter & summary,
const JDAQEvent & event,
const coverage_type & coverage ) const
inline

Get input data.

Parameters
routermodule router
summarysummary data
eventevent
coveragecoverage
Returns
input data

Definition at line 177 of file JORCAMuonReconstruction.hh.

181 {
182 input_type input(event.getDAQEventHeader());
183
184 input.prefit = prefit .getInput(router, event, coverage);
185 input.simplex = simplex .getInput(router, event, JEvt(), coverage);
186 input.start = start .getInput(router, summary, event, JEvt(), coverage);
187 input.gandalf = gandalf .getInput(router, summary, event, JEvt(), coverage);
188 input.start2 = start2 .getInput(router, summary, event, JEvt(), coverage);
189 input.energy = energy .getInput(router, summary, event, JEvt(), coverage);
190 input.features = features.getInput(router, summary, event, JEvt(), coverage);
191
192 return input;
193 }
input_type getInput(const JModuleRouter &router, const JSummaryRouter &summary, const JDAQEvent &event, const JEvt &in, const coverage_type &coverage) const
Get input data.
input_type getInput(const JModuleRouter &router, const JSummaryRouter &summary, const JDAQEvent &event, const JEvt &in, const coverage_type &coverage) const
Get input data.
const JDAQEventHeader & getDAQEventHeader() const
Get DAQ event header.
input_type getInput(const JModuleRouter &router, const JSummaryRouter &summary, const JDAQEvent &event, const JEvt &in, const coverage_type &coverage) const
Get input data.
input_type getInput(const JModuleRouter &router, const JSummaryRouter &summary, const JDAQEvent &event, const JEvt &in, const coverage_type &coverage) const
Get input data.
input_type getInput(const JModuleRouter &router, const JDAQEvent &event, const coverage_type &coverage) const
Get input data.
input_type getInput(const JModuleRouter &router, const JDAQEvent &event, const JEvt &in, const coverage_type &coverage) const
Get input data.

◆ operator()()

JEvt JRECONSTRUCTION::JORCAMuonReconstruction::operator() ( input_type & input)
inline

Fit function.

Parameters
inputinput data
Returns
fit results

Definition at line 202 of file JORCAMuonReconstruction.hh.

203 {
204 std::vector<int> apps;
205
206 {
207 JLANG::JClock::sentry sentry(clock[0]);
208
209 input.simplex.in = prefit(input.prefit);
210
211 apps.push_back(JMUONPREFIT);
212 }
213 {
214 JLANG::JClock::sentry sentry(clock[1]);
215
216 input.start.in = simplex(input.simplex);
217
218 apps.push_back(JMUONSIMPLEX);
219 }
220 {
221 JLANG::JClock::sentry sentry(clock[2]);
222
223 input.gandalf.in = start(input.start);
224
225 apps.push_back(JMUONSTART);
226 }
227 {
228 JLANG::JClock::sentry sentry(clock[3]);
229
230 input.start2.in = gandalf(input.gandalf);
231
232 apps.push_back(JMUONGANDALF);
233 }
234 {
235 JLANG::JClock::sentry sentry(clock[4]);
236
237 input.energy.in = start2(input.start2);
238
239 apps.push_back(JMUONSTART);
240 }
241 {
242 JLANG::JClock::sentry sentry(clock[5]);
243
244 input.features.in = energy(input.energy);
245
246 apps.push_back(JMUONENERGY);
247 }
248
249 JLANG::JClock::sentry sentry(clock[6]);
250
251 JEvt out = features(input.features);
252
253 apps.push_back(JMUONFEATURES);
254
255 for (JFIT::JEvt::iterator i = out.begin(); i != out.end(); ++i) {
256 i->setStatus(i->getHistory().getStatus(apps) ? COMPLETE_CHAIN : INCOMPLETE_CHAIN);
257 }
258
259 return out;
260 }
Acoustic event fit.
Auxiliary data structure for scoped timing.
Definition JClock.hh:65

Member Data Documentation

◆ prefit

JMuonPrefit JRECONSTRUCTION::JORCAMuonReconstruction::prefit

Definition at line 262 of file JORCAMuonReconstruction.hh.

◆ simplex

JMuonSimplex JRECONSTRUCTION::JORCAMuonReconstruction::simplex

Definition at line 263 of file JORCAMuonReconstruction.hh.

◆ start

JMuonStart JRECONSTRUCTION::JORCAMuonReconstruction::start

Definition at line 264 of file JORCAMuonReconstruction.hh.

◆ gandalf

JMuonGandalf JRECONSTRUCTION::JORCAMuonReconstruction::gandalf

Definition at line 265 of file JORCAMuonReconstruction.hh.

◆ start2

JMuonStart JRECONSTRUCTION::JORCAMuonReconstruction::start2

Definition at line 266 of file JORCAMuonReconstruction.hh.

◆ energy

JMuonEnergy JRECONSTRUCTION::JORCAMuonReconstruction::energy

Definition at line 267 of file JORCAMuonReconstruction.hh.

◆ features

JMuonFeatures JRECONSTRUCTION::JORCAMuonReconstruction::features

Definition at line 268 of file JORCAMuonReconstruction.hh.

◆ clock

std::vector<JLANG::JClock> JRECONSTRUCTION::JORCAMuonReconstruction::clock

Definition at line 270 of file JORCAMuonReconstruction.hh.


The documentation for this struct was generated from the following file: