GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 <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.

References:
Author
Steve Dennis University of Warwick, Rutherford Appleton Laboratory
Created:
05/12/2013
License:
Copyright (c) 2003-2024, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org

Definition at line 30 of file ARWavefunction.h.

Constructor & Destructor Documentation

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

Definition at line 24 of file ARWavefunction.cxx.

References debug_.

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

Definition at line 32 of file ARWavefunction.cxx.

32 {}

Member Function Documentation

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

Definition at line 62 of file ARWavefunction.cxx.

References wavefunction_.

63 {
64  return wavefunction_[i][j];
65 }
std::vector< std::vector< std::complex< double > > > wavefunction_
const std::complex< double > & genie::alvarezruso::ARWavefunction::operator() ( unsigned int  i,
unsigned int  j 
) const

Definition at line 57 of file ARWavefunction.cxx.

References wavefunction_.

58 {
59  return wavefunction_[i][j];
60 }
std::vector< std::vector< std::complex< double > > > wavefunction_
const std::vector< std::complex< double > > & genie::alvarezruso::ARWavefunction::operator[] ( unsigned int  i) const

Definition at line 52 of file ARWavefunction.cxx.

References wavefunction_.

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

Definition at line 34 of file ARWavefunction.cxx.

References sampling_.

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

Definition at line 72 of file ARWavefunction.cxx.

References sampling_.

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

Definition at line 67 of file ARWavefunction.cxx.

References wavefunction_.

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

68 {
69  wavefunction_[i][j] = value;
70 }
std::vector< std::vector< std::complex< double > > > wavefunction_

Member Data Documentation

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

Definition at line 52 of file ARWavefunction.h.

Referenced by ARWavefunction().

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

Definition at line 53 of file ARWavefunction.h.

Referenced by print(), and sampling().

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

Definition at line 54 of file ARWavefunction.h.

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


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