Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
genie::rew::GReWeightINukeParams Class Reference

Helper class for cross section model reweighting. More...

#include <GReWeightINukeParams.h>

Classes

class  Fates
 
class  MFP
 

Public Types

enum  EHadronType { kRwINukeUndefined = 0, kRwINukePion, kRwINukeNucl }
 
typedef enum genie::rew::GReWeightINukeParams::EHadronType HadronType_t
 

Public Member Functions

 GReWeightINukeParams ()
 
 ~GReWeightINukeParams ()
 
FatesFateParams (int pdgc) const
 
MFPMeanFreePathParams (int pdgc) const
 
void Reset (void)
 
void Reconfigure (void)
 
double ChisqPenalty (void) const
 
void SetTwkDial (GSyst_t s, double val)
 

Static Public Member Functions

static HadronType_t HadronTypeFromPdg (int pdgc)
 

Private Member Functions

void Init (void)
 

Private Attributes

FatesfParmPionFates
 
FatesfParmNuclFates
 
MFPfParmPionMFP
 
MFPfParmNuclMFP
 

Detailed Description

Helper class for cross section model reweighting.

Author
Costas Andreopoulos <costas.andreopoulos stfc.ac.uk> University of Liverpool & STFC Rutherford Appleton Lab

Jim Dobson <J.Dobson07 imperial.ac.uk> Imperial College London

Sep 10, 2009

Copyright (c) 2003-2017, GENIE Neutrino MC Generator Collaboration For the full text of the license visit http://copyright.genie-mc.org or see $GENIE/LICENSE

Definition at line 37 of file GReWeightINukeParams.h.

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
kRwINukeUndefined 
kRwINukePion 
kRwINukeNucl 

Definition at line 41 of file GReWeightINukeParams.h.

Constructor & Destructor Documentation

GReWeightINukeParams::GReWeightINukeParams ( void  )

Definition at line 54 of file GReWeightINukeParams.cxx.

55 {
56  this->Init();
57 }
GReWeightINukeParams::~GReWeightINukeParams ( void  )

Definition at line 59 of file GReWeightINukeParams.cxx.

60 {
61 
62 }

Member Function Documentation

double GReWeightINukeParams::ChisqPenalty ( void  ) const

Definition at line 107 of file GReWeightINukeParams.cxx.

108 {
109  double chisq = 0.;
110 
111  chisq += (fParmPionFates -> ChisqPenalty());
112  chisq += (fParmNuclFates -> ChisqPenalty());
113  chisq += (fParmPionMFP -> ChisqPenalty());
114  chisq += (fParmNuclMFP -> ChisqPenalty());
115 
116  return chisq;
117 }
GReWeightINukeParams::Fates * GReWeightINukeParams::FateParams ( int  pdgc) const

Definition at line 73 of file GReWeightINukeParams.cxx.

74 {
75  if(pdg::IsPion (pdgc)) return fParmPionFates;
76  if(pdg::IsNucleon(pdgc)) return fParmNuclFates;
77  return 0;
78 }
bool IsPion(int pdgc)
Definition: PDGUtils.cxx:296
bool IsNucleon(int pdgc)
Definition: PDGUtils.cxx:316
static HadronType_t genie::rew::GReWeightINukeParams::HadronTypeFromPdg ( int  pdgc)
inlinestatic
void GReWeightINukeParams::Init ( void  )
private
GReWeightINukeParams::MFP * GReWeightINukeParams::MeanFreePathParams ( int  pdgc) const

Definition at line 81 of file GReWeightINukeParams.cxx.

82 {
83  if(pdg::IsPion (pdgc)) return fParmPionMFP;
84  if(pdg::IsNucleon(pdgc)) return fParmNuclMFP;
85  return 0;
86 }
bool IsPion(int pdgc)
Definition: PDGUtils.cxx:296
bool IsNucleon(int pdgc)
Definition: PDGUtils.cxx:316
void GReWeightINukeParams::Reconfigure ( void  )

Definition at line 96 of file GReWeightINukeParams.cxx.

97 {
98  LOG("ReW", pINFO)
99  << "Reconfiguring weight calculator for pion intranuke fate systematics";
101 
102  LOG("ReW", pINFO)
103  << "Reconfiguring weight calculator for nucleon intranuke fate systematics";
105 }
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:87
#define pINFO
Definition: Messenger.h:53
void GReWeightINukeParams::Reset ( void  )
void GReWeightINukeParams::SetTwkDial ( GSyst_t  s,
double  val 
)

Definition at line 119 of file GReWeightINukeParams.cxx.

120 {
122  {
124  }
125  else
127  {
129  }
130  else
132  {
134  }
135  else
137  {
139  }
140 }
static bool IsINukeNuclMeanFreePathSystematic(GSyst_t syst)
Definition: GSyst.h:418
static bool IsINukePionFateSystematic(GSyst_t syst)
Definition: GSyst.h:347
static bool IsINukePionMeanFreePathSystematic(GSyst_t syst)
Definition: GSyst.h:404
static bool IsINukeNuclFateSystematic(GSyst_t syst)
Definition: GSyst.h:364

Member Data Documentation

Fates* genie::rew::GReWeightINukeParams::fParmNuclFates
private

Definition at line 136 of file GReWeightINukeParams.h.

MFP* genie::rew::GReWeightINukeParams::fParmNuclMFP
private

Definition at line 138 of file GReWeightINukeParams.h.

Fates* genie::rew::GReWeightINukeParams::fParmPionFates
private

Definition at line 135 of file GReWeightINukeParams.h.

MFP* genie::rew::GReWeightINukeParams::fParmPionMFP
private

Definition at line 137 of file GReWeightINukeParams.h.


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