Definition at line 31 of file LikelihoodJob.h.
#include </github/home/ROOT-CI/src/roofit/roofitcore/src/TestStatistics/LikelihoodJob.h>
◆ update_state_mode
◆ LikelihoodJob()
◆ calculate_offsets()
| void RooFit::TestStatistics::LikelihoodWrapper::calculate_offsets |
( |
| ) |
|
|
protectedinherited |
(Re)calculate (on each worker) all component offsets.
Note that these are calculated over the full event range! This will decrease the effectiveness of offsetting proportionally to the number of splits over the event range. The alternative, however, becomes very complex to implement and maintain, so this is a compromise.
Definition at line 118 of file LikelihoodWrapper.cxx.
◆ create()
◆ defaultErrorLevel()
| double RooFit::TestStatistics::LikelihoodWrapper::defaultErrorLevel |
( |
| ) |
const |
|
inherited |
◆ enableOffsetting()
| void RooFit::TestStatistics::LikelihoodJob::enableOffsetting |
( |
bool | flag | ) |
|
|
overridevirtual |
◆ evaluate()
| void RooFit::TestStatistics::LikelihoodJob::evaluate |
( |
| ) |
|
|
overridevirtual |
Triggers (possibly asynchronous) evaluation of the likelihood.
In parallel strategies, it may be advantageous to allow a calling process to continue on with other tasks while the calculation is offloaded to another process or device, like a GPU. For this reason, evaluate() does not return the result, this is done in getResult().
Implements RooFit::TestStatistics::LikelihoodWrapper.
Definition at line 192 of file LikelihoodJob.cxx.
◆ evaluate_task()
| void RooFit::TestStatistics::LikelihoodJob::evaluate_task |
( |
std::size_t | task | ) |
|
|
overridevirtual |
◆ gather_worker_results()
| void RooFit::MultiProcess::Job::gather_worker_results |
( |
| ) |
|
|
inherited |
Wait for all tasks to be retrieved for the current Job.
Definition at line 126 of file Job.cxx.
◆ get_manager()
| JobManager * RooFit::MultiProcess::Job::get_manager |
( |
| ) |
|
|
protectedinherited |
Get JobManager instance; create and activate if necessary.
Child classes should refrain from direct access to the JobManager instance (through JobManager::instance), but rather use the here provided Job::get_manager(). This function starts the worker_loop on the worker when first called, meaning that the workers will not be running before they are needed.
Definition at line 112 of file Job.cxx.
◆ get_state_id()
| std::size_t RooFit::MultiProcess::Job::get_state_id |
( |
| ) |
|
|
inherited |
Get the current state identifier.
Definition at line 141 of file Job.cxx.
◆ GetName()
| std::string RooFit::TestStatistics::LikelihoodWrapper::GetName |
( |
| ) |
const |
|
virtualinherited |
◆ getNComponentTasks()
| std::size_t RooFit::TestStatistics::LikelihoodJob::getNComponentTasks |
( |
| ) |
|
|
private |
◆ getNEventTasks()
| std::size_t RooFit::TestStatistics::LikelihoodJob::getNEventTasks |
( |
| ) |
|
|
private |
◆ getResult()
◆ GetTitle()
| std::string RooFit::TestStatistics::LikelihoodWrapper::GetTitle |
( |
| ) |
const |
|
virtualinherited |
◆ init_vars()
| void RooFit::TestStatistics::LikelihoodJob::init_vars |
( |
| ) |
|
◆ isOffsetting()
| virtual bool RooFit::TestStatistics::LikelihoodWrapper::isOffsetting |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ receive_task_result_on_master()
◆ send_back_task_result_from_worker()
| void RooFit::TestStatistics::LikelihoodJob::send_back_task_result_from_worker |
( |
std::size_t | task | ) |
|
|
overridevirtual |
◆ setApplyWeightSquared()
| void RooFit::TestStatistics::LikelihoodWrapper::setApplyWeightSquared |
( |
bool | flag | ) |
|
|
inherited |
- Note
- Currently we do not recalculate the offset value, so in practice swapped offsets are zero/disabled. This differs from using RooNLLVar, so your fit may yield slightly different values.
Definition at line 168 of file LikelihoodWrapper.cxx.
◆ setOffsettingMode()
| void RooFit::TestStatistics::LikelihoodWrapper::setOffsettingMode |
( |
OffsettingMode | mode | ) |
|
|
inherited |
◆ synchronizeParameterSettings()
◆ synchronizeWithMinimizer()
Synchronize minimizer settings with calculators in child classes.
Definition at line 73 of file LikelihoodWrapper.cxx.
◆ update_state()
| void RooFit::TestStatistics::LikelihoodJob::update_state |
( |
| ) |
|
|
overridevirtual |
Virtual function to update any necessary state on workers.
This function is called from the worker loop when a state update message from the master process is received. Thus, we can update, for instance, parameter values on the worker that were updated since the last call on the master side.
- Note
- Implementers: make sure to also update the state_id_ member.
Reimplemented from RooFit::MultiProcess::Job.
Definition at line 65 of file LikelihoodJob.cxx.
◆ updateMinuitExternalParameterValues()
| void RooFit::TestStatistics::LikelihoodWrapper::updateMinuitExternalParameterValues |
( |
const std::vector< double > & | minuit_external_x | ) |
|
|
virtualinherited |
◆ updateMinuitInternalParameterValues()
| void RooFit::TestStatistics::LikelihoodWrapper::updateMinuitInternalParameterValues |
( |
const std::vector< double > & | minuit_internal_x | ) |
|
|
virtualinherited |
Minuit passes in parameter values that may not conform to RooFit internal standards (like applying range clipping), but that the specific calculator does need.
This function can be implemented to receive these Minuit-internal values:
Definition at line 202 of file LikelihoodWrapper.cxx.
◆ updateWorkersOffsetting()
| void RooFit::TestStatistics::LikelihoodJob::updateWorkersOffsetting |
( |
| ) |
|
◆ updateWorkersParameters()
| void RooFit::TestStatistics::LikelihoodJob::updateWorkersParameters |
( |
| ) |
|
◆ _manager
| JobManager* RooFit::MultiProcess::Job::_manager = nullptr |
|
privateinherited |
Definition at line 51 of file Job.h.
◆ calculation_is_clean_
◆ do_offset_
| bool RooFit::TestStatistics::LikelihoodWrapper::do_offset_ = false |
|
protectedinherited |
◆ id_
| std::size_t RooFit::MultiProcess::Job::id_ |
|
protectedinherited |
Definition at line 46 of file Job.h.
◆ likelihood_
| std::shared_ptr<RooAbsL> RooFit::TestStatistics::LikelihoodWrapper::likelihood_ |
|
protectedinherited |
◆ likelihood_serial_
◆ likelihood_type_
| LikelihoodType RooFit::TestStatistics::LikelihoodWrapper::likelihood_type_ |
|
protectedinherited |
◆ n_component_tasks_
| std::size_t RooFit::TestStatistics::LikelihoodJob::n_component_tasks_ |
|
private |
◆ n_event_tasks_
| std::size_t RooFit::TestStatistics::LikelihoodJob::n_event_tasks_ |
|
private |
◆ n_tasks_at_workers_
| std::size_t RooFit::TestStatistics::LikelihoodJob::n_tasks_at_workers_ = 0 |
|
private |
◆ offsets_previous_
◆ offsetting_mode_
◆ result_
◆ results_
◆ save_vars_
| RooArgList RooFit::TestStatistics::LikelihoodJob::save_vars_ |
|
private |
◆ shared_offset_
| SharedOffset RooFit::TestStatistics::LikelihoodWrapper::shared_offset_ |
|
protectedinherited |
◆ state_id_
| std::size_t RooFit::MultiProcess::Job::state_id_ = 0 |
|
protectedinherited |
Definition at line 47 of file Job.h.
◆ vars_
| RooArgList RooFit::TestStatistics::LikelihoodJob::vars_ |
|
private |
roofit/roofitcore/src/TestStatistics/LikelihoodJob.h
roofit/roofitcore/src/TestStatistics/LikelihoodJob.cxx