neugen_wrapper Class Reference

#include <neugen3_dummy.h>

List of all members.

Public Member Functions

 neugen_wrapper ()
 neugen_wrapper (const char *name)
 neugen_wrapper (const neugen_config *config)
 ~neugen_wrapper ()
const char * name (void) const
void set_default_config (void)
void reconfigure (const neugen_config *config)
void set_cuts (neugen_cuts *cuts)
void no_cuts (void)
float xsec (float e, interaction *ni, neugen_cuts *cuts=0)
float exclusive_xsec (float e, interaction *ni, final_state *final, neugen_cuts *cuts=0)
float diff_xsec (float e, kinematic_variable_t kid, float kval, interaction *ni, neugen_cuts *cuts=0)
float exclusive_diff_xsec (float e, kinematic_variable_t kid, float kval, interaction *ni, final_state *final, neugen_cuts *cuts=0)
float reweight (TLorentzVector *pnu, TLorentzVector *pnucleon, kinematic_variable_t kvid1, float kv1, kinematic_variable_t kvid2, float kv2, interaction *ni, process_t proc, final_state *fi, neugen_config *newconf, neugen_config *oldconf=0, double stdXSec=0)
float reweight (TLorentzVector *pnu, TLorentzVector *pnucleon, kinematic_variable_t kvid1, float kv1, kinematic_variable_t kvid2, float kv2, interaction *ni, process_t proc, final_state *fi, neugen_config *newconf, double stdXSec, bool load=true)
float offshell_diff_xsec (TLorentzVector *pnu, TLorentzVector *pnucleon, interaction *ni, process_t proc, final_state *fi, kinematic_variable_t kvid1, float kv1, kinematic_variable_t kvid2, float kv2)
xsec_vs_energyxsec_spline (float emin, float emax, int nbins, interaction *ni, neugen_cuts *cuts=0)
xsec_vs_energyexclusive_xsec_spline (float emin, float emax, int nbins, interaction *ni, final_state *final, neugen_cuts *cuts=0)
void print (ostream &stream) const
void print_configuration ()
void begin_generation ()
 neugen_wrapper ()
 neugen_wrapper (const char *name)
 neugen_wrapper (const neugen_config *config)
 ~neugen_wrapper ()
const char * name (void) const
void set_default_config (void)
void reconfigure (const neugen_config *config)
void set_cuts (neugen_cuts *cuts)
void no_cuts (void)
float xsec (float e, interaction *ni, neugen_cuts *cuts=0)
float exclusive_xsec (float e, interaction *ni, final_state *final, neugen_cuts *cuts=0)
float diff_xsec (float e, kinematic_variable_t kid, float kval, interaction *ni, neugen_cuts *cuts=0)
float exclusive_diff_xsec (float e, kinematic_variable_t kid, float kval, interaction *ni, final_state *final, neugen_cuts *cuts=0)
float reweight (TLorentzVector *pnu, TLorentzVector *pnucleon, kinematic_variable_t kvid1, float kv1, kinematic_variable_t kvid2, float kv2, interaction *ni, process_t proc, final_state *fi, neugen_config *newconf, neugen_config *oldconf=0, double stdXSec=0)
float reweight (TLorentzVector *pnu, TLorentzVector *pnucleon, kinematic_variable_t kvid1, float kv1, kinematic_variable_t kvid2, float kv2, interaction *ni, process_t proc, final_state *fi, neugen_config *newconf, double stdXSec, bool load=true)
float offshell_diff_xsec (TLorentzVector *pnu, TLorentzVector *pnucleon, interaction *ni, process_t proc, final_state *fi, kinematic_variable_t kvid1, float kv1, kinematic_variable_t kvid2, float kv2)
xsec_vs_energyxsec_spline (float emin, float emax, int nbins, interaction *ni, neugen_cuts *cuts=0)
xsec_vs_energyexclusive_xsec_spline (float emin, float emax, int nbins, interaction *ni, final_state *final, neugen_cuts *cuts=0)
void print (ostream &stream) const
void print_configuration ()
void begin_generation ()

Private Member Functions

void init (void)
void init (void)

Private Attributes

string _name
neugen_config_config

Friends

ostream & operator<< (ostream &stream, const neugen_wrapper &conf)
ostream & operator<< (ostream &stream, const neugen_wrapper &conf)

Detailed Description

____________________________________________________________________________

Definition at line 206 of file neugen3_dummy.h.


Constructor & Destructor Documentation

neugen_wrapper::neugen_wrapper (  ) 

Definition at line 215 of file neugen3_dummy.cxx.

References die_wrapper().

00216 {
00217   die_wrapper(false,"ctor");
00218 }

neugen_wrapper::neugen_wrapper ( const char *  name  ) 

Definition at line 220 of file neugen3_dummy.cxx.

References _name, and die_wrapper().

00221 {
00222   _name = name;
00223   die_wrapper(false,"ctor",name);
00224 }

neugen_wrapper::neugen_wrapper ( const neugen_config config  ) 

Definition at line 226 of file neugen3_dummy.cxx.

References _config, neugen_config::_name, and die_wrapper().

00227 {
00228   if ( ! _config ) _config = new neugen_config;
00229   /*  *(_config) = *(config);  */  // assignment operator broken
00230   cerr << "neugen_wrapper called with neugen_config \""
00231        << config->_name << "\"" << endl;
00232   /* _config->_name = config->_name; */ // probably due to skew
00233   die_wrapper(false,"ctor[neugen_config*]");
00234 }

neugen_wrapper::~neugen_wrapper (  ) 

Definition at line 236 of file neugen3_dummy.cxx.

00237 {
00238   cerr << "neugen3_dummy ~neugen_wrapper"
00239        << " ... oddly you've survived :-)" << endl;
00240 }

neugen_wrapper::neugen_wrapper (  ) 
neugen_wrapper::neugen_wrapper ( const char *  name  ) 
neugen_wrapper::neugen_wrapper ( const neugen_config config  ) 
neugen_wrapper::~neugen_wrapper (  ) 

Member Function Documentation

void neugen_wrapper::begin_generation (  )  [inline]

Definition at line 131 of file neugen_wrapper.h.

References begin_generation_().

00131 {begin_generation_();}

void neugen_wrapper::begin_generation (  ) 

Definition at line 274 of file neugen3_dummy.cxx.

References die_wrapper().

Referenced by MadMKAnalysis::CreatePAN(), and NuIntranuke::InitReweight().

00275 {
00276   die_wrapper(true,"init");
00277 }

float neugen_wrapper::diff_xsec ( float  e,
kinematic_variable_t  kid,
float  kval,
interaction ni,
neugen_cuts cuts = 0 
)
float neugen_wrapper::diff_xsec ( float  e,
kinematic_variable_t  kid,
float  kval,
interaction ni,
neugen_cuts cuts = 0 
)

Definition at line 296 of file neugen3_dummy.cxx.

References die_wrapper().

00301 {
00302   die_wrapper(true,"diff_xsec");
00303   return 0;
00304 }

float neugen_wrapper::exclusive_diff_xsec ( float  e,
kinematic_variable_t  kid,
float  kval,
interaction ni,
final_state final,
neugen_cuts cuts = 0 
)
float neugen_wrapper::exclusive_diff_xsec ( float  e,
kinematic_variable_t  kid,
float  kval,
interaction ni,
final_state final,
neugen_cuts cuts = 0 
)

Definition at line 306 of file neugen3_dummy.cxx.

References die_wrapper().

00312 {
00313   die_wrapper(true,"exclusive_diff_xsec");
00314   return 0;
00315 }

float neugen_wrapper::exclusive_xsec ( float  e,
interaction ni,
final_state final,
neugen_cuts cuts = 0 
)
float neugen_wrapper::exclusive_xsec ( float  e,
interaction ni,
final_state final,
neugen_cuts cuts = 0 
)

Definition at line 287 of file neugen3_dummy.cxx.

References die_wrapper().

00291 {
00292   die_wrapper(true,"exclusive_xsec");
00293   return 0;
00294 }

xsec_vs_energy* neugen_wrapper::exclusive_xsec_spline ( float  emin,
float  emax,
int  nbins,
interaction ni,
final_state final,
neugen_cuts cuts = 0 
)
xsec_vs_energy * neugen_wrapper::exclusive_xsec_spline ( float  emin,
float  emax,
int  nbins,
interaction ni,
final_state final,
neugen_cuts cuts = 0 
)

Definition at line 375 of file neugen3_dummy.cxx.

References die_wrapper().

00381 {
00382   die_wrapper(true,"exclusive_xsec_spline");
00383   return 0;
00384 }

void neugen_wrapper::init ( void   )  [private]
void neugen_wrapper::init ( void   )  [private]

Definition at line 242 of file neugen3_dummy.cxx.

References die_wrapper().

00243 {
00244   die_wrapper(false,"init");
00245 }

const char* neugen_wrapper::name ( void   )  const [inline]

Definition at line 82 of file neugen_wrapper.h.

References _name.

00082 { return _name.c_str(); }

const char* neugen_wrapper::name ( void   )  const [inline]

Definition at line 216 of file neugen3_dummy.h.

References neugen_config::_name.

00216 { return _name.c_str(); }

void neugen_wrapper::no_cuts ( void   ) 
void neugen_wrapper::no_cuts ( void   ) 

Definition at line 264 of file neugen3_dummy.cxx.

References die_wrapper().

00265 {
00266   die_wrapper(false,"no_cuts");
00267 }

float neugen_wrapper::offshell_diff_xsec ( TLorentzVector *  pnu,
TLorentzVector *  pnucleon,
interaction ni,
process_t  proc,
final_state fi,
kinematic_variable_t  kvid1,
float  kv1,
kinematic_variable_t  kvid2,
float  kv2 
)
float neugen_wrapper::offshell_diff_xsec ( TLorentzVector *  pnu,
TLorentzVector *  pnucleon,
interaction ni,
process_t  proc,
final_state fi,
kinematic_variable_t  kvid1,
float  kv1,
kinematic_variable_t  kvid2,
float  kv2 
)

Definition at line 351 of file neugen3_dummy.cxx.

References die_wrapper().

Referenced by NeugenWeightCalculator::GetWeight(), NuTransition::GetXSecNeugen(), and NuTransSME::GetXSecNeugen().

00360 {
00361   die_wrapper(true,"offshell_diff_xsec");
00362   return 0;
00363 }

void neugen_wrapper::print ( ostream &  stream  )  const
void neugen_wrapper::print ( ostream &  stream  )  const

Definition at line 572 of file neugen_wrapper.cxx.

References _config, and _name.

Referenced by operator<<().

00573 {
00574   stream << "Name:..........." << _name  << endl;
00575   stream << "Current config: " << endl;
00576   stream << *_config << endl;
00577 }

void neugen_wrapper::print_configuration (  )  [inline]

Definition at line 130 of file neugen_wrapper.h.

References print_configuration_().

void neugen_wrapper::print_configuration (  ) 

Definition at line 269 of file neugen3_dummy.cxx.

References die_wrapper().

Referenced by MadMKAnalysis::CreatePAN(), and NuIntranuke::InitReweight().

00270 {
00271   die_wrapper(false,"print_configuration");
00272 }

void neugen_wrapper::reconfigure ( const neugen_config config  ) 
void neugen_wrapper::reconfigure ( const neugen_config config  ) 

Definition at line 252 of file neugen3_dummy.cxx.

References _config, and die_wrapper().

Referenced by NuIntranuke::Reweight().

00253 {
00254   if ( ! _config ) _config = new neugen_config;
00255   *(_config) = *(config);
00256   die_wrapper(false,"reconfigure[neugen_config*]");
00257 }

float neugen_wrapper::reweight ( TLorentzVector *  pnu,
TLorentzVector *  pnucleon,
kinematic_variable_t  kvid1,
float  kv1,
kinematic_variable_t  kvid2,
float  kv2,
interaction ni,
process_t  proc,
final_state fi,
neugen_config newconf,
double  stdXSec,
bool  load = true 
)
float neugen_wrapper::reweight ( TLorentzVector *  pnu,
TLorentzVector *  pnucleon,
kinematic_variable_t  kvid1,
float  kv1,
kinematic_variable_t  kvid2,
float  kv2,
interaction ni,
process_t  proc,
final_state fi,
neugen_config newconf,
neugen_config oldconf = 0,
double  stdXSec = 0 
)
float neugen_wrapper::reweight ( TLorentzVector *  pnu,
TLorentzVector *  pnucleon,
kinematic_variable_t  kvid1,
float  kv1,
kinematic_variable_t  kvid2,
float  kv2,
interaction ni,
process_t  proc,
final_state fi,
neugen_config newconf,
double  stdXSec,
bool  load = true 
)

Definition at line 334 of file neugen3_dummy.cxx.

References die_wrapper().

00346 {
00347   die_wrapper(true,"reweight");
00348   return 0;
00349 }

float neugen_wrapper::reweight ( TLorentzVector *  pnu,
TLorentzVector *  pnucleon,
kinematic_variable_t  kvid1,
float  kv1,
kinematic_variable_t  kvid2,
float  kv2,
interaction ni,
process_t  proc,
final_state fi,
neugen_config newconf,
neugen_config oldconf = 0,
double  stdXSec = 0 
)

Definition at line 317 of file neugen3_dummy.cxx.

References die_wrapper().

Referenced by NeugenWeightCalculator::GetWeight().

00329 {
00330   die_wrapper(true,"reweight");
00331   return 0;
00332 }

void neugen_wrapper::set_cuts ( neugen_cuts cuts  ) 
void neugen_wrapper::set_cuts ( neugen_cuts cuts  ) 

Definition at line 259 of file neugen3_dummy.cxx.

References die_wrapper().

00260 {
00261   die_wrapper(false,"set_cuts[neugen_cuts*]");
00262 }

void neugen_wrapper::set_default_config ( void   ) 
void neugen_wrapper::set_default_config ( void   ) 

Definition at line 247 of file neugen3_dummy.cxx.

References die_wrapper().

00248 {
00249   die_wrapper(false,"set_default_config");
00250 }

float neugen_wrapper::xsec ( float  e,
interaction ni,
neugen_cuts cuts = 0 
)
float neugen_wrapper::xsec ( float  e,
interaction ni,
neugen_cuts cuts = 0 
)

Definition at line 279 of file neugen3_dummy.cxx.

References die_wrapper().

Referenced by NuSystematic::NeugenXSecShiftScale(), NuSystematic::QELXSecShiftScale(), and NuSystematic::ResXSecShiftScale().

00282 {
00283   die_wrapper(true,"xsec");
00284   return 0;
00285 }

xsec_vs_energy* neugen_wrapper::xsec_spline ( float  emin,
float  emax,
int  nbins,
interaction ni,
neugen_cuts cuts = 0 
)
xsec_vs_energy * neugen_wrapper::xsec_spline ( float  emin,
float  emax,
int  nbins,
interaction ni,
neugen_cuts cuts = 0 
)

Definition at line 365 of file neugen3_dummy.cxx.

References die_wrapper().

00370 {
00371   die_wrapper(true,"xsec_spline");
00372   return 0;
00373 }


Friends And Related Function Documentation

ostream& operator<< ( ostream &  stream,
const neugen_wrapper conf 
) [friend]
ostream& operator<< ( ostream &  stream,
const neugen_wrapper conf 
) [friend]

Member Data Documentation

Definition at line 271 of file neugen3_dummy.h.

Referenced by neugen_wrapper(), print(), and reconfigure().

string neugen_wrapper::_name [private]

Definition at line 270 of file neugen3_dummy.h.

Referenced by name(), neugen_wrapper(), and print().


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

Generated on 20 Feb 2018 for loon by  doxygen 1.6.1