Jpp test-rotations-new
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 JShowerEnergyCorrection &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 JShowerEnergyCorrection & correct,
const int debug )
inline

Constructor.

Parameters
parametersparameters
storagestorage
correctenergy correction
debugdebug

Definition at line 126 of file JORCAShowerReconstruction.hh.

129 :
130 prefit (parameters.prefit, debug),
131 simplex (parameters.simplex, debug),
132 position (parameters.position, storage.position, debug),
133 direction(parameters.direction, storage.direction, debug),
134 fit (parameters.fit, storage.fit, correct, debug)
135 {}
int debug
debug level
Definition JSirene.cc:72

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 147 of file JORCAShowerReconstruction.hh.

151 {
152 input_type input(event.getDAQEventHeader());
153
154 input.prefit = prefit .getInput(router, event, coverage);
155 input.simplex = simplex .getInput(router, event, JEvt(), coverage);
156 input.position = position .getInput(router, summary, event, JEvt(), coverage);
157 input.direction = direction.getInput(router, summary, event, JEvt(), coverage);
158 input.fit = fit .getInput(router, summary, event, JEvt(), coverage);
159
160 return input;
161 }
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 170 of file JORCAShowerReconstruction.hh.

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

Member Data Documentation

◆ prefit

JShowerPrefit JRECONSTRUCTION::JORCAShowerReconstruction::prefit

Definition at line 202 of file JORCAShowerReconstruction.hh.

◆ simplex

JShowerPointSimplex JRECONSTRUCTION::JORCAShowerReconstruction::simplex

Definition at line 203 of file JORCAShowerReconstruction.hh.

◆ position

JShowerPositionFit JRECONSTRUCTION::JORCAShowerReconstruction::position

Definition at line 204 of file JORCAShowerReconstruction.hh.

◆ direction

JShowerDirectionPrefit JRECONSTRUCTION::JORCAShowerReconstruction::direction

Definition at line 205 of file JORCAShowerReconstruction.hh.

◆ fit

JShowerFit JRECONSTRUCTION::JORCAShowerReconstruction::fit

Definition at line 206 of file JORCAShowerReconstruction.hh.


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