Jpp 20.0.0-195-g190c9e876
the software that should make you happy
Loading...
Searching...
No Matches
JRECONSTRUCTION::JORCAShowerReconstruction Struct Reference

ORCA shower reconstruction. More...

#include <JORCAShowerReconstruction.hh>

Classes

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

Public Member Functions

 JORCAShowerReconstruction (const JParameters_t &parameters, const JStorage_t &storage, 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

JShowerPrefit prefit
 
JShowerPointSimplex simplex
 
JShowerPositionFit position
 
JShowerDirectionPrefit direction
 
JShowerFit fit
 

Detailed Description

ORCA shower reconstruction.

Definition at line 37 of file JORCAShowerReconstruction.hh.

Constructor & Destructor Documentation

◆ JORCAShowerReconstruction()

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

Constructor.

Parameters
parametersparameters
storagestorage
pmtParametersPMT parameters
correctenergy correction
debugdebug

Definition at line 127 of file JORCAShowerReconstruction.hh.

131 :
132 prefit (parameters.prefit, debug),
133 simplex (parameters.simplex, debug),
134 position (parameters.position, storage.position, pmtParameters, debug),
135 direction(parameters.direction, storage.direction, pmtParameters, debug),
136 fit (parameters.fit, storage.fit, pmtParameters, correct, debug)
137 {}
int debug
debug level
Definition JSirene.cc:74

Member Function Documentation

◆ getInput()

input_type JRECONSTRUCTION::JORCAShowerReconstruction::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 149 of file JORCAShowerReconstruction.hh.

153 {
154 input_type input(event.getDAQEventHeader());
155
156 input.prefit = prefit .getInput(router, event, coverage);
157 input.simplex = simplex .getInput(router, event, JEvt(), coverage);
158 input.position = position .getInput(router, summary, event, JEvt(), coverage);
159 input.direction = direction.getInput(router, summary, event, JEvt(), coverage);
160 input.fit = fit .getInput(router, summary, event, JEvt(), coverage);
161
162 return input;
163 }
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 KM3NETDAQ::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 KM3NETDAQ::JDAQEvent &event, const coverage_type &coverage) const
Get input data.
const JDAQEventHeader & getDAQEventHeader() const
Get DAQ event header.

◆ operator()()

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

Fit function.

Parameters
inputinput data
Returns
fit results

Definition at line 172 of file JORCAShowerReconstruction.hh.

173 {
174 std::vector<int> apps;
175
176 input.simplex.in = prefit(input.prefit);
177
178 apps.push_back(JSHOWERPREFIT);
179
180 input.position.in = simplex(input.simplex);
181
182 apps.push_back(JSHOWERPOINTSIMPLEX);
183
184 input.direction.in = position(input.position);
185
186 apps.push_back(JSHOWERPOSITIONFIT);
187
188 input.fit.in = direction(input.direction);
189
190 apps.push_back(JSHOWERDIRECTIONPREFIT);
191
192 JEvt out = fit(input.fit);
193
194 apps.push_back(JSHOWERCOMPLETEFIT);
195
196 for (JFIT::JEvt::iterator i = out.begin(); i != out.end(); ++i) {
197 i->setStatus(i->getHistory().getStatus(apps) ? COMPLETE_CHAIN : INCOMPLETE_CHAIN);
198 }
199
200 return out;
201 }
Acoustic event fit.

Member Data Documentation

◆ prefit

JShowerPrefit JRECONSTRUCTION::JORCAShowerReconstruction::prefit

Definition at line 204 of file JORCAShowerReconstruction.hh.

◆ simplex

JShowerPointSimplex JRECONSTRUCTION::JORCAShowerReconstruction::simplex

Definition at line 205 of file JORCAShowerReconstruction.hh.

◆ position

JShowerPositionFit JRECONSTRUCTION::JORCAShowerReconstruction::position

Definition at line 206 of file JORCAShowerReconstruction.hh.

◆ direction

JShowerDirectionPrefit JRECONSTRUCTION::JORCAShowerReconstruction::direction

Definition at line 207 of file JORCAShowerReconstruction.hh.

◆ fit

JShowerFit JRECONSTRUCTION::JORCAShowerReconstruction::fit

Definition at line 208 of file JORCAShowerReconstruction.hh.


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