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

ARCA muon reconstruction. More...

#include <JARCAMuonReconstruction.hh>

Classes

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

Public Member Functions

 JARCAMuonReconstruction (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
 
JMuonGandalf gandalf
 
JMuonStart start
 
JMuonEnergy energy
 
JMuonFeatures features
 
std::vector< JLANG::JClockclock
 

Detailed Description

ARCA muon reconstruction.

Definition at line 41 of file JARCAMuonReconstruction.hh.

Constructor & Destructor Documentation

◆ JARCAMuonReconstruction()

JRECONSTRUCTION::JARCAMuonReconstruction::JARCAMuonReconstruction ( 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 137 of file JARCAMuonReconstruction.hh.

142 :
143 prefit (parameters.prefit, debug),
144 simplex (parameters.simplex, debug),
145 gandalf (parameters.gandalf, storage.gandalf, pmtParameters, debug),
146 start (parameters.start, storage.start, rates_Hz, debug),
147 energy (parameters.energy, storage.energy, pmtParameters, correct, debug),
148 features(parameters.features, storage.features, debug)
149 {
150 clock.resize(6);
151
152 clock[0].setTitle("prefit");
153 clock[1].setTitle("simplex");
154 clock[2].setTitle("gandalf");
155 clock[3].setTitle("start");
156 clock[4].setTitle("energy");
157 clock[5].setTitle("features");
158 }
int debug
debug level
Definition JSirene.cc:74

Member Function Documentation

◆ getInput()

input_type JRECONSTRUCTION::JARCAMuonReconstruction::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 170 of file JARCAMuonReconstruction.hh.

174 {
175 input_type input(event.getDAQEventHeader());
176
177 input.prefit = prefit .getInput(router, event, coverage);
178 input.simplex = simplex .getInput(router, event, JEvt(), coverage);
179 input.gandalf = gandalf .getInput(router, summary, event, JEvt(), coverage);
180 input.start = start .getInput(router, summary, event, JEvt(), coverage);
181 input.energy = energy .getInput(router, summary, event, JEvt(), coverage);
182 input.features = features.getInput(router, summary, event, JEvt(), coverage);
183
184 return input;
185 }
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::JARCAMuonReconstruction::operator() ( input_type & input)
inline

Fit function.

Parameters
inputinput data
Returns
fit results

Definition at line 194 of file JARCAMuonReconstruction.hh.

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

Member Data Documentation

◆ prefit

JMuonPrefit JRECONSTRUCTION::JARCAMuonReconstruction::prefit

Definition at line 247 of file JARCAMuonReconstruction.hh.

◆ simplex

JMuonSimplex JRECONSTRUCTION::JARCAMuonReconstruction::simplex

Definition at line 248 of file JARCAMuonReconstruction.hh.

◆ gandalf

JMuonGandalf JRECONSTRUCTION::JARCAMuonReconstruction::gandalf

Definition at line 249 of file JARCAMuonReconstruction.hh.

◆ start

JMuonStart JRECONSTRUCTION::JARCAMuonReconstruction::start

Definition at line 250 of file JARCAMuonReconstruction.hh.

◆ energy

JMuonEnergy JRECONSTRUCTION::JARCAMuonReconstruction::energy

Definition at line 251 of file JARCAMuonReconstruction.hh.

◆ features

JMuonFeatures JRECONSTRUCTION::JARCAMuonReconstruction::features

Definition at line 252 of file JARCAMuonReconstruction.hh.

◆ clock

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

Definition at line 254 of file JARCAMuonReconstruction.hh.


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