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::CachedOpticalModel::TCKey Struct Reference

Public Member Functions

 TCKey (int fragment_pdg, int two_j, int l, int two_s, int target_charge)
 
bool operator< (const TCKey &other) const
 

Public Attributes

int frag_pdg_ = 0
 
int l_ = 0
 
int target_charge_ = 0
 
int two_j_ = 0
 
int two_s_ = 0
 

Detailed Description

Definition at line 47 of file CachedOpticalModel.hh.

Constructor & Destructor Documentation

◆ TCKey() [1/2]

marley::CachedOpticalModel::TCKey::TCKey ( )
inline

Definition at line 49 of file CachedOpticalModel.hh.

49{}

◆ TCKey() [2/2]

marley::CachedOpticalModel::TCKey::TCKey ( int fragment_pdg,
int two_j,
int l,
int two_s,
int target_charge )
inline

Definition at line 50 of file CachedOpticalModel.hh.

51 : frag_pdg_( fragment_pdg ), two_j_( two_j ),
52 l_( l ), two_s_( two_s ), target_charge_( target_charge ) {}

Member Function Documentation

◆ operator<()

bool marley::CachedOpticalModel::TCKey::operator< ( const TCKey & other) const
inline

Definition at line 56 of file CachedOpticalModel.hh.

56 {
57 if ( frag_pdg_ != other.frag_pdg_ ) {
58 return frag_pdg_ < other.frag_pdg_;
59 }
60 else if ( two_j_ != other.two_j_ ) {
61 return two_j_ < other.two_j_;
62 }
63 else if ( l_ != other.l_ ) {
64 return l_ < other.l_;
65 }
66 else if ( two_s_ != other.two_s_ ) {
67 return two_s_ < other.two_s_;
68 }
69 else if ( target_charge_ != other.target_charge_ ) {
70 return target_charge_ < other.target_charge_;
71 }
72 return false;
73 }

Member Data Documentation

◆ frag_pdg_

int marley::CachedOpticalModel::TCKey::frag_pdg_ = 0

Definition at line 75 of file CachedOpticalModel.hh.

◆ l_

int marley::CachedOpticalModel::TCKey::l_ = 0

Definition at line 77 of file CachedOpticalModel.hh.

◆ target_charge_

int marley::CachedOpticalModel::TCKey::target_charge_ = 0

Definition at line 79 of file CachedOpticalModel.hh.

◆ two_j_

int marley::CachedOpticalModel::TCKey::two_j_ = 0

Definition at line 76 of file CachedOpticalModel.hh.

◆ two_s_

int marley::CachedOpticalModel::TCKey::two_s_ = 0

Definition at line 78 of file CachedOpticalModel.hh.


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