MARLEY (Model of Argon Reaction Low Energy Yields) v2.0.0
A Monte Carlo event generator for tens-of-MeV neutrino interactions
Loading...
Searching...
No Matches
marley::LeptonFactors Class Reference

Public Member Functions

 LeptonFactors (double vCC, double vLL, double vCL, double vT, double vTprime)
 
double operator* (const NuclearResponses &nr)
 
void set_vCC (double val)
 
void set_vCL (double val)
 
void set_vLL (double val)
 
void set_vT (double val)
 
void set_vTprime (double val)
 
double vCC () const
 
double vCL () const
 
double vLL () const
 
double vT () const
 
double vTprime () const
 

Protected Attributes

double vCC_ = 0.
 
double vCL_ = 0.
 
double vLL_ = 0.
 
double vT_ = 0.
 
double vTprime_ = 0.
 

Detailed Description

Definition at line 24 of file LeptonFactors.hh.

Constructor & Destructor Documentation

◆ LeptonFactors() [1/2]

marley::LeptonFactors::LeptonFactors ( )
inline

Definition at line 28 of file LeptonFactors.hh.

28{}

◆ LeptonFactors() [2/2]

marley::LeptonFactors::LeptonFactors ( double vCC,
double vLL,
double vCL,
double vT,
double vTprime )
inline

Definition at line 30 of file LeptonFactors.hh.

31 : vCC_( vCC ), vLL_( vLL ), vCL_( vCL ),
32 vT_( vT ), vTprime_( vTprime ) {}

Member Function Documentation

◆ operator*()

double marley::LeptonFactors::operator* ( const NuclearResponses & nr)
inline
Todo
Revisit this hacky fix as you do a full implementation of inelastic NC scattering at finite momentum transfer

Definition at line 53 of file LeptonFactors.hh.

53 {
54 double product = 0.;
55 double rcc = nr.RCC();
56 double rll = nr.RLL();
57 double rcl = nr.RCL();
58 double rt = nr.RT();
59 double rtp = nr.RTprime();
60 if ( rcc != 0. ) product += this->vCC_ * rcc;
61 if ( rll != 0. ) product += this->vLL_ * rll;
62 if ( rcl != 0. ) product += this->vCL_ * rcl;
63 if ( rt != 0. ) product += this->vT_ * rt;
64 if ( rtp != 0. ) product += this->vTprime_ * rtp;
65 return product;
66 }

◆ set_vCC()

void marley::LeptonFactors::set_vCC ( double val)
inline

Definition at line 40 of file LeptonFactors.hh.

40{ vCC_ = val; }

◆ set_vCL()

void marley::LeptonFactors::set_vCL ( double val)
inline

Definition at line 42 of file LeptonFactors.hh.

42{ vCL_ = val; }

◆ set_vLL()

void marley::LeptonFactors::set_vLL ( double val)
inline

Definition at line 41 of file LeptonFactors.hh.

41{ vLL_ = val; }

◆ set_vT()

void marley::LeptonFactors::set_vT ( double val)
inline

Definition at line 43 of file LeptonFactors.hh.

43{ vT_ = val; }

◆ set_vTprime()

void marley::LeptonFactors::set_vTprime ( double val)
inline

Definition at line 44 of file LeptonFactors.hh.

44{ vTprime_ = val; }

◆ vCC()

double marley::LeptonFactors::vCC ( ) const
inline

Definition at line 34 of file LeptonFactors.hh.

34{ return vCC_; }

◆ vCL()

double marley::LeptonFactors::vCL ( ) const
inline

Definition at line 36 of file LeptonFactors.hh.

36{ return vCL_; }

◆ vLL()

double marley::LeptonFactors::vLL ( ) const
inline

Definition at line 35 of file LeptonFactors.hh.

35{ return vLL_; }

◆ vT()

double marley::LeptonFactors::vT ( ) const
inline

Definition at line 37 of file LeptonFactors.hh.

37{ return vT_; }

◆ vTprime()

double marley::LeptonFactors::vTprime ( ) const
inline

Definition at line 38 of file LeptonFactors.hh.

38{ return vTprime_; }

Member Data Documentation

◆ vCC_

double marley::LeptonFactors::vCC_ = 0.
protected

Definition at line 69 of file LeptonFactors.hh.

◆ vCL_

double marley::LeptonFactors::vCL_ = 0.
protected

Definition at line 71 of file LeptonFactors.hh.

◆ vLL_

double marley::LeptonFactors::vLL_ = 0.
protected

Definition at line 70 of file LeptonFactors.hh.

◆ vT_

double marley::LeptonFactors::vT_ = 0.
protected

Definition at line 72 of file LeptonFactors.hh.

◆ vTprime_

double marley::LeptonFactors::vTprime_ = 0.
protected

Definition at line 73 of file LeptonFactors.hh.


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