Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

WeightCalculator Class Reference

#include <WeightCalculator.h>

Inheritance diagram for WeightCalculator:

BeamEnergyCalculator BMPTHistoWeightCalculator BMPTWeightCalculator NeugenWeightCalculator SKZPWeightCalculator List of all members.

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)
RegistryGetStandardConfig ()
RegistryGetReweightConfig ()
std::string GetName ()
virtual void PrintReweightConfig (ostream &)

Protected Attributes

std::string fWCname
RegistryfStandardConfig
Bool_t fStandardConfigChanged
RegistryfReweightConfig
Bool_t fReweightConfigChanged

Constructor & Destructor Documentation

WeightCalculator::WeightCalculator Registry stdconfig = 0  ) 
 

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 }

WeightCalculator::~WeightCalculator  )  [virtual]
 

Definition at line 18 of file WeightCalculator.cxx.

00019 {
00020 }


Member Function Documentation

void WeightCalculator::Config  )  [virtual]
 

Reimplemented in BeamEnergyCalculator, BMPTHistoWeightCalculator, BMPTWeightCalculator, NeugenWeightCalculator, and SKZPWeightCalculator.

Definition at line 41 of file WeightCalculator.cxx.

Referenced by SetReweightConfig(), and SetStandardConfig().

00042 {  
00043 }

std::string WeightCalculator::GetName void   )  [inline]
 

Definition at line 34 of file WeightCalculator.h.

Referenced by MCReweight::AddWeightCalculator().

00034 {return fWCname;}

Registry* WeightCalculator::GetReweightConfig  )  [inline]
 

Definition at line 32 of file WeightCalculator.h.

00032 {return fReweightConfig;}

Registry* WeightCalculator::GetStandardConfig  )  [inline]
 

Definition at line 31 of file WeightCalculator.h.

Referenced by MadTVAnalysis::CreatePAN(), and MadMKAnalysis::CreatePAN().

00031 {return fStandardConfig;}

double WeightCalculator::GetWeight MCEventInfo event,
NuParent parent
[virtual]
 

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 }

double WeightCalculator::GetWeight Registry eventinfo  )  [virtual]
 

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 }

void WeightCalculator::PrintReweightConfig ostream &   )  [virtual]
 

Reimplemented in BMPTHistoWeightCalculator, BMPTWeightCalculator, NeugenWeightCalculator, and SKZPWeightCalculator.

Definition at line 66 of file WeightCalculator.cxx.

00067 {
00068   stream << "In WeightCalculator::PrintReweightConfig()" << std::endl;
00069 }

void WeightCalculator::ReweightConfigReset  )  [virtual]
 

Reimplemented in BeamEnergyCalculator, BMPTHistoWeightCalculator, BMPTWeightCalculator, and NeugenWeightCalculator.

Definition at line 46 of file WeightCalculator.cxx.

Referenced by MCReweight::ResetAllReweightConfigs().

00047 {  
00048 }

void WeightCalculator::SetReweightConfig Registry rwtconfig  ) 
 

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 }

void WeightCalculator::SetStandardConfig Registry stdconfig  ) 
 

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 }


Member Data Documentation

Registry* WeightCalculator::fReweightConfig [protected]
 

Definition at line 16 of file WeightCalculator.h.

Referenced by SetReweightConfig(), and WeightCalculator().

Bool_t WeightCalculator::fReweightConfigChanged [protected]
 

Definition at line 17 of file WeightCalculator.h.

Referenced by SetReweightConfig(), and WeightCalculator().

Registry* WeightCalculator::fStandardConfig [protected]
 

Definition at line 14 of file WeightCalculator.h.

Referenced by SetStandardConfig(), and WeightCalculator().

Bool_t WeightCalculator::fStandardConfigChanged [protected]
 

Definition at line 15 of file WeightCalculator.h.

Referenced by SetStandardConfig(), and WeightCalculator().

std::string WeightCalculator::fWCname [protected]
 

Definition at line 13 of file WeightCalculator.h.

Referenced by WeightCalculator().


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:10:29 2010 for loon by  doxygen 1.3.9.1