#include <StatWeight.hpp>
Inheritance diagram for cafe::StatWeight:

Public Member Functions | |
| StatWeight (const std::string &name="NoName", bool event_selection=false) | |
| ~StatWeight () | |
| double | weight_average () const |
| return average event weight | |
| double | weight_average_pos () const |
| return average event weight (+1sigma) | |
| double | weight_average_neg () const |
| return average event weight (-1sigma) | |
| double | weight () const |
| return current event weight | |
| double | weight_pos () const |
| return current event weight shifted by +1 sigma | |
| double | weight_neg () const |
| return current event weight shifted by -1 sigma | |
| double | rms () const |
| return weight rms | |
| double | err () const |
| return weight rms/Sqrt(N) | |
| double | err (const StatWeight &selection) const |
| return efficiencies errors calculated relative to the previous selection | |
| double | rms_pos () const |
| return weight (shifted by +1 sigma) rms | |
| double | err_pos () const |
| return weight (shifted by +1 sigma) rms/Sqrt(N) | |
| double | rms_neg () const |
| return weight (shifted by -1 sigma) rms | |
| double | err_neg () const |
| return weight (shifted by -1 sigma) rms/Sqrt(N) | |
| void | Clear () |
| Clear the weight claclutaion in the beginning of the event processing. | |
| double | applyWeight (double weight, double weight_pos=-1.0, double weight_neg=-1.0) |
Private Attributes | |
| double | _weight_average |
| double | _weight |
| double | _rms2 |
| double | _weight_old |
| double | _rms2_old |
| double | _weight_average_pos |
| double | _weight_pos |
| double | _rms2_pos |
| double | _weight_old_pos |
| double | _rms2_old_pos |
| double | _weight_average_neg |
| double | _weight_neg |
| double | _rms2_neg |
| double | _weight_old_neg |
| double | _rms2_old_neg |
|
||||||||||||
|
Definition at line 40 of file StatWeight.cpp. |
|
|
Definition at line 78 of file StatWeight.hpp. |
|
||||||||||||||||
|
Definition at line 59 of file StatWeight.cpp. References _rms2, _rms2_neg, _rms2_old, _rms2_old_neg, _rms2_old_pos, _rms2_pos, _weight, _weight_average, _weight_average_neg, _weight_average_pos, _weight_neg, _weight_old, _weight_old_neg, _weight_old_pos, _weight_pos, cafe::StatSelection::addEvent(), cafe::StatSelection::isUpdated(), cafe::StatSelection::isWeight(), and cafe::StatSelection::nevents(). Referenced by cafe::StatSample::applyWeight(). |
|
|
Clear the weight claclutaion in the beginning of the event processing.
Reimplemented from cafe::StatSelection. Definition at line 49 of file StatWeight.cpp. References _weight, _weight_neg, _weight_old, _weight_old_neg, _weight_old_pos, and _weight_pos. Referenced by cafe::StatSample::Clear(). |
|
|
return efficiencies errors calculated relative to the previous selection
Definition at line 105 of file StatWeight.hpp. |
|
|
return weight rms/Sqrt(N)
Definition at line 111 of file StatWeight.cpp. References _rms2, and cafe::StatSelection::nevents(). Referenced by cafe::StatSample::correctedEffErr(), cafe::Stat::syst_neg(), and cafe::Stat::syst_pos(). |
|
|
return weight (shifted by -1 sigma) rms/Sqrt(N)
Definition at line 121 of file StatWeight.cpp. References _rms2_neg, and cafe::StatSelection::nevents(). |
|
|
return weight (shifted by +1 sigma) rms/Sqrt(N)
Definition at line 116 of file StatWeight.cpp. References _rms2_pos, and cafe::StatSelection::nevents(). |
|
|
return weight rms
Definition at line 127 of file StatWeight.cpp. References _rms2. |
|
|
return weight (shifted by -1 sigma) rms
Definition at line 135 of file StatWeight.cpp. References _rms2_neg. |
|
|
return weight (shifted by +1 sigma) rms
Definition at line 131 of file StatWeight.cpp. References _rms2_pos. |
|
|
return current event weight
Definition at line 90 of file StatWeight.hpp. References _weight. Referenced by cafe::StatSample::add(), cafe::Stat::inheritWeights(), and cafe::StatSample::ListEventWeights(). |
|
|
return average event weight
Definition at line 81 of file StatWeight.hpp. References _weight_average. Referenced by cafe::StatSample::correctedEffErr(), cafe::StatSample::correctedEfficiency(), cafe::Stat::print_html(), cafe::Stat::syst_neg(), and cafe::Stat::syst_pos(). |
|
|
return average event weight (-1sigma)
Definition at line 87 of file StatWeight.hpp. References _weight_average_neg. Referenced by cafe::Stat::print_html(), and cafe::Stat::syst_neg(). |
|
|
return average event weight (+1sigma)
Definition at line 84 of file StatWeight.hpp. References _weight_average_pos. Referenced by cafe::Stat::print_html(), and cafe::Stat::syst_pos(). |
|
|
return current event weight shifted by -1 sigma
Definition at line 96 of file StatWeight.hpp. References _weight_neg. Referenced by cafe::StatSample::add(), cafe::Stat::inheritWeights(), and cafe::StatSample::ListEventWeights(). |
|
|
return current event weight shifted by +1 sigma
Definition at line 93 of file StatWeight.hpp. References _weight_pos. Referenced by cafe::StatSample::add(), cafe::Stat::inheritWeights(), and cafe::StatSample::ListEventWeights(). |
|
|
Definition at line 57 of file StatWeight.hpp. Referenced by applyWeight(), err(), and rms(). |
|
|
Definition at line 70 of file StatWeight.hpp. Referenced by applyWeight(), err_neg(), and rms_neg(). |
|
|
Definition at line 59 of file StatWeight.hpp. Referenced by applyWeight(). |
|
|
Definition at line 72 of file StatWeight.hpp. Referenced by applyWeight(). |
|
|
Definition at line 65 of file StatWeight.hpp. Referenced by applyWeight(). |
|
|
Definition at line 63 of file StatWeight.hpp. Referenced by applyWeight(), err_pos(), and rms_pos(). |
|
|
Reimplemented from cafe::StatSelection. Definition at line 56 of file StatWeight.hpp. Referenced by applyWeight(), Clear(), and weight(). |
|
|
Definition at line 55 of file StatWeight.hpp. Referenced by applyWeight(), and weight_average(). |
|
|
Definition at line 68 of file StatWeight.hpp. Referenced by applyWeight(), and weight_average_neg(). |
|
|
Definition at line 61 of file StatWeight.hpp. Referenced by applyWeight(), and weight_average_pos(). |
|
|
Definition at line 69 of file StatWeight.hpp. Referenced by applyWeight(), Clear(), and weight_neg(). |
|
|
Definition at line 58 of file StatWeight.hpp. Referenced by applyWeight(), and Clear(). |
|
|
Definition at line 71 of file StatWeight.hpp. Referenced by applyWeight(), and Clear(). |
|
|
Definition at line 64 of file StatWeight.hpp. Referenced by applyWeight(), and Clear(). |
|
|
Definition at line 62 of file StatWeight.hpp. Referenced by applyWeight(), Clear(), and weight_pos(). |
1.3.4