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 (std::ostream &)

Protected Attributes

std::string fWCname
RegistryfStandardConfig
Bool_t fStandardConfigChanged
RegistryfReweightConfig
Bool_t fReweightConfigChanged

Detailed Description

Definition at line 11 of file WeightCalculator.h.


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 ( void   )  [virtual]
std::string WeightCalculator::GetName ( void   )  [inline]

Definition at line 37 of file WeightCalculator.h.

References fWCname.

Referenced by MCReweight::AddWeightCalculator().

00037 {return fWCname;}

Registry* WeightCalculator::GetReweightConfig (  )  [inline]

Definition at line 35 of file WeightCalculator.h.

References fReweightConfig.

00035 {return fReweightConfig;}

Registry* WeightCalculator::GetStandardConfig (  )  [inline]

Definition at line 34 of file WeightCalculator.h.

References fStandardConfig.

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

00034 {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 ( std::ostream &  stream  )  [virtual]

Reimplemented in NeugenWeightCalculator.

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.

00047 {  
00048 }

void WeightCalculator::SetReweightConfig ( Registry rwtconfig  ) 
void WeightCalculator::SetStandardConfig ( Registry stdconfig  ) 

Member Data Documentation

std::string WeightCalculator::fWCname [protected]

The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1