Public Member Functions | Private Attributes | List of all members
genie::alvarezruso::ARWavefunction Class Reference

Wave function class for AlvarezRuso Coherent pion production xsec. More...

#include "/cvmfs/nova.opensciencegrid.org/externals/genie/v3_00_06_p01/Linux64bit+2.6-2.12-e17-debug/GENIE-Generator/src/Physics/Coherent/XSection/ARWavefunction.h"

Public Member Functions

 ARWavefunction (unsigned int sampling_in, bool debug=false)
 
 ~ARWavefunction ()
 
std::string print () const
 
const std::vector< std::complex< double > > & operator[] (unsigned int i) const
 
const std::complex< double > & operator() (unsigned int i, unsigned int j) const
 
std::complex< double > get (unsigned int i, unsigned int j) const
 
void set (unsigned int i, unsigned int j, const std::complex< double > &value)
 
unsigned int sampling () const
 

Private Attributes

bool debug_
 
unsigned int sampling_
 
std::vector< std::vector< std::complex< double > > > wavefunction_
 

Detailed Description

Wave function class for AlvarezRuso Coherent pion production xsec.

Author
Steve Dennis University of Warwick, Rutherford Appleton Laboratory

05/12/2013

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

Definition at line 31 of file ARWavefunction.h.

Constructor & Destructor Documentation

genie::alvarezruso::ARWavefunction::ARWavefunction ( unsigned int  sampling_in,
bool  debug = false 
)

Definition at line 26 of file ARWavefunction.cxx.

References om::cerr, debug_, and allTimeWatchdog::endl.

27  : debug_(debug),
28  sampling_(2*sampling_in),
29  wavefunction_(sampling_, std::vector<std::complex<double> >(sampling_, std::complex<double> (0.0,0.0)) )
30 {
31  if(debug_) std::cerr << "WF@ Constructor" << std::endl;
32 }
OStream cerr
Definition: OStream.cxx:7
std::vector< std::vector< std::complex< double > > > wavefunction_
genie::alvarezruso::ARWavefunction::~ARWavefunction ( )

Definition at line 34 of file ARWavefunction.cxx.

34 {}

Member Function Documentation

std::complex< double > genie::alvarezruso::ARWavefunction::get ( unsigned int  i,
unsigned int  j 
) const

Definition at line 64 of file ARWavefunction.cxx.

References MECModelEnuComparisons::i, calib::j, and wavefunction_.

65 {
66  return wavefunction_[i][j];
67 }
std::vector< std::vector< std::complex< double > > > wavefunction_
const double j
Definition: BetheBloch.cxx:29
const std::complex< double > & genie::alvarezruso::ARWavefunction::operator() ( unsigned int  i,
unsigned int  j 
) const

Definition at line 59 of file ARWavefunction.cxx.

References MECModelEnuComparisons::i, calib::j, and wavefunction_.

60 {
61  return wavefunction_[i][j];
62 }
std::vector< std::vector< std::complex< double > > > wavefunction_
const double j
Definition: BetheBloch.cxx:29
const std::vector< std::complex< double > > & genie::alvarezruso::ARWavefunction::operator[] ( unsigned int  i) const

Definition at line 54 of file ARWavefunction.cxx.

References MECModelEnuComparisons::i, and wavefunction_.

55 {
56  return wavefunction_[i];
57 }
std::vector< std::vector< std::complex< double > > > wavefunction_
std::string genie::alvarezruso::ARWavefunction::print ( ) const

Definition at line 36 of file ARWavefunction.cxx.

References MECModelEnuComparisons::i, calib::j, and sampling_.

37 {
38  std::ostringstream oss;
39  oss << "{";
40  for(unsigned int i = 0; i != sampling_; ++i)
41  {
42  oss << "[";
43  for(unsigned int j = 0; j != sampling_; ++j)
44  {
45  oss << ((*this)[i][j]);
46  if( j != (sampling_ - 1) ) oss << ", ";
47  }
48  oss << "]";
49  }
50  oss << "}";
51  return oss.str();
52 }
const double j
Definition: BetheBloch.cxx:29
unsigned int genie::alvarezruso::ARWavefunction::sampling ( ) const

Definition at line 74 of file ARWavefunction.cxx.

References sampling_.

74 { return sampling_; }
void genie::alvarezruso::ARWavefunction::set ( unsigned int  i,
unsigned int  j,
const std::complex< double > &  value 
)

Definition at line 69 of file ARWavefunction.cxx.

References MECModelEnuComparisons::i, calib::j, and wavefunction_.

Referenced by genie::alvarezruso::AlvarezRusoCOHPiPDXSec::SolveWavefunctions().

70 {
71  wavefunction_[i][j] = value;
72 }
std::vector< std::vector< std::complex< double > > > wavefunction_
const XML_Char int const XML_Char * value
Definition: expat.h:331
const double j
Definition: BetheBloch.cxx:29

Member Data Documentation

bool genie::alvarezruso::ARWavefunction::debug_
private

Definition at line 53 of file ARWavefunction.h.

Referenced by ARWavefunction().

unsigned int genie::alvarezruso::ARWavefunction::sampling_
private

Definition at line 54 of file ARWavefunction.h.

Referenced by print(), and sampling().

std::vector< std::vector<std::complex<double> > > genie::alvarezruso::ARWavefunction::wavefunction_
private

Definition at line 55 of file ARWavefunction.h.

Referenced by get(), operator()(), operator[](), and set().


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