#include <WeightCalculator.h>
Inheritance diagram for WeightCalculator:

Public Member Functions | |
| WeightCalculator (Registry *stdconfig=0) | |
| virtual | ~WeightCalculator () |
| void | SetStandardConfig (Registry *stdconfig) |
| void | SetReweightConfig (Registry *rwtconfig) |
| virtual void | Config () |
| virtual void | ReweightConfigReset () |
| virtual double | GetWeight (Registry *eventinfo) |
| virtual double | GetWeight (MCEventInfo *event, NuParent *parent) |
| Registry * | GetStandardConfig () |
| Registry * | GetReweightConfig () |
| std::string | GetName () |
| virtual void | PrintReweightConfig (ostream &) |
Protected Attributes | |
| std::string | fWCname |
| Registry * | fStandardConfig |
| Bool_t | fStandardConfigChanged |
| Registry * | fReweightConfig |
| Bool_t | fReweightConfigChanged |
|
|
Definition at line 7 of file WeightCalculator.cxx. References fReweightConfig, fReweightConfigChanged, fStandardConfig, fStandardConfigChanged, fWCname, and SetStandardConfig(). 00008 {
00009 fWCname = "WeightCalculator";
00010 fStandardConfigChanged = false;
00011 fStandardConfig = NULL;
00012 fReweightConfigChanged = false;
00013 fReweightConfig = NULL;
00014 if(config) SetStandardConfig(config);
00015 }
|
|
|
Definition at line 18 of file WeightCalculator.cxx. 00019 {
00020 }
|
|
|
Reimplemented in BeamEnergyCalculator, BMPTHistoWeightCalculator, BMPTWeightCalculator, NeugenWeightCalculator, and SKZPWeightCalculator. Definition at line 41 of file WeightCalculator.cxx. Referenced by SetReweightConfig(), and SetStandardConfig(). 00042 {
00043 }
|
|
|
Definition at line 34 of file WeightCalculator.h. Referenced by MCReweight::AddWeightCalculator(). 00034 {return fWCname;}
|
|
|
Definition at line 32 of file WeightCalculator.h. 00032 {return fReweightConfig;}
|
|
|
Definition at line 31 of file WeightCalculator.h. Referenced by MadTVAnalysis::CreatePAN(), and MadMKAnalysis::CreatePAN(). 00031 {return fStandardConfig;}
|
|
||||||||||||
|
Reimplemented in BeamEnergyCalculator, BMPTHistoWeightCalculator, BMPTWeightCalculator, NeugenWeightCalculator, and SKZPWeightCalculator. Definition at line 58 of file WeightCalculator.cxx. 00059 {
00060 if(!event) return 1.0;
00061 if(!parent) return 1.0;
00062 return 1.0;
00063 }
|
|
|
Reimplemented in BeamEnergyCalculator, BMPTHistoWeightCalculator, BMPTWeightCalculator, NeugenWeightCalculator, and SKZPWeightCalculator. Definition at line 51 of file WeightCalculator.cxx. 00052 {
00053 if(!event) return 1.0;
00054 return 1.0;
00055 }
|
|
|
Reimplemented in BMPTHistoWeightCalculator, BMPTWeightCalculator, NeugenWeightCalculator, and SKZPWeightCalculator. Definition at line 66 of file WeightCalculator.cxx. 00067 {
00068 stream << "In WeightCalculator::PrintReweightConfig()" << std::endl;
00069 }
|
|
|
Reimplemented in BeamEnergyCalculator, BMPTHistoWeightCalculator, BMPTWeightCalculator, and NeugenWeightCalculator. Definition at line 46 of file WeightCalculator.cxx. Referenced by MCReweight::ResetAllReweightConfigs(). 00047 {
00048 }
|
|
|
Definition at line 32 of file WeightCalculator.cxx. References Config(), fReweightConfig, and fReweightConfigChanged. Referenced by BMPTWeightCalculator::BMPTWeightCalculator(), SKZPWeightCalculator::Config(), NeugenWeightCalculator::NeugenWeightCalculator(), NeugenWeightCalculator::ReweightConfigReset(), BMPTWeightCalculator::ReweightConfigReset(), BMPTHistoWeightCalculator::ReweightConfigReset(), and BeamEnergyCalculator::ReweightConfigReset(). 00033 {
00034 if(!config) return;
00035 fReweightConfig = config;
00036 fReweightConfigChanged = true;
00037 Config();
00038 }
|
|
|
Definition at line 23 of file WeightCalculator.cxx. References Config(), fStandardConfig, and fStandardConfigChanged. Referenced by MCReweight::AddWeightCalculator(), BMPTHistoWeightCalculator::BMPTHistoWeightCalculator(), BMPTWeightCalculator::BMPTWeightCalculator(), NeugenWeightCalculator::NeugenWeightCalculator(), and WeightCalculator(). 00024 {
00025 if(!config) return;
00026 fStandardConfig = config;
00027 fStandardConfigChanged = true;
00028 Config();
00029 }
|
|
|
Definition at line 16 of file WeightCalculator.h. Referenced by SetReweightConfig(), and WeightCalculator(). |
|
|
Definition at line 17 of file WeightCalculator.h. Referenced by SetReweightConfig(), and WeightCalculator(). |
|
|
Definition at line 14 of file WeightCalculator.h. Referenced by SetStandardConfig(), and WeightCalculator(). |
|
|
Definition at line 15 of file WeightCalculator.h. Referenced by SetStandardConfig(), and WeightCalculator(). |
|
|
Definition at line 13 of file WeightCalculator.h. Referenced by WeightCalculator(). |
1.3.9.1